ramips: update device tree source files
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / WL-330N3G.dts
index 9290673419d4f5781928e0f58bf931e1ea7a01c8..3801a9d9efc6d0463189b7d0a7b739e12ae92f63 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "WL-330N3G", "ralink,rt3050-soc";
+       compatible = "asus,wl-330n3g", "ralink,rt3050-soc";
        model = "Asus WL-330N3G";
 
        gpio-leds {
 
                3g {
                        label = "wl-330n3g:blue:3g";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                3g2 {
                        label = "wl-330n3g:red:3g";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "wl-330n3g:blue:power";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
@@ -53,7 +56,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "mx25l3205d";
                spi-max-frequency = <10000000>;
 
                partition@0 {