ramips: DTS rework
[openwrt/openwrt.git] / target / linux / ramips / dts / WCR150GN.dts
index 2a4fa115651d644f0ad81b55baeec23edb25cb94..541836b218536dff2f1bde2547ec6e879f9b68a9 100644 (file)
@@ -1,24 +1,14 @@
 /dts-v1/;
 
-/include/ "rt3050.dtsi"
+#include "rt3050.dtsi"
 
 / {
        compatible = "WCR150GN", "ralink,rt3050-soc";
        model = "Sparklan WCR-150GN";
 
-       pinctrl {
-               state_default: pinctrl0 {
-                       gpio {
-                               ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
-                               ralink,function = "gpio";
-                       };
-               };
-       };
-
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
-
                bank-width = <2>;
                device-width = <2>;
                #address-cells = <1>;
 
        gpio-leds {
                compatible = "gpio-leds";
+
                user {
-                       label = "wcr150gn:amber:user";
+                       label = "wcr-150gn:amber:user";
                        gpios = <&gpio0 12 1>;
                };
+
                power {
-                       label = "wcr150gn:amber:power";
+                       label = "wcr-150gn:amber:power";
                        gpios = <&gpio0 8 1>;
                };
        };
                #address-cells = <1>;
                #size-cells = <0>;
                poll-interval = <20>;
+
                wps {
                        label = "wps";
                        gpios = <&gpio0 10 1>;
                        linux,code = <0x211>;
                };
+
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
                        linux,code = <0x198>;
                };
        };
+};
 
-       ethernet@10100000 {
-               mtd-mac-address = <&factory 0x4>;
+&pinctrl {
+       state_default: pinctrl0 {
+               gpio {
+                       ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
+                       ralink,function = "gpio";
+               };
        };
+};
 
-       esw@10110000 {
-               ralink,portmap = <0x2f>;
-       };
+&ethernet {
+       mtd-mac-address = <&factory 0x4>;
+};
 
-       wmac@10180000 {
-               ralink,mtd-eeprom = <&factory 0>;
-       };
+&esw {
+       mediatek,portmap = <0x2f>;
+};
 
-       otg@101c0000 {
-               status = "okay";
-       };
+&wmac {
+       ralink,mtd-eeprom = <&factory 0>;
+};
+
+&otg {
+       status = "okay";
 };