mt76: sync with version 878456caf60d from master
[openwrt/openwrt.git] / target / linux / ramips / dts / HT-TM02.dts
index 640ce76d075e006a1e3cfae3def7df153580e324..0bfe48f3d4e8e8f48e48f6a5703673c29d4a351e 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "HT-TM02", "ralink,rt5350-soc";
        model = "HooToo HT-TM02";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                modeswitch {
                        label = "modeswitch";
                        gpios = <&gpio0 14 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>;
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 };
@@ -52,8 +54,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "mx25l6405d";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {