3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,archer-c20i", "ralink,mt7620a-soc";
10 model = "TP-Link Archer C20i";
13 label-mac-device = ðernet;
17 bootargs = "console=ttyS0,115200";
21 compatible = "gpio-leds";
24 label = "archer-c20i:blue:lan";
25 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
29 label = "archer-c20i:blue:usb";
30 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
31 trigger-sources = <&ohci_port1>, <&ehci_port1>;
32 linux,default-trigger = "usbport";
36 label = "archer-c20i:blue:wps";
37 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
41 label = "archer-c20i:blue:wan";
42 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
46 label = "archer-c20i:blue:wlan";
47 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
52 compatible = "gpio-keys";
56 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RFKILL>;
62 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_RESTART>;
84 compatible = "jedec,spi-nor";
86 spi-max-frequency = <10000000>;
89 compatible = "fixed-partitions";
100 compatible = "tplink,firmware";
102 reg = <0x20000 0x7a0000>;
107 reg = <0x7c0000 0x10000>;
110 rom: partition@7d0000 {
112 reg = <0x7d0000 0x10000>;
117 reg = <0x7e0000 0x10000>;
120 radio: partition@7f0000 {
122 reg = <0x7f0000 0x10000>;
129 state_default: pinctrl0 {
131 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk";
132 ralink,function = "gpio";
138 pinctrl-names = "default";
139 mtd-mac-address = <&rom 0xf100>;
140 mediatek,portmap = "wllll";
152 mediatek,port4 = "ephy";
156 ralink,mtd-eeprom = <&radio 0x0>;
165 reg = <0x0000 0 0 0 0>;
166 mediatek,mtd-eeprom = <&radio 0x8000>;
167 ieee80211-freq-limit = <5000000 6000000>;