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 led-status = &led_power;
17 bootargs = "console=ttyS0,115200";
21 compatible = "gpio-leds";
24 label = "c20-v1:blue:lan";
25 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
29 label = "c20-v1:blue:power";
30 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
31 default-state = "keep";
35 label = "c20-v1:blue:usb";
36 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
40 label = "c20-v1:blue:wan";
41 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
45 label = "c20-v1:orange:wan";
46 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
50 label = "c20-v1:blue:wlan5g";
51 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
55 label = "c20-v1:blue:wlan2g";
56 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
60 label = "c20-v1:blue:wps";
61 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
66 compatible = "gpio-keys-polled";
73 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_RESTART>;
79 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RFKILL>;
101 #address-cells = <1>;
103 compatible = "jedec,spi-nor";
105 spi-max-frequency = <10000000>;
115 reg = <0x20000 0x7a0000>;
120 reg = <0x7c0000 0x10000>;
124 rom: partition@7d0000 {
126 reg = <0x7d0000 0x10000>;
132 reg = <0x7e0000 0x10000>;
136 radio: partition@7f0000 {
138 reg = <0x7f0000 0x10000>;
145 state_default: pinctrl0 {
147 ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk", "wdt";
148 ralink,function = "gpio";
154 pinctrl-names = "default";
155 mtd-mac-address = <&rom 0xf100>;
156 mediatek,portmap = "wllll";
168 mediatek,port4 = "ephy";
172 ralink,mtd-eeprom = <&radio 0>;
173 mtd-mac-address = <&rom 0xf100>;
174 mtd-mac-address-increment = <(-2)>;
175 pinctrl-names = "default";
176 pinctrl-0 = <&pa_pins>;
185 reg = <0x0000 0 0 0 0>;
186 mediatek,mtd-eeprom = <&radio 0x8000>;
187 ieee80211-freq-limit = <5000000 6000000>;
188 mtd-mac-address = <&rom 0xf100>;
189 mtd-mac-address-increment = <(-1)>;