2 #include <dt-bindings/input/input.h>
3 #include <dt-bindings/gpio/gpio.h>
5 #include "mt7620a.dtsi"
8 compatible = "ralink,mt7620a-soc";
9 model = "TP-Link Archer C50";
12 bootargs = "console=ttyS0,115200";
16 compatible = "gpio-leds";
19 label = "c50:green:lan";
20 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
24 label = "c50:green:power";
25 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
30 label = "c50:green:usb";
31 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
35 label = "c50:green:wan";
36 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
40 label = "c50:orange:wan";
41 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
45 label = "c50:green:wlan5g";
46 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
50 label = "c50:green:wlan2g";
51 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
55 label = "c50:green:wps";
56 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
61 compatible = "gpio-keys-polled";
68 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_RESTART>;
74 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RFKILL>;
97 compatible = "jedec,spi-nor";
99 spi-max-frequency = <10000000>;
109 reg = <0x20000 0x7a0000>;
114 reg = <0x7c0000 0x10000>;
118 rom: partition@7d0000 {
120 reg = <0x7d0000 0x10000>;
126 reg = <0x7e0000 0x10000>;
130 radio: partition@7f0000 {
132 reg = <0x7f0000 0x10000>;
139 state_default: pinctrl0 {
141 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd";
142 ralink,function = "gpio";
147 ralink,function = "pa";
153 pinctrl-names = "default";
154 mtd-mac-address = <&rom 0xf100>;
155 mediatek,portmap = "wllll";
167 mediatek,port4 = "ephy";
171 ralink,mtd-eeprom = <&radio 0>;
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)>;