treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / ramips / dts / DUZUN-DM06.dts
index 05bb56181e5930a121c6c86298c28efc7bc85300..5715791a68807c026ce6078b582c53787b23e0f4 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "duzun,dm06-mt7628an", "mediatek,mt7628an-soc";
        model = "DuZun DM06";
                reset {
                        label = "reset";
                        gpios = <&gpio1 14 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio1 6 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };