ramips: cleanup SPI flash device tree properties usage
[openwrt/staging/florian.git] / target / linux / ramips / dts / HC5XXX.dtsi
index 3eccff41fccca0469abfec12f68cf16aa55bfa23..3bea77e2331b8b1477aa7b334631013b0e5c91b8 100644 (file)
@@ -1,5 +1,7 @@
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        chosen {
                bootargs = "console=ttyS0,115200";
@@ -14,7 +16,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
@@ -56,7 +58,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "w25q128";
                spi-max-frequency = <10000000>;
 
                partition@0 {
 };
 
 &pinctrl {
-       state_default {
+       state_default: pinctrl0 {
                gpio {
                        ralink,group = "uartf", "wled", "nd_sd";
                        ralink,function = "gpio";