ramips: update device tree source files
[openwrt/openwrt.git] / target / linux / ramips / dts / W502U.dts
index 1de6ffa337000c17cd8fcb720bd36c058a9a3090..b02c6c125622db4a83976a83b157521f0a4dd0f9 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "W502U", "ralink,rt3052-soc";
+       compatible = "alfanetworks,w502u", "ralink,rt3052-soc";
        model = "ALFA Networks W502U";
 
        chosen {
 
                usb {
                        label = "w502u:blue:usb";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "w502u:blue:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };