ramips: cleanup SPI flash device tree properties usage
[openwrt/openwrt.git] / target / linux / ramips / dts / DIR-320-B1.dts
index 1393947886c32bb8e4b2d49df9bc7d3c51942f00..07162298352f68301111b920ebfaaad2ab67877a 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DIR-320-B1", "ralink,rt5350-soc";
        model = "D-Link DIR-320 B1";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
@@ -69,8 +71,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "s25fl064k";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {