treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / ramips / dts / HT-TM02.dts
index bfa3536a29d754bc2ca1c7c7075563400aa21887..8dc2dbc524135b07c3a6fb87a897a37a84b9b717 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "HT-TM02", "ralink,rt5350-soc";
        model = "HooToo HT-TM02";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                modeswitch {
                        label = "modeswitch";
                        gpios = <&gpio0 14 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>;
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 };