ramips: cleanup SPI flash device tree properties usage
[openwrt/openwrt.git] / target / linux / ramips / dts / HLKRM04.dts
index 2f4e43548f58aebec44fb5fc42a5ca0d87f48dad..79a599d49e27eb8a8c9571296bb12683de1b3806 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "HLKRM04", "ralink,rt5350-soc";
        model = "HILINK HLK-RM04";
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio0 14 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
@@ -64,7 +66,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "s25fl064k";
                spi-max-frequency = <10000000>;
 
                partition@0 {