ARM: dts: am57xx-idk: switch to new cpsw switch drv
authorGrygorii Strashko <grygorii.strashko@ti.com>
Mon, 7 Sep 2020 20:21:21 +0000 (23:21 +0300)
committerTony Lindgren <tony@atomide.com>
Thu, 10 Sep 2020 09:50:38 +0000 (12:50 +0300)
Switch all am571/2/4-idk boards to use new cpsw switch driver.
Those boards have 2 Ext. port wired and configured in dual_mac mode by
default. Hence, dual_mac mode has been preserved the same way between
legacy and new driver it's safe to switch drivers.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am571x-idk.dts
arch/arm/boot/dts/am572x-idk.dts
arch/arm/boot/dts/am574x-idk.dts
arch/arm/boot/dts/am57xx-idk-common.dtsi

index 391a92e..e81078c 100644 (file)
        pinctrl-1 = <&mmc2_pins_hs>;
        pinctrl-2 = <&mmc2_pins_ddr_rev20 &mmc2_iodelay_ddr_conf>;
 };
-
-&mac_sw {
-       pinctrl-names = "default", "sleep";
-       status = "okay";
-};
-
-&cpsw_port1 {
-       phy-handle = <&ethphy0_sw>;
-       phy-mode = "rgmii-rxid";
-       ti,dual-emac-pvid = <1>;
-};
-
-&cpsw_port2 {
-       phy-handle = <&ethphy1_sw>;
-       phy-mode = "rgmii-rxid";
-       ti,dual-emac-pvid = <2>;
-};
-
-&davinci_mdio_sw {
-       ethphy0_sw: ethernet-phy@0 {
-               reg = <0>;
-       };
-
-       ethphy1_sw: ethernet-phy@1 {
-               reg = <1>;
-       };
-};
index 1a3af4b..6504265 100644 (file)
@@ -27,8 +27,3 @@
        pinctrl-1 = <&mmc2_pins_hs>;
        pinctrl-2 = <&mmc2_pins_ddr_rev20>;
 };
-
-&mac {
-       status = "okay";
-       dual_emac;
-};
index c9275d0..3775876 100644 (file)
        pinctrl-2 = <&mmc2_pins_default>;
 };
 
-&mac {
-       status = "okay";
-       dual_emac;
-};
-
 &m_can0 {
        status = "disabled";
 };
index 1c77006..9fcb894 100644 (file)
        ext-clk-src;
 };
 
-&cpsw_emac0 {
+&mac_sw {
+       status = "okay";
+};
+
+&cpsw_port1 {
        phy-handle = <&ethphy0>;
        phy-mode = "rgmii-rxid";
-       dual_emac_res_vlan = <1>;
+       ti,dual-emac-pvid = <1>;
 };
 
-&cpsw_emac1 {
+&cpsw_port2 {
        phy-handle = <&ethphy1>;
        phy-mode = "rgmii-rxid";
-       dual_emac_res_vlan = <2>;
+       ti,dual-emac-pvid = <2>;
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
        ethphy0: ethernet-phy@0 {
                reg = <0>;
        };