ARM: dts: am335x-baltos: switch to new cpsw switch drv
authorGrygorii Strashko <grygorii.strashko@ti.com>
Sat, 12 Jun 2021 01:14:22 +0000 (04:14 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 6 Aug 2021 06:25:33 +0000 (09:25 +0300)
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am335x-baltos-ir2110.dts
arch/arm/boot/dts/am335x-baltos-ir3220.dts
arch/arm/boot/dts/am335x-baltos-ir5221.dts
arch/arm/boot/dts/am335x-baltos.dtsi
arch/arm/boot/dts/am335x-netcan-plus-1xx.dts
arch/arm/boot/dts/am335x-netcom-plus-2xx.dts
arch/arm/boot/dts/am335x-netcom-plus-8xx.dts

index 56915b6..daf4cb3 100644 (file)
        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>;
 };
 
index d8d6039..2123bd5 100644 (file)
        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>;
 };
 
index 8096d45..2f3872d 100644 (file)
        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>;
 };
 
index 1103a2c..3667026 100644 (file)
        };
 };
 
-&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>;
index 8303b83..57e756b 100644 (file)
        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>;
 };
 
index f8e0e95..c6cc1c6 100644 (file)
        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>;
 };
index a4e1375..96dffd3 100644 (file)
        };
 };
 
-&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>;
 };