treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / ramips / dts / X8.dts
index 1c8b37af09a2ff23e44078b3455e89764b657299..db8eec56c5a169f7738459e68f5de12aaece546c 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "X8", "ralink,rt5350-soc";
        model = "Poray X8";
@@ -24,7 +26,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
@@ -36,7 +38,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
+               reg = <0>;
                linux,modalias = "m25p80", "gd25q64";
                spi-max-frequency = <10000000>;