ramips: update device tree source files
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / MLWG2.dts
index aeedb464d51279d8dd586434b731763f00285a8c..58fce43b4fe58b1f613db49dc20fe783423cf2a3 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "mlwg2", "ralink,mt7620n-soc";
+       compatible = "kingston,mlwg2", "ralink,mt7620n-soc";
        model = "Kingston MLWG2";
 
        gpio-leds {
 
                system {
                        label = "mlwg2:blue:system";
-                       gpios = <&gpio2 3 1>;
+                       gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "mlwg2:blue:wifi";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
 
                system {
                        label = "system";
-                       gpios = <&gpio0 2 1>;
-                       linux,code = <0xf7>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 };
@@ -60,7 +63,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80";
                spi-max-frequency = <10000000>;
 
                partition@0 {