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 bootargs = "console=ttyS0,115200";
17 compatible = "gpio-leds";
19 label = "archer-c20i:blue:lan";
20 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
23 label = "archer-c20i:blue:usb";
24 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
25 trigger-sources = <&ohci_port1>, <&ehci_port1>;
26 linux,default-trigger = "usbport";
29 label = "archer-c20i:blue:wps";
30 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
33 label = "archer-c20i:blue:wan";
34 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
37 label = "archer-c20i:blue:wlan";
38 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
43 compatible = "gpio-keys";
47 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RFKILL>;
52 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
74 compatible = "jedec,spi-nor";
76 spi-max-frequency = <10000000>;
79 compatible = "fixed-partitions";
90 compatible = "tplink,firmware";
92 reg = <0x20000 0x7a0000>;
97 reg = <0x7c0000 0x10000>;
100 rom: partition@7d0000 {
102 reg = <0x7d0000 0x10000>;
107 reg = <0x7e0000 0x10000>;
110 radio: partition@7f0000 {
112 reg = <0x7f0000 0x10000>;
119 state_default: pinctrl0 {
121 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk";
122 ralink,function = "gpio";
128 pinctrl-names = "default";
129 mtd-mac-address = <&rom 0xf100>;
130 mediatek,portmap = "wllll";
142 mediatek,port4 = "ephy";
146 ralink,mtd-eeprom = <&radio 0>;
155 reg = <0x0000 0 0 0 0>;
156 mediatek,mtd-eeprom = <&radio 32768>;
157 ieee80211-freq-limit = <5000000 6000000>;