ramips: update device tree source files
[openwrt/openwrt.git] / target / linux / ramips / dts / V22RW-2X2.dts
index 602e170e6077dded050313e87a4ae82993856f24..8b0fba1919ab072854a328363253bb04fa233ccc 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "V22RW-2X2", "ralink,rt3052-soc";
+       compatible = "ralink,v22rw-2x2", "ralink,rt3052-soc";
        model = "Ralink AP-RT3052-V22RW-2X2";
 
        cfi@1f000000 {
 
                security {
                        label = "v22rw-2x2:green:security";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "v22rw-2x2:red:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 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>;
                };
        };
 };