Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: am335x-chiliboard: 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 AM335x Chiliboard 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.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Grygorii Strashko and committed by
Tony Lindgren
17d03506 0a8c054d

+8 -5
+8 -5
arch/arm/boot/dts/am335x-chiliboard.dts
··· 128 128 }; 129 129 130 130 /* Ethernet */ 131 - &mac { 132 - slaves = <1>; 131 + &mac_sw { 133 132 pinctrl-names = "default", "sleep"; 134 133 pinctrl-0 = <&cpsw_default>; 135 134 pinctrl-1 = <&cpsw_sleep>; 136 135 status = "okay"; 137 136 }; 138 137 139 - &davinci_mdio { 138 + &davinci_mdio_sw { 140 139 pinctrl-names = "default", "sleep"; 141 140 pinctrl-0 = <&davinci_mdio_default>; 142 141 pinctrl-1 = <&davinci_mdio_sleep>; 143 - status = "okay"; 144 142 145 143 ethphy0: ethernet-phy@0 { 146 144 reg = <0>; 147 145 }; 148 146 }; 149 147 150 - &cpsw_emac0 { 148 + &cpsw_port1 { 151 149 phy-handle = <&ethphy0>; 152 150 phy-mode = "rmii"; 151 + ti,dual-emac-pvid = <1>; 152 + }; 153 + 154 + &cpsw_port2 { 155 + status = "disabled"; 153 156 }; 154 157 155 158 /* USB */