ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / V22RW-2X2.dts
index 602e170e6077dded050313e87a4ae82993856f24..8c6220af8499524e86c4f7fed887cebf4a3255ff 100644 (file)
@@ -2,10 +2,17 @@
 
 #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";
 
+       aliases {
+               led-status = &led_security;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
        gpio-leds {
                compatible = "gpio-leds";
 
-               security {
+               led_security: 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>;
                };
        };
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                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>;
                };
        };
 };