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>;
37 trigger-sources = <&ohci_port1>, <&ehci_port1>;
38 linux,default-trigger = "usbport";
42 label = "c50:green:wan";
43 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
47 label = "c50:orange:wan";
48 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
52 label = "c50:green:wlan5g";
53 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
57 label = "c50:green:wlan2g";
58 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
62 label = "c50:green:wps";
63 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
68 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 compatible = "jedec,spi-nor";
102 spi-max-frequency = <10000000>;
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
117 reg = <0x20000 0x7a0000>;
122 reg = <0x7c0000 0x10000>;
126 rom: partition@7d0000 {
128 reg = <0x7d0000 0x10000>;
134 reg = <0x7e0000 0x10000>;
138 radio: partition@7f0000 {
140 reg = <0x7f0000 0x10000>;
148 state_default: pinctrl0 {
150 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd";
151 ralink,function = "gpio";
157 pinctrl-names = "default";
158 mtd-mac-address = <&rom 0xf100>;
159 mediatek,portmap = "wllll";
171 mediatek,port4 = "ephy";
175 ralink,mtd-eeprom = <&radio 0>;
176 mtd-mac-address = <&rom 0xf100>;
177 mtd-mac-address-increment = <(-2)>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&pa_pins>;
188 reg = <0x0000 0 0 0 0>;
189 mediatek,mtd-eeprom = <&radio 32768>;
190 ieee80211-freq-limit = <5000000 6000000>;
191 mtd-mac-address = <&rom 0xf100>;
192 mtd-mac-address-increment = <(-1)>;