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>;
29 label = "c50:green:usb";
30 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
34 label = "c50:green:wan";
35 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
39 label = "c50:orange:wan";
40 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
44 label = "c50:green:wlan5g";
45 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
49 label = "c50:green:wlan2g";
50 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
54 label = "c50:green:wps";
55 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
60 compatible = "gpio-keys-polled";
67 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RESTART>;
73 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_RFKILL>;
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <10000000>;
108 reg = <0x20000 0x7a0000>;
113 reg = <0x7c0000 0x10000>;
117 rom: partition@7d0000 {
119 reg = <0x7d0000 0x10000>;
125 reg = <0x7e0000 0x10000>;
129 radio: partition@7f0000 {
131 reg = <0x7f0000 0x10000>;
138 state_default: pinctrl0 {
140 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd";
141 ralink,function = "gpio";
146 ralink,function = "pa";
152 pinctrl-names = "default";
153 mtd-mac-address = <&rom 0xf100>;
154 mediatek,portmap = "wllll";
166 mediatek,port4 = "ephy";
170 ralink,mtd-eeprom = <&radio 0>;
178 reg = <0x0000 0 0 0 0>;
180 mediatek,mtd-eeprom = <&radio 32768>;
181 ieee80211-freq-limit = <5000000 6000000>;
182 mtd-mac-address = <&rom 0xf100>;
183 mtd-mac-address-increment = <(-1)>;