ramips: fix power LED DTB for wt3020
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / GL-MT300N-V2.dts
index 87b1f0bb9a6ce0a2d674f51562a14792901ef5e6..b41a9ae669b950ab4506cda2bbab3079a325e20d 100644 (file)
@@ -6,7 +6,7 @@
 #include <dt-bindings/input/input.h>
 
 /{
-       compatible = "glinet,gl-mt300n-v2", "ralink,mt7620an-soc";
+       compatible = "glinet,gl-mt300n-v2", "mediatek,mt7628an-soc";
        model = "GL-MT300N-V2";
 
        aliases {
@@ -44,8 +44,6 @@
 
        gpio-keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
@@ -77,7 +75,6 @@
                        gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                };
        };
-
 };
 
 &pinctrl {
        status = "okay";
 
        m25p80@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
                m25p,chunked-io = <32>;
 
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x30000>;
-                       read-only;
-               };
-
-               partition@30000 {
-                       label = "u-boot-env";
-                       reg = <0x30000 0x10000>;
-                       read-only;
-               };
-
-               factory: partition@40000 {
-                        label = "factory";
-                        reg = <0x40000 0x10000>;
-                        read-only;
-               };
-
-               partition@50000 {
-                        label = "firmware";
-                        reg = <0x50000 0xfb0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x30000>;
+                               read-only;
+                       };
+
+                       partition@30000 {
+                               label = "u-boot-env";
+                               reg = <0x30000 0x10000>;
+                               read-only;
+                       };
+
+                       factory: partition@40000 {
+                               label = "factory";
+                               reg = <0x40000 0x10000>;
+                               read-only;
+                       };
+
+                       partition@50000 {
+                               label = "firmware";
+                               reg = <0x50000 0xfb0000>;
+                       };
                };
        };
 };