lantiq: xrx200: switch the subtarget to the mainline DSA driver
[openwrt/staging/mkresin.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_lantiq_easy80920.dtsi
index f5b0b4f2a1e23bf76f0230b7ead6e12a117a391a..8df81111fa2db45256c68229a81374e56203166f 100644 (file)
@@ -15,9 +15,6 @@
                led-failsafe = &power;
                led-running = &power;
                led-upgrade = &power;
-
-               led-usb = &led_usb1;
-               led-usb2 = &led_usb2;
        };
 
        memory@0 {
                        label = "green:fxo";
                        gpios = <&stp 19 GPIO_ACTIVE_HIGH>;
                };
-               led_usb1: usb1 {
+               usb1 {
                        label = "green:usb1";
                        gpios = <&stp 18 GPIO_ACTIVE_HIGH>;
+                       trigger-sources = <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
-               led_usb2: usb2 {
+
+               usb2 {
                        label = "green:usb2";
                        gpios = <&stp 15 GPIO_ACTIVE_HIGH>;
+                       trigger-sources = <&ehci_port2>;
+                       linux,default-trigger = "usbport";
                };
                sd {
                        label = "green:sd";
        };
 };
 
-&eth0 {
-       interface@0 {
-               compatible = "lantiq,xrx200-pdi";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               reg = <0>;
-               lantiq,switch;
-
-               ethernet@0 {
-                       compatible = "lantiq,xrx200-pdi-port";
-                       reg = <0>;
-                       phy-mode = "rgmii";
-                       phy-handle = <&phy0>;
-               };
-               ethernet@1 {
-                       compatible = "lantiq,xrx200-pdi-port";
-                       reg = <1>;
-                       phy-mode = "rgmii";
-                       phy-handle = <&phy1>;
-               };
-               ethernet@2 {
-                       compatible = "lantiq,xrx200-pdi-port";
-                       reg = <2>;
-                       phy-mode = "gmii";
-                       phy-handle = <&phy11>;
-               };
-               ethernet@4 {
-                       compatible = "lantiq,xrx200-pdi-port";
-                       reg = <4>;
-                       phy-mode = "gmii";
-                       phy-handle = <&phy13>;
-               };
-       };
-
-       interface@1 {
-               compatible = "lantiq,xrx200-pdi";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               reg = <1>;
-               lantiq,wan;
-
-               ethernet@5 {
-                       compatible = "lantiq,xrx200-pdi-port";
-                       reg = <5>;
-                       phy-mode = "rgmii";
-                       phy-handle = <&phy5>;
-               };
-       };
-
-       mdio {
-               #address-cells = <1>;
-               #size-cells = <0>;
-               compatible = "lantiq,xrx200-mdio";
-
-               phy0: ethernet-phy@0 {
-                       reg = <0x0>;
-                       compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-               };
-               phy1: ethernet-phy@1 {
-                       reg = <0x1>;
-                       compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-               };
-               phy5: ethernet-phy@5 {
-                       reg = <0x5>;
-                       compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-               };
-               phy11: ethernet-phy@11 {
-                       reg = <0x11>;
-                       compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-               };
-               phy13: ethernet-phy@13 {
-                       reg = <0x13>;
-                       compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-               };
-       };
-};
-
 &gphy0 {
        lantiq,gphy-mode = <GPHY_MODE_GE>;
 };
        };
 };
 
+&gswip {
+       pinctrl-0 = <&mdio_pins>;
+       pinctrl-names = "default";
+};
+
+&gswip_mdio {
+       phy0: ethernet-phy@0 {
+               reg = <0x0>;
+       };
+       phy1: ethernet-phy@1 {
+               reg = <0x1>;
+       };
+       phy5: ethernet-phy@5 {
+               reg = <0x5>;
+       };
+       phy11: ethernet-phy@11 {
+               reg = <0x11>;
+       };
+       phy13: ethernet-phy@13 {
+               reg = <0x13>;
+       };
+};
+
+&gswip_ports {
+       port@0 {
+               reg = <0>;
+               label = "lan4";
+               phy-mode = "rgmii";
+               phy-handle = <&phy0>;
+       };
+       port@1 {
+               reg = <1>;
+               label = "lan3";
+               phy-mode = "rgmii";
+               phy-handle = <&phy1>;
+       };
+       port@2 {
+               reg = <2>;
+               label = "lan2";
+               phy-mode = "internal";
+               phy-handle = <&phy11>;
+       };
+       port@4 {
+               reg = <4>;
+               label = "lan1";
+               phy-mode = "internal";
+               phy-handle = <&phy13>;
+       };
+       port@5 {
+               reg = <5>;
+               label = "wan";
+               phy-mode = "rgmii";
+               phy-handle = <&phy5>;
+       };
+};
+
 &spi {
        status = "okay";