ramips: update device tree source files
[openwrt/openwrt.git] / target / linux / ramips / dts / AR670W.dts
index 3d26c3b6ff4e3c43c19ab354d62240d3e85fcc79..3759f4a8c4e4855cc6090aefabc1115140fcf795 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt2880.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "AR670W", "ralink,rt2880-soc";
+       compatible = "airlink101,ar670w", "ralink,rt2880-soc";
        model = "Airlink101 AR670W";
 
        cfi@bdc00000 {
 
                status {
                        label = "ar670w:green:power";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                wpsblue {
                        label = "ar670w:blue:wps";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };