ramips: fix mt7628 eval board pinmux
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ESR-9753.dts
index 6869166787460b28cd88141ae2ceca81707a794d..444bea1af7355347fcfcac587bc40bdb764abd2b 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "ESR-9753", "ralink,rt3052-soc";
+       compatible = "engenius,esr-9753", "ralink,rt3052-soc";
        model = "Senao / EnGenius ESR-9753";
 
        cfi@1f000000 {
 
                power {
                        label = "esr-9753:orange:power";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "esr-9753:orange: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>;
                };
        };
 };