treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WIZFI630A.dts
index 68af608b5e6878b4aec1f99ec66f4bf891732082..78891c24b6d43ec9aab5fe8fb327522ca49e1c83 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "wizfi630a", "ralink,rt5350-soc";
        model = "WIZnet WizFi630A";
                reset {
                        label = "reset";
                        gpios = <&gpio0 17 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
                
                scm1 {
                        label = "SCM1";
                        gpios = <&gpio0 19 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                scm2 {
                        label = "SCM2";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 };
@@ -82,7 +84,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
+               reg = <0>;
                linux,modalias = "m25p80", "w25q128";
                spi-max-frequency = <10000000>;