Subject: ARM dts am335x-phytec enable 2nd LAN interface using VLAN
From: Carsten Emde <C.Emde@osadl.org>
Date: Mon, 2  Feb 2015 19:58:59 +0100

Add device table settings to enable the second LAN port using VLAN.

Recommended-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Carsten Emde <C.Emde@osadl.org>

---
 arch/arm/boot/dts/am335x-phytec.dtsi |   10 ++++++++++
 1 file changed, 10 insertions(+)

Index: linux-3.12.31-rt45-r8s8/arch/arm/boot/dts/am335x-phytec.dtsi
===================================================================
@ linux-3.12.31-rt45-r8s8/arch/arm/boot/dts/am335x-phytec.dtsi:337 @
 
 &cpsw_emac0 {
 	phy_id = <&davinci_mdio>, <0>;
+	phy-mode = "rmii";
+	dual_emac_res_vlan = <1>;
 };
 
 &cpsw_emac1 {
 	phy_id = <&davinci_mdio>, <1>;
+	phy-mode = "mii";
+	dual_emac_res_vlan = <2>;
+};
+
+&mac {
+	slaves = <2>;
+	pinctrl-names = "default";
+	dual_emac = <1>;
 };
 
 &dcan0 {