All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv
@ 2021-06-12  1:14 Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 01/15] ARM: dts: am335x-baltos: switch " Grygorii Strashko
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko

Hi Tony,

This series converts rest of am335x boards to use new CPSW switchdev driver.
Only build tested.

After this only dm814x.dtsi related part left.

Grygorii Strashko (15):
  ARM: dts: am335x-baltos: switch to new cpsw switch drv
  ARM: dts: am335x-nano: switch to new cpsw switch drv
  ARM: dts: am335x-chiliboard: switch to new cpsw switch drv
  ARM: dts: am335x-cm-t335: switch to new cpsw switch drv
  ARM: dts: am335x-igep0033: switch to new cpsw switch drv
  ARM: dts: am335x-lxm: switch to new cpsw switch drv
  ARM: dts: am335x-moxa-uc: switch to new cpsw switch drv
  ARM: dts: am335x-myirtech: switch to new cpsw switch drv
  ARM: dts: am335x-osd3358-sm-red: switch to new cpsw switch drv
  ARM: dts: am335x-pdu001: switch to new cpsw switch drv
  ARM: dts: am335x-pepper: switch to new cpsw switch drv
  ARM: dts: am335x-phycore: switch to new cpsw switch drv
  ARM: dts: am335x-shc: switch to new cpsw switch drv
  ARM: dts: am335x-sl50: switch to new cpsw switch drv
  ARM: dts: am33xx: update ethernet aliases

 arch/arm/boot/dts/am335x-baltos-ir2110.dts    | 10 ++---
 arch/arm/boot/dts/am335x-baltos-ir3220.dts    |  8 ++--
 arch/arm/boot/dts/am335x-baltos-ir5221.dts    |  8 ++--
 arch/arm/boot/dts/am335x-baltos.dtsi          |  5 +--
 arch/arm/boot/dts/am335x-chiliboard.dts       | 13 ++++---
 arch/arm/boot/dts/am335x-cm-t335.dts          | 13 ++++---
 arch/arm/boot/dts/am335x-igep0033.dtsi        | 12 +++---
 arch/arm/boot/dts/am335x-lxm.dts              | 14 +++----
 .../boot/dts/am335x-moxa-uc-2100-common.dtsi  | 12 +++---
 arch/arm/boot/dts/am335x-moxa-uc-2101.dts     |  7 ++--
 .../boot/dts/am335x-moxa-uc-8100-common.dtsi  | 16 +++-----
 arch/arm/boot/dts/am335x-myirtech-myc.dtsi    | 25 ++++++------
 arch/arm/boot/dts/am335x-myirtech-myd.dts     | 18 +++++----
 arch/arm/boot/dts/am335x-nano.dts             | 13 +++----
 arch/arm/boot/dts/am335x-netcan-plus-1xx.dts  | 10 ++---
 arch/arm/boot/dts/am335x-netcom-plus-2xx.dts  | 10 ++---
 arch/arm/boot/dts/am335x-netcom-plus-8xx.dts  | 10 ++---
 arch/arm/boot/dts/am335x-osd3358-sm-red.dts   | 13 ++++---
 arch/arm/boot/dts/am335x-pcm-953.dtsi         | 10 ++---
 arch/arm/boot/dts/am335x-pdu001.dts           | 14 +++----
 arch/arm/boot/dts/am335x-pepper.dts           | 14 +++----
 arch/arm/boot/dts/am335x-phycore-som.dtsi     | 14 ++++---
 arch/arm/boot/dts/am335x-regor.dtsi           | 11 +++---
 arch/arm/boot/dts/am335x-shc.dts              | 38 ++++++++++---------
 arch/arm/boot/dts/am335x-sl50.dts             | 12 ++++--
 arch/arm/boot/dts/am335x-wega.dtsi            | 11 +++---
 arch/arm/boot/dts/am33xx.dtsi                 |  4 +-
 27 files changed, 176 insertions(+), 169 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH next 01/15] ARM: dts: am335x-baltos: switch to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 02/15] ARM: dts: am335x-nano: " Grygorii Strashko
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko, Yegor Yefremov, Christina Quast

The dual_mac mode has been preserved the same way between legacy and new
driver, and one port devices works the same as 1 dual_mac port - it's safe
to switch drivers.

So, switch OnRISC Baltos and NetCom/Cam boards to use new cpsw switch
driver. Those boards have or 2 Ext. port wired and configured in dual_mac
mode by default, or only 1 Ext. port.

Cc: Yegor Yefremov <yegorslists@googlemail.com>
Cc: Christina Quast <cquast@hanoverdisplays.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/am335x-baltos-ir2110.dts   | 10 +++++-----
 arch/arm/boot/dts/am335x-baltos-ir3220.dts   |  8 ++++----
 arch/arm/boot/dts/am335x-baltos-ir5221.dts   |  8 ++++----
 arch/arm/boot/dts/am335x-baltos.dtsi         |  5 ++---
 arch/arm/boot/dts/am335x-netcan-plus-1xx.dts | 10 +++++-----
 arch/arm/boot/dts/am335x-netcom-plus-2xx.dts | 10 +++++-----
 arch/arm/boot/dts/am335x-netcom-plus-8xx.dts | 10 +++++-----
 7 files changed, 30 insertions(+), 31 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-baltos-ir2110.dts b/arch/arm/boot/dts/am335x-baltos-ir2110.dts
index 56915b6d818d..daf4cb398070 100644
--- a/arch/arm/boot/dts/am335x-baltos-ir2110.dts
+++ b/arch/arm/boot/dts/am335x-baltos-ir2110.dts
@@ -58,21 +58,21 @@
 	dr_mode = "host";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	phy0: ethernet-phy@0 {
 		reg = <1>;
 	};
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-mode = "rmii";
-	dual_emac_res_vlan = <1>;
+	ti,dual-emac-pvid = <1>;
 	phy-handle = <&phy0>;
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
 	phy-mode = "rgmii-id";
