ramips: cleanup SPI flash device tree properties usage
[openwrt/openwrt.git] / target / linux / ramips / dts / MZK-W300NH2.dts
index 987d6a7c0d247430a1d204a5bb31b360ce15f970..4b002b7c20e308af873e17a3470ca3c2cba14f0f 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "MZK-W300NH2", "ralink,rt3052-soc";
        model = "Planex MZK-W300NH2";
                wps {
                        label = "wps";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                rt {
                        label = "rt";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
        };
 };