ramips: fix Newifi D1 mtd partition
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / Newifi-D1.dts
index 89bc8515a62d2d4c6e75a3b932f7ff7a6ce7ab6d..5368b19ea1593068b7365b4c8e56724f159c6442 100644 (file)
@@ -2,9 +2,11 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "lenovo,newifi-d1", "mediatek,mt7621-soc";
        model = "Newifi-D1";
 
        memory@0 {
 
                status-red {
                        label = "newifi-d1:red:status";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                status-green {
                        label = "newifi-d1:green:status";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                statys-blue {
                        label = "newifi-d1:blue:status";
-                       gpios = <&gpio0 16 1>;
+                       gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -43,7 +45,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 15 1>;
+                       gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
                usb2power {
                        gpio-export,name = "usb2power";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 9 0>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
 
                usb3power {
                        gpio-export,name = "usb3power";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 11 0>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                };
        };
 };
 
                partition@50000 {
                        label = "firmware";
-                       reg = <0x50000 0x2000000>;
+                       reg = <0x50000 0x1fb0000>;
                };
        };
 };