3 #include "mt7620a.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "tplink,c20-v1", "ralink,mt7620a-soc";
10 model = "TP-Link Archer C20 v1";
13 bootargs = "console=ttyS0,115200";
17 compatible = "gpio-leds";
20 label = "c20-v1:blue:lan";
21 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
25 label = "c20-v1:blue:power";
26 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
27 default-state = "keep";
31 label = "c20-v1:blue:usb";
32 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
36 label = "c20-v1:blue:wan";
37 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
41 label = "c20-v1:orange:wan";
42 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
46 label = "c20-v1:blue:wlan5g";
47 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
51 label = "c20-v1:blue:wlan2g";
52 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
56 label = "c20-v1:blue:wps";
57 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
62 compatible = "gpio-keys-polled";
69 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_RESTART>;
75 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RFKILL>;
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <10000000>;
111 reg = <0x20000 0x7a0000>;
116 reg = <0x7c0000 0x10000>;
120 rom: partition@7d0000 {
122 reg = <0x7d0000 0x10000>;
128 reg = <0x7e0000 0x10000>;
132 radio: partition@7f0000 {
134 reg = <0x7f0000 0x10000>;
141 state_default: pinctrl0 {
143 ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk", "wdt";
144 ralink,function = "gpio";
150 pinctrl-names = "default";
151 mtd-mac-address = <&rom 0xf100>;
152 mediatek,portmap = "wllll";
164 mediatek,port4 = "ephy";
168 ralink,mtd-eeprom = <&radio 0>;
169 mtd-mac-address = <&rom 0xf100>;
170 mtd-mac-address-increment = <(-2)>;
171 pinctrl-names = "default";
172 pinctrl-0 = <&pa_pins>;
180 reg = <0x0000 0 0 0 0>;
182 mediatek,mtd-eeprom = <&radio 0x8000>;
183 ieee80211-freq-limit = <5000000 6000000>;
184 mtd-mac-address = <&rom 0xf100>;
185 mtd-mac-address-increment = <(-1)>;