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 0aaacea..820ce3b 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 ea1c119..c3d9669 100644 (file)
@@ -27,3 +27,8 @@
        pinctrl-1 = <&mmc2_pins_hs>;
        pinctrl-2 = <&mmc2_pins_ddr_rev20>;
 };
+
+&mac {
+       status = "okay";
+       dual_emac;
+};
index 7935d70..fa00880 100644 (file)
@@ -35,3 +35,8 @@
        pinctrl-1 = <&mmc2_pins_default>;
        pinctrl-2 = <&mmc2_pins_default>;
 };
+
+&mac {
+       status = "okay";
+       dual_emac;
+};
index 423855a..398721c 100644 (file)
        ext-clk-src;
 };
 
-&mac {
-       status = "okay";
-       dual_emac;
-};
-
 &cpsw_emac0 {
        phy-handle = <&ethphy0>;
        phy-mode = "rgmii";