-	dual_emac_res_vlan = <2>;
+	ti,dual-emac-pvid = <2>;
 	phy-handle = <&phy1>;
 };
 
diff --git a/arch/arm/boot/dts/am335x-baltos-ir3220.dts b/arch/arm/boot/dts/am335x-baltos-ir3220.dts
index d8d60398d803..2123bd589484 100644
--- a/arch/arm/boot/dts/am335x-baltos-ir3220.dts
+++ b/arch/arm/boot/dts/am335x-baltos-ir3220.dts
@@ -103,18 +103,18 @@
 	dr_mode = "host";
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-mode = "rmii";
-	dual_emac_res_vlan = <1>;
+	ti,dual-emac-pvid = <1>;
 	fixed-link {
 		speed = <100>;
 		full-duplex;
 	};
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
 	phy-mode = "rgmii-id";
-	dual_emac_res_vlan = <2>;
+	ti,dual-emac-pvid = <2>;
 	phy-handle = <&phy1>;
 };
 
diff --git a/arch/arm/boot/dts/am335x-baltos-ir5221.dts b/arch/arm/boot/dts/am335x-baltos-ir5221.dts
index 8096d459b93f..2f3872dbf4f4 100644
--- a/arch/arm/boot/dts/am335x-baltos-ir5221.dts
+++ b/arch/arm/boot/dts/am335x-baltos-ir5221.dts
@@ -120,18 +120,18 @@
 	dr_mode = "host";
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-mode = "rmii";
-	dual_emac_res_vlan = <1>;
+	ti,dual-emac-pvid = <1>;
 	fixed-link {
 		speed = <100>;
 		full-duplex;
 	};
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
 	phy-mode = "rgmii-id";
-	dual_emac_res_vlan = <2>;
+	ti,dual-emac-pvid = <2>;
 	phy-handle = <&phy1>;
 };
 
diff --git a/arch/arm/boot/dts/am335x-baltos.dtsi b/arch/arm/boot/dts/am335x-baltos.dtsi
index 1103a2cb836f..366702630290 100644
--- a/arch/arm/boot/dts/am335x-baltos.dtsi
+++ b/arch/arm/boot/dts/am335x-baltos.dtsi
@@ -339,16 +339,15 @@
 	};
 };
 
-&mac {
+&mac_sw {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&cpsw_default>;
 	pinctrl-1 = <&cpsw_sleep>;
-	dual_emac = <1>;
 
 	status = "okay";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	status = "okay";
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&davinci_mdio_default>;
diff --git a/arch/arm/boot/dts/am335x-netcan-plus-1xx.dts b/arch/arm/boot/dts/am335x-netcan-plus-1xx.dts
index 8303b832aa50..57e756b0f192 100644
--- a/arch/arm/boot/dts/am335x-netcan-plus-1xx.dts
+++ b/arch/arm/boot/dts/am335x-netcan-plus-1xx.dts
@@ -61,21 +61,21 @@
 	dr_mode = "host";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	phy0: ethernet-phy@0 {
 		reg = <1>;
 	};
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-mode = "rmii";
-	dual_emac_res_vlan = <1>;
+	ti,dual-emac-pvid = <1>;
 	phy-handle = <&phy0>;
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
 	phy-mode = "rgmii-id";
-	dual_emac_res_vlan = <2>;
+	ti,dual-emac-pvid = <2>;
 	phy-handle = <&phy1>;
 };
 
diff --git a/arch/arm/boot/dts/am335x-netcom-plus-2xx.dts b/arch/arm/boot/dts/am335x-netcom-plus-2xx.dts
index f8e0e95a751f..c6cc1c6218a9 100644
--- a/arch/arm/boot/dts/am335x-netcom-plus-2xx.dts
+++ b/arch/arm/boot/dts/am335x-netcom-plus-2xx.dts
@@ -76,20 +76,20 @@
 	status = "okay";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	phy0: ethernet-phy@0 {
 		reg = <1>;
 	};
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-mode = "rmii";
-	dual_emac_res_vlan = <1>;
+	ti,dual-emac-pvid = <1>;
 	phy-handle = <&phy0>;
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
 	phy-mode = "rgmii-id";
-	dual_emac_res_vlan = <2>;
+	ti,dual-emac-pvid = <2>;
 	phy-handle = <&phy1>;
 };
diff --git a/arch/arm/boot/dts/am335x-netcom-plus-8xx.dts b/arch/arm/boot/dts/am335x-netcom-plus-8xx.dts
index a4e137527215..96dffd3ffd85 100644
--- a/arch/arm/boot/dts/am335x-netcom-plus-8xx.dts
+++ b/arch/arm/boot/dts/am335x-netcom-plus-8xx.dts
@@ -96,20 +96,20 @@
 	};
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	phy0: ethernet-phy@0 {
 		reg = <1>;
 	};
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-mode = "rmii";
-	dual_emac_res_vlan = <1>;
+	ti,dual-emac-pvid = <1>;
 	phy-handle = <&phy0>;
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
 	phy-mode = "rgmii-id";
-	dual_emac_res_vlan = <2>;
+	ti,dual-emac-pvid = <2>;
 	phy-handle = <&phy1>;
 };
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH next 02/15] ARM: dts: am335x-nano: switch to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 01/15] ARM: dts: am335x-baltos: switch " Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 03/15] ARM: dts: am335x-chiliboard: " Grygorii Strashko
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko

