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-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
27 label = "c50:green:lan";
28 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
32 label = "c50:green:power";
33 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
38 label = "c50:green:usb";
39 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
40 trigger-sources = <&ohci_port1>, <&ehci_port1>;
41 linux,default-trigger = "usbport";
45 label = "c50:green:wan";
46 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
50 label = "c50:orange:wan";
51 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
55 label = "c50:green:wlan5g";
56 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
60 label = "c50:green:wlan2g";
61 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
65 label = "c50:green:wps";
66 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
71 compatible = "gpio-keys-polled";
76 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_RESTART>;
82 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_RFKILL>;
103 compatible = "jedec,spi-nor";
105 spi-max-frequency = <10000000>;
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
119 compatible = "tplink,firmware";
121 reg = <0x20000 0x7a0000>;
126 reg = <0x7c0000 0x10000>;
130 rom: partition@7d0000 {
132 reg = <0x7d0000 0x10000>;
138 reg = <0x7e0000 0x10000>;
142 radio: partition@7f0000 {
144 reg = <0x7f0000 0x10000>;
152 state_default: pinctrl0 {
154 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd";
155 ralink,function = "gpio";
161 pinctrl-names = "default";
162 mtd-mac-address = <&rom 0xf100>;
163 mediatek,portmap = "wllll";
175 mediatek,port4 = "ephy";
179 ralink,mtd-eeprom = <&radio 0>;
180 mtd-mac-address = <&rom 0xf100>;
181 mtd-mac-address-increment = <(-2)>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&pa_pins>;
192 reg = <0x0000 0 0 0 0>;
193 mediatek,mtd-eeprom = <&radio 32768>;
194 ieee80211-freq-limit = <5000000 6000000>;
195 mtd-mac-address = <&rom 0xf100>;
196 mtd-mac-address-increment = <(-1)>;