Skip to content

Commit

Permalink
ARM: dts: am571x-idk: enable for new cpsw switch dev driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Grygorii Strashko authored and David S. Miller committed Nov 20, 2019
1 parent 39331a4 commit 15b991a
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
27 changes: 27 additions & 0 deletions arch/arm/boot/dts/am571x-idk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,30 @@
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>;
};
};
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/am572x-idk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@
pinctrl-1 = <&mmc2_pins_hs>;
pinctrl-2 = <&mmc2_pins_ddr_rev20>;
};

&mac {
status = "okay";
dual_emac;
};
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/am574x-idk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@
pinctrl-1 = <&mmc2_pins_default>;
pinctrl-2 = <&mmc2_pins_default>;
};

&mac {
status = "okay";
dual_emac;
};
5 changes: 0 additions & 5 deletions arch/arm/boot/dts/am57xx-idk-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,6 @@
ext-clk-src;
};

&mac {
status = "okay";
dual_emac;
};

&cpsw_emac0 {
phy-handle = <&ethphy0>;
phy-mode = "rgmii";
Expand Down

0 comments on commit 15b991a

Please sign in to comment.