The dual_mac mode has been preserved the same way between legacy and new
driver, and one port devices works the same as 1 dual_mac port - it's safe
to switch drivers.

So, switch Newflow AM335x NanoBone to use new cpsw switch driver. Those
boards have or 2 Ext. port wired and configured in dual_mac mode by
default, or only 1 Ext. port.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/am335x-nano.dts | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-nano.dts b/arch/arm/boot/dts/am335x-nano.dts
index 0dbc72d726c9..b6f2567bd65a 100644
--- a/arch/arm/boot/dts/am335x-nano.dts
+++ b/arch/arm/boot/dts/am335x-nano.dts
@@ -369,12 +369,11 @@
 	};
 };
 
-&mac {
-	dual_emac;
+&mac_sw {
 	status = "okay";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	status = "okay";
 
 	ethphy0: ethernet-phy@0 {
@@ -386,16 +385,16 @@
 	};
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-handle = <&ethphy0>;
 	phy-mode = "mii";
-	dual_emac_res_vlan = <1>;
+	ti,dual-emac-pvid = <1>;
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
 	phy-handle = <&ethphy1>;
 	phy-mode = "mii";
-	dual_emac_res_vlan = <2>;
+	ti,dual-emac-pvid = <2>;
 };
 
 &mmc1 {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH next 03/15] ARM: dts: am335x-chiliboard: switch to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 01/15] ARM: dts: am335x-baltos: switch " Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 02/15] ARM: dts: am335x-nano: " Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 04/15] ARM: dts: am335x-cm-t335: " Grygorii Strashko
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko

The dual_mac mode has been preserved the same way between legacy and new
driver, and one port devices works the same as 1 dual_mac port - it's safe
to switch drivers.

So, switch AM335x Chiliboard to use new cpsw switch driver. Those boards
have or 2 Ext. port wired and configured in dual_mac mode by default, or
only 1 Ext. port.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/am335x-chiliboard.dts | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-chiliboard.dts b/arch/arm/boot/dts/am335x-chiliboard.dts
index 5660b5f6942d..a223cdd3e30e 100644
--- a/arch/arm/boot/dts/am335x-chiliboard.dts
+++ b/arch/arm/boot/dts/am335x-chiliboard.dts
@@ -128,28 +128,31 @@
 };
 
 /* Ethernet */
-&mac {
-	slaves = <1>;
+&mac_sw {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&cpsw_default>;
 	pinctrl-1 = <&cpsw_sleep>;
 	status = "okay";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&davinci_mdio_default>;
 	pinctrl-1 = <&davinci_mdio_sleep>;
-	status = "okay";
 
 	ethphy0: ethernet-phy@0 {
 		reg = <0>;
 	};
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-handle = <&ethphy0>;
 	phy-mode = "rmii";
+	ti,dual-emac-pvid = <1>;
+};
+
+&cpsw_port2 {
+	status = "disabled";
 };
 
 /* USB */
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH next 04/15] ARM: dts: am335x-cm-t335: switch to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
                   ` (2 preceding siblings ...)
  2021-06-12  1:14 ` [PATCH next 03/15] ARM: dts: am335x-chiliboard: " Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 05/15] ARM: dts: am335x-igep0033: " Grygorii Strashko
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko

The dual_mac mode has been preserved the same way between legacy and new
driver, and one port devices works the same as 1 dual_mac port - it's safe
to switch drivers.

So, switch CompuLab CM-T335 to use new cpsw switch driver. Those boards
have or 2 Ext. port wired and configured in dual_mac mode by default, or
only 1 Ext. port.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/am335x-cm-t335.dts | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-cm-t335.dts b/arch/arm/boot/dts/am335x-cm-t335.dts
index 36d963db4026..dc51f6fba3b8 100644
--- a/arch/arm/boot/dts/am335x-cm-t335.dts
+++ b/arch/arm/boot/dts/am335x-cm-t335.dts
@@ -413,28 +413,31 @@ status = "okay";
 	status = "okay";
 };
 
-&mac {
+&mac_sw {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&cpsw_default>;
 	pinctrl-1 = <&cpsw_sleep>;
-	slaves = <1>;
 	status = "okay";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&davinci_mdio_default>;
 	pinctrl-1 = <&davinci_mdio_sleep>;
-	status = "okay";
 
 	ethphy0: ethernet-phy@0 {
 		reg = <0>;
 	};
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-handle = <&ethphy0>;
 	phy-mode = "rgmii-txid";
+	ti,dual-emac-pvid = <1>;
+};
+
+&cpsw_port2 {
+	status = "disabled";
 };
 
 &mmc1 {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH next 05/15] ARM: dts: am335x-igep0033: switch to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
                   ` (3 preceding siblings ...)
  2021-06-12  1:14 ` [PATCH next 04/15] ARM: dts: am335x-cm-t335: " Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 06/15] ARM: dts: am335x-lxm: " Grygorii Strashko
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko

The dual_mac mode has been preserved the same way between legacy and new
driver, and one port devices works the same as 1 dual_mac port - it's safe
to switch drivers.

So, switch am335x-igep0033 to use new cpsw switch driver. Those boards have
or 2 Ext. port wired and configured in dual_mac mode by default, or only 1
Ext. port.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/am335x-igep0033.dtsi | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-igep0033.dtsi b/arch/arm/boot/dts/am335x-igep0033.dtsi
index 7ec23d47a429..cc14415a4eb9 100644
--- a/arch/arm/boot/dts/am335x-igep0033.dtsi
+++ b/arch/arm/boot/dts/am335x-igep0033.dtsi
@@ -93,12 +93,11 @@
 	};
 };
 
