treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/yousong.git] / target / linux / ramips / dts / FONERA20N.dts
index b7eb91ea7bc47f7a357c1f0d4930db822c09b15d..c409f9b01d73d554dbc109b7d4a3e9d6a17ab060 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "FONERA20N", "ralink,rt3052-soc";
        model = "La Fonera 2.0N";
                reset {
                        label = "reset";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                switch {
                        label = "switch";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0xf7>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <KEY_RFKILL>;
+                       linux,input-type = <EV_SW>;
                };
        };
 };