ramips: replace remaining instances of ralink, port-map
[openwrt/openwrt.git] / target / linux / ramips / dts / ArcherC20i.dts
index a58fa57ced5d675c23979d99d969add5fc2de68c..5d0fc308c3cd14fb5d72906d8268e30df1f55e39 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "TP-Link Archer C20i";
                rfkill {
                        label = "rfkill";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
@@ -71,7 +73,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "mx25l6405d";
                spi-max-frequency = <10000000>;
 
                partition@0 {
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&radio 32768>;
-                       mediatek,2ghz = <0>;
                };
        };
 };