Commit 1c7ba565 authored by Grygorii Strashko's avatar Grygorii Strashko Committed by Tony Lindgren
Browse files

ARM: dts: am335x-baltos: 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 OnRISC Baltos and NetCom/Cam boards 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: Yegor Yefremov <yegorslists@googlemail.com>
Cc: Christina Quast <cquast@hanoverdisplays.com>
Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 8c054cd2
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -58,21 +58,21 @@ &usb0 {
	dr_mode = "host";
};

&davinci_mdio {
&davinci_mdio_sw {
	phy0: ethernet-phy@0 {
		reg = <1>;
	};
};

&cpsw_emac0 {
&cpsw_port1 {
	phy-mode = "rmii";
	dual_emac_res_vlan = <1>;
	ti,dual-emac-pvid = <1>;
	phy-handle = <&phy0>;
};

&cpsw_emac1 {
&cpsw_port2 {
	phy-mode = "rgmii-id";
	dual_emac_res_vlan = <2>;
	ti,dual-emac-pvid = <2>;
	phy-handle = <&phy1>;
};

+4 −4
Original line number Diff line number Diff line
@@ -103,18 +103,18 @@ &usb0 {
	dr_mode = "host";
};

&cpsw_emac0 {
&cpsw_port1 {
	phy-mode = "rmii";
	dual_emac_res_vlan = <1>;
	ti,dual-emac-pvid = <1>;
	fixed-link {
		speed = <100>;
		full-duplex;
	};
};

&cpsw_emac1 {
&cpsw_port2 {
	phy-mode = "rgmii-id";
	dual_emac_res_vlan = <2>;
	ti,dual-emac-pvid = <2>;
	phy-handle = <&phy1>;
};

+4 −4
Original line number Diff line number Diff line
@@ -120,18 +120,18 @@ &usb1 {
	dr_mode = "host";
};

&cpsw_emac0 {
&cpsw_port1 {
	phy-mode = "rmii";
	dual_emac_res_vlan = <1>;
	ti,dual-emac-pvid = <1>;
	fixed-link {
		speed = <100>;
		full-duplex;
	};
};

&cpsw_emac1 {
&cpsw_port2 {
	phy-mode = "rgmii-id";
	dual_emac_res_vlan = <2>;
	ti,dual-emac-pvid = <2>;
	phy-handle = <&phy1>;
};

+2 −3
Original line number Diff line number Diff line
@@ -339,16 +339,15 @@ vmmc_reg: regulator@12 {
	};
};

&mac {
&mac_sw {
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&cpsw_default>;
	pinctrl-1 = <&cpsw_sleep>;
	dual_emac = <1>;

	status = "okay";
};

&davinci_mdio {
&davinci_mdio_sw {
	status = "okay";
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&davinci_mdio_default>;
+5 −5
Original line number Diff line number Diff line
@@ -61,21 +61,21 @@ &usb0 {
	dr_mode = "host";
};

&davinci_mdio {
&davinci_mdio_sw {
	phy0: ethernet-phy@0 {
		reg = <1>;
	};
};

&cpsw_emac0 {
&cpsw_port1 {
	phy-mode = "rmii";
	dual_emac_res_vlan = <1>;
	ti,dual-emac-pvid = <1>;
	phy-handle = <&phy0>;
};

&cpsw_emac1 {
&cpsw_port2 {
	phy-mode = "rgmii-id";
	dual_emac_res_vlan = <2>;
	ti,dual-emac-pvid = <2>;
	phy-handle = <&phy1>;
};

Loading