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";
20 label = "archer-c20i:blue:lan";
21 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
25 label = "archer-c20i:blue:usb";
26 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
27 trigger-sources = <&ohci_port1>, <&ehci_port1>;
28 linux,default-trigger = "usbport";
32 label = "archer-c20i:blue:wps";
33 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
37 label = "archer-c20i:blue:wan";
38 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
42 label = "archer-c20i:blue:wlan";
43 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
48 compatible = "gpio-keys";
52 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RFKILL>;
58 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
80 compatible = "jedec,spi-nor";
82 spi-max-frequency = <10000000>;
85 compatible = "fixed-partitions";
96 compatible = "tplink,firmware";
98 reg = <0x20000 0x7a0000>;
103 reg = <0x7c0000 0x10000>;
106 rom: partition@7d0000 {
108 reg = <0x7d0000 0x10000>;
113 reg = <0x7e0000 0x10000>;
116 radio: partition@7f0000 {
118 reg = <0x7f0000 0x10000>;
125 state_default: pinctrl0 {
127 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk";
128 ralink,function = "gpio";
134 pinctrl-names = "default";
135 mtd-mac-address = <&rom 0xf100>;
136 mediatek,portmap = "wllll";
148 mediatek,port4 = "ephy";
152 ralink,mtd-eeprom = <&radio 0>;
161 reg = <0x0000 0 0 0 0>;
162 mediatek,mtd-eeprom = <&radio 32768>;
163 ieee80211-freq-limit = <5000000 6000000>;