ramips: update device tree source files
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / RT-N13U.dts
index 14cff67855a9edff97d66ce085c3107d3d770ead..35a6c0aa2c067c50d9b65bb3530a577501301711 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "RT-N13U", "ralink,rt3052-soc";
+       compatible = "asus,rt-n13u", "ralink,rt3052-soc";
        model = "Asus RT-N13U";
 
        cfi@1f000000 {
 
                power {
                        label = "rt-n13u:blue:power";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "rt-n13u:blue:wifi";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 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 = <0x211>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };