ramips: cleanup SPI flash device tree properties usage
[lede.git] / target / linux / ramips / dts / DIR-645.dts
index 1cdb321f7ff5edfb76567ce2186dbe7cb1961e34..9c8082ca244389b1eddd1f8640b7da869855b060 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DIR-645", "ralink,rt3883-soc";
        model = "D-Link DIR-645";
                reset {
                        label = "reset";
                        gpios = <&gpio0 9 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 14 0>;
-                       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";
+               reg = <0>;
                spi-max-frequency = <25000000>;
 
                partition@0 {