ARM: dts: am57xx-idk: switch to new cpsw switch drv

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>
This commit is contained in:
Grygorii Strashko 2020-09-07 23:21:21 +03:00 committed by Tony Lindgren
parent 67e97cc60d
commit d56fe359e6
4 changed files with 9 additions and 42 deletions

View File

@ -208,30 +208,3 @@
pinctrl-1 = <&mmc2_pins_hs>; pinctrl-1 = <&mmc2_pins_hs>;
pinctrl-2 = <&mmc2_pins_ddr_rev20 &mmc2_iodelay_ddr_conf>; 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>;
};
};

View File

@ -27,8 +27,3 @@
pinctrl-1 = <&mmc2_pins_hs>; pinctrl-1 = <&mmc2_pins_hs>;
pinctrl-2 = <&mmc2_pins_ddr_rev20>; pinctrl-2 = <&mmc2_pins_ddr_rev20>;
}; };
&mac {
status = "okay";
dual_emac;
};

View File

@ -36,11 +36,6 @@
pinctrl-2 = <&mmc2_pins_default>; pinctrl-2 = <&mmc2_pins_default>;
}; };
&mac {
status = "okay";
dual_emac;
};
&m_can0 { &m_can0 {
status = "disabled"; status = "disabled";
}; };

View File

@ -448,19 +448,23 @@
ext-clk-src; ext-clk-src;
}; };
&cpsw_emac0 { &mac_sw {
status = "okay";
};
&cpsw_port1 {
phy-handle = <&ethphy0>; phy-handle = <&ethphy0>;
phy-mode = "rgmii-rxid"; phy-mode = "rgmii-rxid";
dual_emac_res_vlan = <1>; ti,dual-emac-pvid = <1>;
}; };
&cpsw_emac1 { &cpsw_port2 {
phy-handle = <&ethphy1>; phy-handle = <&ethphy1>;
phy-mode = "rgmii-rxid"; phy-mode = "rgmii-rxid";
dual_emac_res_vlan = <2>; ti,dual-emac-pvid = <2>;
}; };
&davinci_mdio { &davinci_mdio_sw {
ethphy0: ethernet-phy@0 { ethphy0: ethernet-phy@0 {
reg = <0>; reg = <0>;
}; };