ramips: cleanup SPI flash device tree properties usage
[openwrt/openwrt.git] / target / linux / ramips / dts / MZK-EX750NP.dts
index 74f72f04cad760117152cf236051b89580a4b41a..29a11898e8dfe54755513871e6bf6a73524b4a10 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "Planex MZK-EX750NP";
                reset {
                        label = "reset";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 13 0>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 };
@@ -81,7 +83,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "w25q64";
                spi-max-frequency = <10000000>;
 
                partition@0 {
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x8000>;
-                       mediatek,2ghz = <0>;
                };
        };
 };