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

ARM: dts: am335x-sl50: 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 Toby Churchill SL50 Series 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
0a8eb8d7 a5cacca2

+8 -4
+8 -4
arch/arm/boot/dts/am335x-sl50.dts
··· 661 661 }; 662 662 }; 663 663 664 - &cpsw_emac0 { 664 + &cpsw_port1 { 665 665 phy-mode = "mii"; 666 666 phy-handle = <&ethphy0>; 667 + ti,dual-emac-pvid = <1>; 667 668 }; 668 669 669 - &mac { 670 + &cpsw_port2 { 671 + status = "disabled"; 672 + }; 673 + 674 + &mac_sw { 670 675 status = "okay"; 671 676 pinctrl-names = "default", "sleep"; 672 677 pinctrl-0 = <&cpsw_default>; 673 678 pinctrl-1 = <&cpsw_sleep>; 674 679 }; 675 680 676 - &davinci_mdio { 677 - status = "okay"; 681 + &davinci_mdio_sw { 678 682 pinctrl-names = "default", "sleep"; 679 683 pinctrl-0 = <&davinci_mdio_default>; 680 684 pinctrl-1 = <&davinci_mdio_sleep>;