ARM: dts: am571x-idk: enable for new cpsw switch dev driver
authorGrygorii Strashko <grygorii.strashko@ti.com>
Tue, 19 Nov 2019 22:19:24 +0000 (00:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Nov 2019 19:25:24 +0000 (11:25 -0800)
Add DT nodes for new cpsw switchdev driver for am571x-idk board for now to
enable testing of the new solution.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 0aaacea1d887bf2c2b61f9887f970a5719bbf6fb..820ce3b60bb6c50a5b7a44b457e428b4383536d4 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";
+       ti,dual-emac-pvid = <1>;
+};
+
+&cpsw_port2 {
+       phy-handle = <&ethphy1_sw>;
+       phy-mode = "rgmii";
+       ti,dual-emac-pvid = <2>;
+};
+
+&davinci_mdio_sw {
+       ethphy0_sw: ethernet-phy@0 {
+               reg = <0>;
+       };
+
+       ethphy1_sw: ethernet-phy@1 {
+               reg = <1>;
+       };
+};
index ea1c119feaa5746d4b72baeaf63b0cfd2a15dce2..c3d966904d64b6f5d5e8a6e418f9a69bfd67cc0e 100644 (file)
@@ -27,3 +27,8 @@
        pinctrl-1 = <&mmc2_pins_hs>;
        pinctrl-2 = <&mmc2_pins_ddr_rev20>;
 };
+
+&mac {
+       status = "okay";
+       dual_emac;
+};
index 7935d70874ce2b9558a1c0410c40ff4d40633e9e..fa0088025b2c5483a83112955a8c3fd0be3c5f6b 100644 (file)
@@ -35,3 +35,8 @@
        pinctrl-1 = <&mmc2_pins_default>;
        pinctrl-2 = <&mmc2_pins_default>;
 };
+
+&mac {
+       status = "okay";
+       dual_emac;
+};
index 423855a2a2d60c8428ae3157e38a049911f85c36..398721c7201c8558bd2419de8bb1fac576ca733a 100644 (file)
        ext-clk-src;
 };
 
-&mac {
-       status = "okay";
-       dual_emac;
-};
-
 &cpsw_emac0 {
        phy-handle = <&ethphy0>;
        phy-mode = "rgmii";