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 led-status = &led_power;
17 bootargs = "console=ttyS0,115200";
21 compatible = "gpio-leds";
24 label = "c50:green:lan";
25 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
29 label = "c50:green:power";
30 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
35 label = "c50:green:usb";
36 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
40 label = "c50:green:wan";
41 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
45 label = "c50:orange:wan";
46 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
50 label = "c50:green:wlan5g";
51 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
55 label = "c50:green:wlan2g";
56 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
60 label = "c50:green:wps";
61 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
66 compatible = "gpio-keys-polled";
73 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_RESTART>;
79 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RFKILL>;
100 #address-cells = <1>;
102 compatible = "jedec,spi-nor";
104 spi-max-frequency = <10000000>;
114 reg = <0x20000 0x7a0000>;
119 reg = <0x7c0000 0x10000>;
123 rom: partition@7d0000 {
125 reg = <0x7d0000 0x10000>;
131 reg = <0x7e0000 0x10000>;
135 radio: partition@7f0000 {
137 reg = <0x7f0000 0x10000>;
144 state_default: pinctrl0 {
146 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd";
147 ralink,function = "gpio";
153 pinctrl-names = "default";
154 mtd-mac-address = <&rom 0xf100>;
155 mediatek,portmap = "wllll";
167 mediatek,port4 = "ephy";
171 ralink,mtd-eeprom = <&radio 0>;
172 mtd-mac-address = <&rom 0xf100>;
173 mtd-mac-address-increment = <(-2)>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&pa_pins>;
184 reg = <0x0000 0 0 0 0>;
185 mediatek,mtd-eeprom = <&radio 32768>;
186 ieee80211-freq-limit = <5000000 6000000>;
187 mtd-mac-address = <&rom 0xf100>;
188 mtd-mac-address-increment = <(-1)>;