-&mac {
+&mac_sw {
 	status = "okay";
 };
 
-&davinci_mdio {
-	status = "okay";
+&davinci_mdio_sw {
 
 	ethphy0: ethernet-phy@0 {
 		reg = <0>;
@@ -109,15 +108,16 @@
 	};
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-handle = <&ethphy0>;
 	phy-mode = "rmii";
-
+	ti,dual-emac-pvid = <1>;
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
 	phy-handle = <&ethphy1>;
 	phy-mode = "rmii";
+	ti,dual-emac-pvid = <2>;
 };
 
 &elm {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH next 06/15] ARM: dts: am335x-lxm: switch to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
                   ` (4 preceding siblings ...)
  2021-06-12  1:14 ` [PATCH next 05/15] ARM: dts: am335x-igep0033: " Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 07/15] ARM: dts: am335x-moxa-uc: " Grygorii Strashko
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko

The dual_mac mode has been preserved the same way between legacy and new
driver, and one port devices works the same as 1 dual_mac port - it's safe
to switch drivers.

So, switch NovaTech OrionLXm to use new cpsw switch driver. Those boards
have or 2 Ext. port wired and configured in dual_mac mode by default, or
only 1 Ext. port

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/am335x-lxm.dts | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-lxm.dts b/arch/arm/boot/dts/am335x-lxm.dts
index 0f078465297a..1282dae144dd 100644
--- a/arch/arm/boot/dts/am335x-lxm.dts
+++ b/arch/arm/boot/dts/am335x-lxm.dts
@@ -295,31 +295,29 @@
 	dr_mode = "host";
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-handle = <&ethphy0>;
 	phy-mode = "rmii";
-	dual_emac_res_vlan = <2>;
+	ti,dual-emac-pvid = <2>;
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
 	phy-handle = <&ethphy1>;
 	phy-mode = "rmii";
-	dual_emac_res_vlan = <3>;
+	ti,dual-emac-pvid = <3>;
 };
 
-&mac {
+&mac_sw {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&cpsw_default>;
 	pinctrl-1 = <&cpsw_sleep>;
-	dual_emac = <1>;
 	status = "okay";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&davinci_mdio_default>;
 	pinctrl-1 = <&davinci_mdio_sleep>;
-	status = "okay";
 
 	ethphy0: ethernet-phy@5 {
 		reg = <5>;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH next 07/15] ARM: dts: am335x-moxa-uc: switch to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
                   ` (5 preceding siblings ...)
  2021-06-12  1:14 ` [PATCH next 06/15] ARM: dts: am335x-lxm: " Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 08/15] ARM: dts: am335x-myirtech: " Grygorii Strashko
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko, Johnson Chen

The dual_mac mode has been preserved the same way between legacy and new
driver, and one port devices works the same as 1 dual_mac port - it's safe
to switch drivers.

So, switch Moxa am335x-moxa-uc-210x/8100 to use new cpsw switch driver.
Those boards have or 2 Ext. port wired and configured in dual_mac mode by
default, or only 1 Ext. port.

Cc: Johnson Chen <johnsonch.chen@moxa.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 .../arm/boot/dts/am335x-moxa-uc-2100-common.dtsi | 12 ++++++------
 arch/arm/boot/dts/am335x-moxa-uc-2101.dts        |  7 +++----
 .../arm/boot/dts/am335x-moxa-uc-8100-common.dtsi | 16 ++++++----------
 3 files changed, 15 insertions(+), 20 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi b/arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi
index 8121a199607c..11e8f64b6606 100644
--- a/arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi
+++ b/arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi
@@ -122,24 +122,24 @@
 	regulator-max-microvolt = <5000000>;
 };
 
-&mac {
+&mac_sw {
 	pinctrl-names = "default";
 	pinctrl-0 = <&cpsw_default>;
 	status = "okay";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	pinctrl-names = "default";
 	pinctrl-0 = <&davinci_mdio_default>;
 	status = "okay";
 };
 
-&cpsw_emac0 {
-	status = "okay";
+&cpsw_port1 {
+	ti,dual-emac-pvid = <1>;
 };
 
-&cpsw_emac1 {
-	status = "okay";
+&cpsw_port2 {
+	ti,dual-emac-pvid = <2>;
 };
 
 &sham {
diff --git a/arch/arm/boot/dts/am335x-moxa-uc-2101.dts b/arch/arm/boot/dts/am335x-moxa-uc-2101.dts
index 5923b6e7e1cb..1cc513ed92cc 100644
--- a/arch/arm/boot/dts/am335x-moxa-uc-2101.dts
+++ b/arch/arm/boot/dts/am335x-moxa-uc-2101.dts
@@ -52,18 +52,17 @@
 	};
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	phy0: ethernet-phy@4 {
 		reg = <4>;
 	};
 };
 
-&cpsw_emac0 {
-	status = "okay";
+&cpsw_port1 {
 	phy-handle = <&phy0>;
 	phy-mode = "rmii";
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
 	status = "disabled";
 };
diff --git a/arch/arm/boot/dts/am335x-moxa-uc-8100-common.dtsi b/arch/arm/boot/dts/am335x-moxa-uc-8100-common.dtsi
index 39e5d2ce600a..a7269b90d795 100644
--- a/arch/arm/boot/dts/am335x-moxa-uc-8100-common.dtsi
+++ b/arch/arm/boot/dts/am335x-moxa-uc-8100-common.dtsi
@@ -310,17 +310,15 @@
 	regulator-max-microvolt = <5000000>;
 };
 
-&mac {
+&mac_sw {
 	pinctrl-names = "default";
 	pinctrl-0 = <&cpsw_default>;
-	dual_emac = <1>;
 	status = "okay";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	pinctrl-names = "default";
 	pinctrl-0 = <&davinci_mdio_default>;
-	status = "okay";
 
 	ethphy0: ethernet-phy@4 {
 		reg = <4>;
@@ -331,18 +329,16 @@
 	};
 };
 
-&cpsw_emac0 {
-	status = "okay";
+&cpsw_port1 {
 	phy-handle = <&ethphy0>;
 	phy-mode = "rmii";
-	dual_emac_res_vlan = <1>;
+	ti,dual-emac-pvid = <1>;
 };
 
-&cpsw_emac1 {
-	status = "okay";
+&cpsw_port2 {
 	phy-handle = <&ethphy1>;
 	phy-mode = "rmii";
-	dual_emac_res_vlan = <2>;
+	ti,dual-emac-pvid = <2>;
 };
 
 &sham {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH next 08/15] ARM: dts: am335x-myirtech: switch to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
                   ` (6 preceding siblings ...)
  2021-06-12  1:14 ` [PATCH next 07/15] ARM: dts: am335x-moxa-uc: " Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 09/15] ARM: dts: am335x-osd3358-sm-red: " Grygorii Strashko
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko, Alexander Shiyan

The dual_mac mode has been preserved the same way between legacy and new
driver, and one port devices works the same as 1 dual_mac port - it's safe
to switch drivers.

So, switch MYIR MYC-AM335X/MYD-AM335X to use new cpsw switch driver. Those
boards have or 2 Ext. port wired and configured in dual_mac mode by
default, or only 1 Ext. port.

Cc: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/am335x-myirtech-myc.dtsi | 25 ++++++++++++----------
 arch/arm/boot/dts/am335x-myirtech-myd.dts  | 18 +++++++++-------
 2 files changed, 24 insertions(+), 19 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-myirtech-myc.dtsi b/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
index 270a3d5e8f98..245c35f41cdf 100644
--- a/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
+++ b/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
@@ -57,16 +57,27 @@
 	};
 };
 
-&cpsw_emac0 {
+&mac_sw {
+	pinctrl-names = "default", "sleep";
+	pinctrl-0 = <&eth_slave1_pins_default>;
+	pinctrl-1 = <&eth_slave1_pins_sleep>;
+	status = "okay";
+};
+
+&cpsw_port1 {
 	phy-handle = <&phy0>;
 	phy-mode = "rgmii-id";
+	ti,dual-emac-pvid = <1>;
+};
+
+&cpsw_port2 {
+	status = "disabled";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&mdio_pins_default>;
 	pinctrl-1 = <&mdio_pins_sleep>;
-	status = "okay";
 
 	phy0: ethernet-phy@4 {
 		reg = <4>;
@@ -137,14 +148,6 @@
 	};
 };
 
-&mac {
-	pinctrl-names = "default", "sleep";
-	pinctrl-0 = <&eth_slave1_pins_default>;
-	pinctrl-1 = <&eth_slave1_pins_sleep>;
-	slaves = <1>;
-	status = "okay";
-};
-
 &rtc {
 	system-power-controller;
 };
diff --git a/arch/arm/boot/dts/am335x-myirtech-myd.dts b/arch/arm/boot/dts/am335x-myirtech-myd.dts
index c996639874e6..1479fd95dec2 100644
--- a/arch/arm/boot/dts/am335x-myirtech-myd.dts
+++ b/arch/arm/boot/dts/am335x-myirtech-myd.dts
@@ -86,18 +86,26 @@
 	};
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
+	status = "okay";
 	phy-handle = <&phy1>;
 	phy-mode = "rgmii-id";
+	ti,dual-emac-pvid = <2>;
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	phy1: ethernet-phy@6 {
 		reg = <6>;
 		eee-broken-1000t;
 	};
 };
 
+&mac_sw {
+	pinctrl-0 = <&eth_slave1_pins_default>, <&eth_slave2_pins_default>;
+	pinctrl-1 = <&eth_slave1_pins_sleep>, <&eth_slave2_pins_sleep>;
+	slaves = <2>;
+};
+
 &dcan0 {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&dcan0_pins_default>;
@@ -194,12 +202,6 @@
 	};
 };
 
-&mac {
-	pinctrl-0 = <&eth_slave1_pins_default>, <&eth_slave2_pins_default>;
-	pinctrl-1 = <&eth_slave1_pins_sleep>, <&eth_slave2_pins_sleep>;
-	slaves = <2>;
-};
-
 &mcasp0 {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&mcasp0_pins_default>;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH next 09/15] ARM: dts: am335x-osd3358-sm-red: switch to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
                   ` (7 preceding siblings ...)
  2021-06-12  1:14 ` [PATCH next 08/15] ARM: dts: am335x-myirtech: " Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 10/15] ARM: dts: am335x-pdu001: " Grygorii Strashko
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko

The dual_mac mode has been preserved the same way between legacy and new
driver, and one port devices works the same as 1 dual_mac port - it's safe
to switch drivers.

So, switch Octavo Systems OSD3358-SM-RED to use new cpsw switch driver.
Those boards have or 2 Ext. port wired and configured in dual_mac mode by
default, or only 1 Ext. port.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/am335x-osd3358-sm-red.dts | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-osd3358-sm-red.dts b/arch/arm/boot/dts/am335x-osd3358-sm-red.dts
index 5403e47c07e2..605b2a436edf 100644
--- a/arch/arm/boot/dts/am335x-osd3358-sm-red.dts
+++ b/arch/arm/boot/dts/am335x-osd3358-sm-red.dts
@@ -391,24 +391,27 @@
 	clock-frequency = <100000>;
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-handle = <&ethphy0>;
 	phy-mode = "rgmii-txid";
+	ti,dual-emac-pvid = <1>;
 };
 
-&mac {
-	slaves = <1>;
+&cpsw_port2 {
+	status = "disabled";
+};
+
+&mac_sw {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&cpsw_default>;
 	pinctrl-1 = <&cpsw_sleep>;
 	status = "okay";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&davinci_mdio_default>;
 	pinctrl-1 = <&davinci_mdio_sleep>;
-	status = "okay";
 
 	ethphy0: ethernet-phy@4 {
 		reg = <4>;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH next 10/15] ARM: dts: am335x-pdu001: switch to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
                   ` (8 preceding siblings ...)
  2021-06-12  1:14 ` [PATCH next 09/15] ARM: dts: am335x-osd3358-sm-red: " Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 11/15] ARM: dts: am335x-pepper: " Grygorii Strashko
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko

The dual_mac mode has been preserved the same way between legacy and new
driver, and one port devices works the same as 1 dual_mac port - it's safe
to switch drivers.

So, switch EETS,PDU001 to use new cpsw switch driver. Those boards have or
2 Ext. port wired and configured in dual_mac mode by default, or only 1
Ext. port.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/am335x-pdu001.dts | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-pdu001.dts b/arch/arm/boot/dts/am335x-pdu001.dts
index d41a5ffd83cf..b793beeab245 100644
--- a/arch/arm/boot/dts/am335x-pdu001.dts
+++ b/arch/arm/boot/dts/am335x-pdu001.dts
@@ -494,17 +494,15 @@
 	};
 };
 
-&mac {
+&mac_sw {
 	pinctrl-names = "default";
 	pinctrl-0 = <&cpsw_default>;
-	dual_emac;			/* no switch, two distinct MACs */
 	status = "okay";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	pinctrl-names = "default";
 	pinctrl-0 = <&davinci_mdio_default>;
-	status = "okay";
 
 	ethphy0: ethernet-phy@0 {
 		reg = <0>;
@@ -515,16 +513,16 @@
 	};
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-handle = <&ethphy0>;
 	phy-mode = "mii";
-	dual_emac_res_vlan = <1>;
+	ti,dual-emac-pvid = <1>;
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
 	phy-handle = <&ethphy1>;
 	phy-mode = "mii";
-	dual_emac_res_vlan = <2>;
+	ti,dual-emac-pvid = <2>;
 };
 
 &tscadc {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH next 11/15] ARM: dts: am335x-pepper: switch to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
                   ` (9 preceding siblings ...)
  2021-06-12  1:14 ` [PATCH next 10/15] ARM: dts: am335x-pdu001: " Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 12/15] ARM: dts: am335x-phycore: " Grygorii Strashko
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko

The dual_mac mode has been preserved the same way between legacy and new
driver, and one port devices works the same as 1 dual_mac port - it's safe
to switch drivers.

So, switch Gumstix Pepper to use new cpsw switch driver.
Those boards have or 2 Ext. port wired and configured in dual_mac mode by
default, or only 1 Ext. port.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/am335x-pepper.dts | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-pepper.dts b/arch/arm/boot/dts/am335x-pepper.dts
index f9a027b47962..b5e88e627bc1 100644
--- a/arch/arm/boot/dts/am335x-pepper.dts
+++ b/arch/arm/boot/dts/am335x-pepper.dts
@@ -260,20 +260,19 @@
 };
 
 /* Ethernet */
-&cpsw_emac0 {
-	status = "okay";
+&cpsw_port1 {
 	phy-handle = <&ethphy0>;
 	phy-mode = "rgmii";
+	ti,dual-emac-pvid = <1>;
 };
 
-&cpsw_emac1 {
-	status = "okay";
+&cpsw_port2 {
 	phy-handle = <&ethphy1>;
 	phy-mode = "rgmii";
+	ti,dual-emac-pvid = <2>;
 };
 
-&davinci_mdio {
-	status = "okay";
+&davinci_mdio_sw {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mdio_pins>;
 
@@ -286,13 +285,12 @@
 	};
 };
 
-&mac {
+&mac_sw {
 	status = "okay";
 	pinctrl-names = "default";
 	pinctrl-0 = <&ethernet_pins>;
 };
 
-
 &am33xx_pinmux {
 	ethernet_pins: pinmux_ethernet {
 		pinctrl-single,pins = <
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH next 12/15] ARM: dts: am335x-phycore: switch to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
                   ` (10 preceding siblings ...)
  2021-06-12  1:14 ` [PATCH next 11/15] ARM: dts: am335x-pepper: " Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 13/15] ARM: dts: am335x-shc: " Grygorii Strashko
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko, Teresa Remmet

The dual_mac mode has been preserved the same way between legacy and new
driver, and one port devices works the same as 1 dual_mac port - it's safe
to switch drivers.

So, switch Phytec AM335x phyCORE SOM, phyBOARD-WEGA, phyBOARD-REGOR,
PCM-953 to use new cpsw switch driver. Those boards have or 2 Ext. port
wired and configured in dual_mac mode by default, or only 1 Ext. port.

Cc: Teresa Remmet <t.remmet@phytec.de>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/am335x-pcm-953.dtsi     | 10 ++++------
 arch/arm/boot/dts/am335x-phycore-som.dtsi | 14 ++++++++------
 arch/arm/boot/dts/am335x-regor.dtsi       | 11 +++++------
 arch/arm/boot/dts/am335x-wega.dtsi        | 11 +++++------
 4 files changed, 22 insertions(+), 24 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-pcm-953.dtsi b/arch/arm/boot/dts/am335x-pcm-953.dtsi
index 6c547c83e5dd..124026fa0d09 100644
--- a/arch/arm/boot/dts/am335x-pcm-953.dtsi
+++ b/arch/arm/boot/dts/am335x-pcm-953.dtsi
@@ -123,24 +123,22 @@
 	};
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
 	phy-handle = <&phy1>;
 	phy-mode = "rgmii-id";
-	dual_emac_res_vlan = <2>;
+	ti,dual-emac-pvid = <2>;
 	status = "okay";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	phy1: ethernet-phy@2 {
 		reg = <2>;
 	};
 };
 
-&mac {
-	slaves = <2>;
+&mac_sw {
 	pinctrl-names = "default";
 	pinctrl-0 = <&ethernet0_pins &ethernet1_pins>;
-	dual_emac;
 };
 
 /* Misc */
diff --git a/arch/arm/boot/dts/am335x-phycore-som.dtsi b/arch/arm/boot/dts/am335x-phycore-som.dtsi
index 7e46b4c02709..f65cd1331315 100644
--- a/arch/arm/boot/dts/am335x-phycore-som.dtsi
+++ b/arch/arm/boot/dts/am335x-phycore-som.dtsi
@@ -97,24 +97,26 @@
 	};
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-handle = <&phy0>;
 	phy-mode = "rmii";
-	dual_emac_res_vlan = <1>;
+	ti,dual-emac-pvid = <1>;
 };
 
-&davinci_mdio {
+&cpsw_port2 {
+	status = "disabled";
+};
+
+&davinci_mdio_sw {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mdio_pins>;
-	status = "okay";
 
 	phy0: ethernet-phy@0 {
 		reg = <0>;
 	};
 };
 
-&mac {
-	slaves = <1>;
+&mac_sw {
 	pinctrl-names = "default";
 	pinctrl-0 = <&ethernet0_pins>;
 	status = "okay";
diff --git a/arch/arm/boot/dts/am335x-regor.dtsi b/arch/arm/boot/dts/am335x-regor.dtsi
index 6fbf4ac739e7..7b3966ee51b9 100644
--- a/arch/arm/boot/dts/am335x-regor.dtsi
+++ b/arch/arm/boot/dts/am335x-regor.dtsi
@@ -85,23 +85,22 @@
 	};
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
+	status = "okay";
 	phy-handle = <&phy1>;
 	phy-mode = "mii";
-	dual_emac_res_vlan = <2>;
+	ti,dual-emac-pvid = <2>;
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	phy1: ethernet-phy@1 {
 		reg = <1>;
 	};
 };
 
-&mac {
-	slaves = <2>;
+&mac_sw {
 	pinctrl-names = "default";
 	pinctrl-0 = <&ethernet0_pins &ethernet1_pins>;
-	dual_emac = <1>;
 };
 
 /* GPIOs */
diff --git a/arch/arm/boot/dts/am335x-wega.dtsi b/arch/arm/boot/dts/am335x-wega.dtsi
index 1359bf8715e6..673159d93a6a 100644
--- a/arch/arm/boot/dts/am335x-wega.dtsi
+++ b/arch/arm/boot/dts/am335x-wega.dtsi
@@ -111,23 +111,22 @@
 	};
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
+	status = "okay";
 	phy-handle = <&phy1>;
 	phy-mode = "mii";
-	dual_emac_res_vlan = <2>;
+	ti,dual-emac-pvid = <2>;
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
 	phy1: ethernet-phy@1 {
 		reg = <1>;
 	};
 };
 
-&mac {
-	slaves = <2>;
+&mac_sw {
 	pinctrl-names = "default";
 	pinctrl-0 = <&ethernet0_pins &ethernet1_pins>;
-	dual_emac = <1>;
 };
 
 /* MMC */
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH next 13/15] ARM: dts: am335x-shc: switch to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
                   ` (11 preceding siblings ...)
  2021-06-12  1:14 ` [PATCH next 12/15] ARM: dts: am335x-phycore: " Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 14/15] ARM: dts: am335x-sl50: " Grygorii Strashko
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko

The dual_mac mode has been preserved the same way between legacy and new
driver, and one port devices works the same as 1 dual_mac port - it's safe
to switch drivers.

So, switch Bosch SHC to use new cpsw switch driver.
Those boards have or 2 Ext. port wired and configured in dual_mac mode by
default, or only 1 Ext. port.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/am335x-shc.dts | 38 ++++++++++++++++++--------------
 1 file changed, 21 insertions(+), 17 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-shc.dts b/arch/arm/boot/dts/am335x-shc.dts
index 2bfe60d32783..6b9877560741 100644
--- a/arch/arm/boot/dts/am335x-shc.dts
+++ b/arch/arm/boot/dts/am335x-shc.dts
@@ -117,18 +117,6 @@
 	status = "okay";
 };
 
-&davinci_mdio {
-	pinctrl-names = "default", "sleep";
-	pinctrl-0 = <&davinci_mdio_default>;
-	pinctrl-1 = <&davinci_mdio_sleep>;
-	status = "okay";
-
-	ethernetphy0: ethernet-phy@0 {
-		reg = <0>;
-		smsc,disable-energy-detect;
-	};
-};
-
 &epwmss1 {
 	status = "okay";
 
@@ -193,15 +181,31 @@
 	};
 };
 
-&mac {
+&mac_sw {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&cpsw_default>;
 	pinctrl-1 = <&cpsw_sleep>;
 	status = "okay";
-	slaves = <1>;
-	cpsw_emac0: slave@200 {
-		phy-mode = "mii";
-		phy-handle = <&ethernetphy0>;
+};
+
+&cpsw_port1 {
+	phy-mode = "mii";
+	phy-handle = <&ethernetphy0>;
+	ti,dual-emac-pvid = <1>;
+};
+
+&cpsw_port2 {
+	status = "disabled";
+};
+
+&davinci_mdio_sw {
+	pinctrl-names = "default", "sleep";
+	pinctrl-0 = <&davinci_mdio_default>;
+	pinctrl-1 = <&davinci_mdio_sleep>;
+
+	ethernetphy0: ethernet-phy@0 {
+		reg = <0>;
+		smsc,disable-energy-detect;
 	};
 };
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH next 14/15] ARM: dts: am335x-sl50: switch to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
                   ` (12 preceding siblings ...)
  2021-06-12  1:14 ` [PATCH next 13/15] ARM: dts: am335x-shc: " Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-06-12  1:14 ` [PATCH next 15/15] ARM: dts: am33xx: update ethernet aliases Grygorii Strashko
  2021-08-06  6:29 ` [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Tony Lindgren
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko

The dual_mac mode has been preserved the same way between legacy and new
driver, and one port devices works the same as 1 dual_mac port - it's safe
to switch drivers.

So, switch Toby Churchill SL50 Series to use new cpsw switch driver.
Those boards have or 2 Ext. port wired and configured in dual_mac mode by
default, or only 1 Ext. port.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/am335x-sl50.dts | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-sl50.dts b/arch/arm/boot/dts/am335x-sl50.dts
index f4684c8eaffe..6516907ed579 100644
--- a/arch/arm/boot/dts/am335x-sl50.dts
+++ b/arch/arm/boot/dts/am335x-sl50.dts
@@ -661,20 +661,24 @@
 	};
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
 	phy-mode = "mii";
 	phy-handle = <&ethphy0>;
+	ti,dual-emac-pvid = <1>;
 };
 
-&mac {
+&cpsw_port2 {
+	status = "disabled";
+};
+
+&mac_sw {
 	status = "okay";
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&cpsw_default>;
 	pinctrl-1 = <&cpsw_sleep>;
 };
 
-&davinci_mdio {
-	status = "okay";
+&davinci_mdio_sw {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&davinci_mdio_default>;
 	pinctrl-1 = <&davinci_mdio_sleep>;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH next 15/15] ARM: dts: am33xx: update ethernet aliases
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
                   ` (13 preceding siblings ...)
  2021-06-12  1:14 ` [PATCH next 14/15] ARM: dts: am335x-sl50: " Grygorii Strashko
@ 2021-06-12  1:14 ` Grygorii Strashko
  2021-08-06  6:29 ` [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Tony Lindgren
  15 siblings, 0 replies; 17+ messages in thread
From: Grygorii Strashko @ 2021-06-12  1:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra,
	linux-omap, Grygorii Strashko

Update ethernet aliases to point at CPSW switchdev driver.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/am33xx.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi
index 5e33d0e88f5b..f6ec85d58dd1 100644
--- a/arch/arm/boot/dts/am33xx.dtsi
+++ b/arch/arm/boot/dts/am33xx.dtsi
@@ -36,8 +36,8 @@
 		usb1 = &usb1;
 		phy0 = &usb0_phy;
 		phy1 = &usb1_phy;
-		ethernet0 = &cpsw_emac0;
-		ethernet1 = &cpsw_emac1;
+		ethernet0 = &cpsw_port1;
+		ethernet1 = &cpsw_port2;
 		spi0 = &spi0;
 		spi1 = &spi1;
 		mmc0 = &mmc1;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv
  2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
                   ` (14 preceding siblings ...)
  2021-06-12  1:14 ` [PATCH next 15/15] ARM: dts: am33xx: update ethernet aliases Grygorii Strashko
@ 2021-08-06  6:29 ` Tony Lindgren
  15 siblings, 0 replies; 17+ messages in thread
From: Tony Lindgren @ 2021-08-06  6:29 UTC (permalink / raw)
  To: Grygorii Strashko
  Cc: Lokesh Vutla, devicetree, linux-kernel, Vignesh Raghavendra, linux-omap

* Grygorii Strashko <grygorii.strashko@ti.com> [210612 04:15]:
> Hi Tony,
> 
> This series converts rest of am335x boards to use new CPSW switchdev driver.
> Only build tested.

Applying into omap-for-v5.15/dt thanks.

Sorry my plan was to apply this series earlier, but looks like I did not
tag the email thread and marked the thread as read.

Anyways, let's plan on merging these assuming no issues based on testing
in Linux next.

Regards,

Tony

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-08-06  6:29 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-12  1:14 [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 01/15] ARM: dts: am335x-baltos: switch " Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 02/15] ARM: dts: am335x-nano: " Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 03/15] ARM: dts: am335x-chiliboard: " Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 04/15] ARM: dts: am335x-cm-t335: " Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 05/15] ARM: dts: am335x-igep0033: " Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 06/15] ARM: dts: am335x-lxm: " Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 07/15] ARM: dts: am335x-moxa-uc: " Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 08/15] ARM: dts: am335x-myirtech: " Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 09/15] ARM: dts: am335x-osd3358-sm-red: " Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 10/15] ARM: dts: am335x-pdu001: " Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 11/15] ARM: dts: am335x-pepper: " Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 12/15] ARM: dts: am335x-phycore: " Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 13/15] ARM: dts: am335x-shc: " Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 14/15] ARM: dts: am335x-sl50: " Grygorii Strashko
2021-06-12  1:14 ` [PATCH next 15/15] ARM: dts: am33xx: update ethernet aliases Grygorii Strashko
2021-08-06  6:29 ` [PATCH next 00/15] ARM: dts: am335x: switch rest boards to new cpsw switch drv Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.