3 #include "mt7620a.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "tplink,c50", "ralink,mt7620a-soc";
10 model = "TP-Link Archer C50";
13 bootargs = "console=ttyS0,115200";
17 compatible = "gpio-leds";
20 label = "c50:green:lan";
21 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
25 label = "c50:green:power";
26 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
31 label = "c50:green:usb";
32 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
36 label = "c50:green:wan";
37 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
41 label = "c50:orange:wan";
42 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
46 label = "c50:green:wlan5g";
47 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
51 label = "c50:green:wlan2g";
52 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
56 label = "c50:green:wps";
57 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
62 compatible = "gpio-keys-polled";
69 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_RESTART>;
75 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RFKILL>;
98 compatible = "jedec,spi-nor";
100 spi-max-frequency = <10000000>;
110 reg = <0x20000 0x7a0000>;
115 reg = <0x7c0000 0x10000>;
119 rom: partition@7d0000 {
121 reg = <0x7d0000 0x10000>;
127 reg = <0x7e0000 0x10000>;
131 radio: partition@7f0000 {
133 reg = <0x7f0000 0x10000>;
140 state_default: pinctrl0 {
142 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd";
143 ralink,function = "gpio";
149 pinctrl-names = "default";
150 mtd-mac-address = <&rom 0xf100>;
151 mediatek,portmap = "wllll";
163 mediatek,port4 = "ephy";
167 ralink,mtd-eeprom = <&radio 0>;
168 mtd-mac-address = <&rom 0xf100>;
169 mtd-mac-address-increment = <(-2)>;
170 pinctrl-names = "default";
171 pinctrl-0 = <&pa_pins>;
179 reg = <0x0000 0 0 0 0>;
181 mediatek,mtd-eeprom = <&radio 32768>;
182 ieee80211-freq-limit = <5000000 6000000>;
183 mtd-mac-address = <&rom 0xf100>;
184 mtd-mac-address-increment = <(-1)>;