3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,c20i", "ralink,mt7620a-soc";
10 model = "TP-Link Archer C20i";
13 bootargs = "console=ttyS0,115200";
17 compatible = "gpio-leds";
19 label = "c20i:blue:lan";
20 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
23 label = "c20i:blue:usb";
24 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
25 trigger-sources = <&ohci_port1>, <&ehci_port1>;
26 linux,default-trigger = "usbport";
29 label = "c20i:blue:wps";
30 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
33 label = "c20i:blue:wan";
34 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
37 label = "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";
91 reg = <0x20000 0x7a0000>;
96 reg = <0x7c0000 0x10000>;
99 rom: partition@7d0000 {
101 reg = <0x7d0000 0x10000>;
106 reg = <0x7e0000 0x10000>;
109 radio: partition@7f0000 {
111 reg = <0x7f0000 0x10000>;
118 state_default: pinctrl0 {
120 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk";
121 ralink,function = "gpio";
127 pinctrl-names = "default";
128 mtd-mac-address = <&rom 0xf100>;
129 mediatek,portmap = "wllll";
141 mediatek,port4 = "ephy";
145 ralink,mtd-eeprom = <&radio 0>;
154 reg = <0x0000 0 0 0 0>;
155 mediatek,mtd-eeprom = <&radio 32768>;
156 ieee80211-freq-limit = <5000000 6000000>;