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_HIGH>;
29 label = "c50:green:usb";
30 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
34 label = "c50:green:wan";
35 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
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 linux,modalias = "m25p80", "mx25l6405d";
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>;
183 mtd-mac-address = <&rom 0xf100>;
184 mtd-mac-address-increment = <(-1)>;