treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WRTNODE2.dtsi
index 73aa5d183b1d7b5fcac1ea6df0365dea8ce38858..294616c0f785dfef62b12db94594081c89ea9a02 100644 (file)
@@ -1,5 +1,7 @@
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        chosen {
                bootargs = "console=ttyS0,115200";
@@ -14,7 +16,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 5 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
@@ -26,7 +28,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
+               reg = <0>;
                spi-max-frequency = <10000000>;
                m25p,chunked-io = <32>;
 
@@ -57,9 +59,8 @@
        spidev@1 {
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "spidev";
-               reg = <1 0>;
-               linux,modalias = "spidev", "spidev";
+               compatible = "linux,spidev";
+               reg = <1>;
                spi-max-frequency = <10000000>;
        };
 };