3 #include "mt7620a.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "tplink,c20", "ralink,mt7620a-soc";
10 model = "TP-Link Archer C20";
13 bootargs = "console=ttyS0,115200";
17 compatible = "gpio-leds";
20 label = "c20:blue:lan";
21 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
25 label = "c20:blue:power";
26 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
30 label = "c20:blue:usb";
31 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
35 label = "c20:blue:wan";
36 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
40 label = "c20:orange:wan";
41 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
45 label = "c20:blue:wlan5g";
46 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
50 label = "c20:blue:wlan2g";
51 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
55 label = "c20:blue:wps";
56 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
61 compatible = "gpio-keys-polled";
68 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_RESTART>;
74 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RFKILL>;
97 compatible = "jedec,spi-nor";
99 spi-max-frequency = <10000000>;
109 reg = <0x20000 0x7a0000>;
114 reg = <0x7c0000 0x10000>;
118 rom: partition@7d0000 {
120 reg = <0x7d0000 0x10000>;
126 reg = <0x7e0000 0x10000>;
130 radio: partition@7f0000 {
132 reg = <0x7f0000 0x10000>;
139 state_default: pinctrl0 {
141 ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk", "wdt";
142 ralink,function = "gpio";
147 ralink,function = "pa";
153 pinctrl-names = "default";
154 mtd-mac-address = <&rom 0xf100>;
155 mediatek,portmap = "wllll";
167 mediatek,port4 = "ephy";
171 ralink,mtd-eeprom = <&radio 0>;
172 mtd-mac-address = <&rom 0xf100>;
173 mtd-mac-address-increment = <(-2)>;
181 reg = <0x0000 0 0 0 0>;
183 mediatek,mtd-eeprom = <&radio 32768>;
184 ieee80211-freq-limit = <5000000 6000000>;
185 mtd-mac-address = <&rom 0xf100>;
186 mtd-mac-address-increment = <(-1)>;