ramips: add support for TP-Link TL-MR3420 v5
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / PSR-680W.dts
index c4c4522afc52b34f428061c89c27239cf4d5b0a5..2297c1126c57eecf01b07d1ff9278ea6aac57b83 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "PSR-680W", "ralink,rt3052-soc";
+       compatible = "petatel,psr-680w", "ralink,rt3052-soc";
        model = "Petatel PSR-680W Wireless 3G Router";
 
        chosen {
@@ -47,7 +50,7 @@
 
                wan {
                        label = "psr-680w:red:wan";
-                       gpios = <&gpio0 19 1>;
+                       gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -59,8 +62,8 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };