treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / ramips / dts / F7C027.dts
index c8ed765df284de7998d84176a220761d1b5ae8eb..d6a150a4a7757852105a3d598cf9ef5c16a453cc 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "F7C027", "ralink,rt5350-soc";
        model = "Belkin F7C027";
                top {
                        label = "restore";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                power {
                        label = "power";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
 
                sensor {
                        label = "sensor";
                        gpios = <&gpio0 14 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
        };
 };