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>;
37 trigger-sources = <&ohci_port1>, <&ehci_port1>;
38 linux,default-trigger = "usbport";
42 label = "c20-v1:blue:wan";
43 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
47 label = "c20-v1:orange:wan";
48 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
52 label = "c20-v1:blue:wlan5g";
53 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
57 label = "c20-v1:blue:wlan2g";
58 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
62 label = "c20-v1:blue:wps";
63 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
68 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 compatible = "jedec,spi-nor";
103 spi-max-frequency = <10000000>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
118 reg = <0x20000 0x7a0000>;
123 reg = <0x7c0000 0x10000>;
127 rom: partition@7d0000 {
129 reg = <0x7d0000 0x10000>;
135 reg = <0x7e0000 0x10000>;
139 radio: partition@7f0000 {
141 reg = <0x7f0000 0x10000>;
149 state_default: pinctrl0 {
151 ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk", "wdt";
152 ralink,function = "gpio";
158 pinctrl-names = "default";
159 mtd-mac-address = <&rom 0xf100>;
160 mediatek,portmap = "wllll";
172 mediatek,port4 = "ephy";
176 ralink,mtd-eeprom = <&radio 0>;
177 mtd-mac-address = <&rom 0xf100>;
178 mtd-mac-address-increment = <(-2)>;
179 pinctrl-names = "default";
180 pinctrl-0 = <&pa_pins>;
189 reg = <0x0000 0 0 0 0>;
190 mediatek,mtd-eeprom = <&radio 0x8000>;
191 ieee80211-freq-limit = <5000000 6000000>;
192 mtd-mac-address = <&rom 0xf100>;
193 mtd-mac-address-increment = <(-1)>;