treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / ramips / dts / GL-MT300A.dts
index 5edb7ca4878eb0657987c9ab65b4140efe793a5d..6922b958db464c491d2a8d73a5822b8a45f64b35 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "GL-MT300A", "ralink,mt7620a-soc";
        model = "GL-MT300A";
                reset {
                        label = "reset";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                BTN_0 {
                        label = "BTN_0";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
            BTN_1 {
                        label = "BTN_1";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 };