treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/yousong.git] / target / linux / ramips / dts / WHR-1166D.dts
index fd2e451c37738a1911bb8a6142501ee9a4989eea..c3b85da2b341d9c588550d0cfad784e7c6ef8bd1 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "Buffalo WHR-1166D";
                reset {
                        label = "reset";
                        gpios = <&gpio2 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
                        gpios = <&gpio2 13 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                ap {
                        label = "ap";
                        gpios = <&gpio2 14 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
 
                bridge {
                        label = "bridge";
                        gpios = <&gpio2 15 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 };