mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
ARM: dts: am335x-myirtech: switch to new cpsw switch drv
The dual_mac mode has been preserved the same way between legacy and new driver, and one port devices works the same as 1 dual_mac port - it's safe to switch drivers. So, switch MYIR MYC-AM335X/MYD-AM335X to use new cpsw switch driver. Those boards have or 2 Ext. port wired and configured in dual_mac mode by default, or only 1 Ext. port. Cc: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
5578b73024
commit
4c0b47f322
2 changed files with 26 additions and 21 deletions
|
@ -57,16 +57,27 @@ led_mod: led_mod {
|
|||
};
|
||||
};
|
||||
|
||||
&cpsw_emac0 {
|
||||
phy-handle = <&phy0>;
|
||||
phy-mode = "rgmii-id";
|
||||
&mac_sw {
|
||||
pinctrl-names = "default", "sleep";
|
||||
pinctrl-0 = <ð_slave1_pins_default>;
|
||||
pinctrl-1 = <ð_slave1_pins_sleep>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&davinci_mdio {
|
||||
&cpsw_port1 {
|
||||
phy-handle = <&phy0>;
|
||||
phy-mode = "rgmii-id";
|
||||
ti,dual-emac-pvid = <1>;
|
||||
};
|
||||
|
||||
&cpsw_port2 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&davinci_mdio_sw {
|
||||
pinctrl-names = "default", "sleep";
|
||||
pinctrl-0 = <&mdio_pins_default>;
|
||||
pinctrl-1 = <&mdio_pins_sleep>;
|
||||
status = "okay";
|
||||
|
||||
phy0: ethernet-phy@4 {
|
||||
reg = <4>;
|
||||
|
@ -137,14 +148,6 @@ eeprom: eeprom@50 {
|
|||
};
|
||||
};
|
||||
|
||||
&mac {
|
||||
pinctrl-names = "default", "sleep";
|
||||
pinctrl-0 = <ð_slave1_pins_default>;
|
||||
pinctrl-1 = <ð_slave1_pins_sleep>;
|
||||
slaves = <1>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rtc {
|
||||
system-power-controller;
|
||||
};
|
||||
|
|
|
@ -86,18 +86,26 @@ vdd_3v3: vdd_3v3_reg {
|
|||
};
|
||||
};
|
||||
|
||||
&cpsw_emac1 {
|
||||
&cpsw_port2 {
|
||||
status = "okay";
|
||||
phy-handle = <&phy1>;
|
||||
phy-mode = "rgmii-id";
|
||||
ti,dual-emac-pvid = <2>;
|
||||
};
|
||||
|
||||
&davinci_mdio {
|
||||
&davinci_mdio_sw {
|
||||
phy1: ethernet-phy@6 {
|
||||
reg = <6>;
|
||||
eee-broken-1000t;
|
||||
};
|
||||
};
|
||||
|
||||
&mac_sw {
|
||||
pinctrl-0 = <ð_slave1_pins_default>, <ð_slave2_pins_default>;
|
||||
pinctrl-1 = <ð_slave1_pins_sleep>, <ð_slave2_pins_sleep>;
|
||||
slaves = <2>;
|
||||
};
|
||||
|
||||
&dcan0 {
|
||||
pinctrl-names = "default", "sleep";
|
||||
pinctrl-0 = <&dcan0_pins_default>;
|
||||
|
@ -194,12 +202,6 @@ led2: led2 {
|
|||
};
|
||||
};
|
||||
|
||||
&mac {
|
||||
pinctrl-0 = <ð_slave1_pins_default>, <ð_slave2_pins_default>;
|
||||
pinctrl-1 = <ð_slave1_pins_sleep>, <ð_slave2_pins_sleep>;
|
||||
slaves = <2>;
|
||||
};
|
||||
|
||||
&mcasp0 {
|
||||
pinctrl-names = "default", "sleep";
|
||||
pinctrl-0 = <&mcasp0_pins_default>;
|
||||
|
|
Loading…
Reference in a new issue