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>;
27 label = "c20i:blue:wps";
28 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
31 label = "c20i:blue:wan";
32 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
35 label = "c20i:blue:wlan";
36 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-keys";
46 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RFKILL>;
51 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
75 compatible = "jedec,spi-nor";
77 spi-max-frequency = <10000000>;
87 reg = <0x20000 0x7a0000>;
92 reg = <0x7c0000 0x10000>;
95 rom: partition@7d0000 {
97 reg = <0x7d0000 0x10000>;
102 reg = <0x7e0000 0x10000>;
105 radio: partition@7f0000 {
107 reg = <0x7f0000 0x10000>;
113 state_default: pinctrl0 {
115 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk";
116 ralink,function = "gpio";
122 pinctrl-names = "default";
123 mtd-mac-address = <&rom 0xf100>;
124 mediatek,portmap = "wllll";
136 mediatek,port4 = "ephy";
140 ralink,mtd-eeprom = <&radio 0>;
148 reg = <0x0000 0 0 0 0>;
150 mediatek,mtd-eeprom = <&radio 32768>;