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";
71 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_RESTART>;
77 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_RFKILL>;
98 compatible = "jedec,spi-nor";
100 spi-max-frequency = <10000000>;
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
115 reg = <0x20000 0x7a0000>;
120 reg = <0x7c0000 0x10000>;
124 rom: partition@7d0000 {
126 reg = <0x7d0000 0x10000>;
132 reg = <0x7e0000 0x10000>;
136 radio: partition@7f0000 {
138 reg = <0x7f0000 0x10000>;
146 state_default: pinctrl0 {
148 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd";
149 ralink,function = "gpio";
155 pinctrl-names = "default";
156 mtd-mac-address = <&rom 0xf100>;
157 mediatek,portmap = "wllll";
169 mediatek,port4 = "ephy";
173 ralink,mtd-eeprom = <&radio 0>;
174 mtd-mac-address = <&rom 0xf100>;
175 mtd-mac-address-increment = <(-2)>;
176 pinctrl-names = "default";
177 pinctrl-0 = <&pa_pins>;
186 reg = <0x0000 0 0 0 0>;
187 mediatek,mtd-eeprom = <&radio 32768>;
188 ieee80211-freq-limit = <5000000 6000000>;
189 mtd-mac-address = <&rom 0xf100>;
190 mtd-mac-address-increment = <(-1)>;