lantiq: xrx200: switch the subtarget to the mainline DSA driver
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_arcadyan_vg3503j.dts
index e7c55321459f9ea449c67393b5aa36e583bd4360..fb771edcb7e65dba17759ec0e4a0bb41b472ff56 100644 (file)
        };
 };
 
-&eth0 {
-       pinctrl-0 = <&mdio_pins>,
-                   <&gphy0_led0_pins>, <&gphy0_led1_pins>, <&gphy0_led2_pins>,
-                   <&gphy1_led0_pins>, <&gphy1_led1_pins>, <&gphy1_led2_pins>;
-
-       interface@0 {
-               compatible = "lantiq,xrx200-pdi";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               reg = <0>;
-
-               lantiq,switch;
-               ethernet@2 {
-                       compatible = "lantiq,xrx200-pdi-port";
-                       reg = <2>;
-                       phy-mode = "mii";
-                       phy-handle = <&phy11>;
-               };
-               ethernet@4 {
-                       compatible = "lantiq,xrx200-pdi-port";
-                       reg = <4>;
-                       phy-mode = "mii";
-                       phy-handle = <&phy13>;
-               };
-       };
-
-       mdio {
-               #address-cells = <1>;
-               #size-cells = <0>;
-               compatible = "lantiq,xrx200-mdio";
-
-               phy11: ethernet-phy@11 {
-                       reg = <0x11>;
-                       compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-                       lantiq,led1h = <0x70>;
-                       lantiq,led1l = <0x00>;
-                       lantiq,led2h = <0x00>;
-                       lantiq,led2l = <0x03>;
-               };
-               phy13: ethernet-phy@13 {
-                       reg = <0x13>;
-                       compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-                       lantiq,led1h = <0x70>;
-                       lantiq,led1l = <0x00>;
-                       lantiq,led2h = <0x00>;
-                       lantiq,led2l = <0x03>;
-               };
-       };
-};
-
 &gphy0 {
        lantiq,gphy-mode = <GPHY_MODE_GE>;
 };
        lantiq,gphy-mode = <GPHY_MODE_GE>;
 };
 
+&gswip {
+       pinctrl-0 = <&gphy0_led0_pins>, <&gphy0_led1_pins>, <&gphy0_led2_pins>,
+                   <&gphy1_led0_pins>, <&gphy1_led1_pins>, <&gphy1_led2_pins>;
+       pinctrl-names = "default";
+};
+
+&gswip_mdio {
+       phy11: ethernet-phy@11 {
+               reg = <0x11>;
+               lantiq,led1h = <0x70>;
+               lantiq,led1l = <0x00>;
+               lantiq,led2h = <0x00>;
+               lantiq,led2l = <0x03>;
+       };
+       phy13: ethernet-phy@13 {
+               reg = <0x13>;
+               lantiq,led1h = <0x70>;
+               lantiq,led1l = <0x00>;
+               lantiq,led2h = <0x00>;
+               lantiq,led2l = <0x03>;
+       };
+};
+
+&gswip_ports {
+       port@2 {
+               reg = <2>;
+               label = "lan2";
+               phy-mode = "internal";
+               phy-handle = <&phy11>;
+       };
+       port@4 {
+               reg = <4>;
+               label = "lan1";
+               phy-mode = "internal";
+               phy-handle = <&phy13>;
+       };
+};
+
 &localbus {
        flash@0 {
                compatible = "lantiq,nor";