1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "tplink,archer-mr200", "ralink,mt7620a-soc";
9 model = "TP-Link Archer MR200";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
19 bootargs = "console=ttyS0,115200";
23 compatible = "gpio-leds";
26 function = LED_FUNCTION_LAN;
27 color = <LED_COLOR_ID_WHITE>;
28 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
32 function = LED_FUNCTION_WAN;
33 color = <LED_COLOR_ID_WHITE>;
34 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_WHITE>;
40 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
49 function = LED_FUNCTION_WPS;
50 color = <LED_COLOR_ID_WHITE>;
51 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
55 label = "white:signal1";
56 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
60 label = "white:signal2";
61 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
65 label = "white:signal3";
66 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
70 label = "white:signal4";
71 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
75 function = LED_FUNCTION_WLAN;
76 color = <LED_COLOR_ID_WHITE>;
77 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
78 linux,default-trigger = "phy1tpt";
83 compatible = "gpio-keys";
87 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
88 linux,code = <KEY_RESTART>;
93 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
94 linux,code = <KEY_RFKILL>;
99 compatible = "gpio-export";
103 gpio-export,name = "power_usb1";
104 gpio-export,output = <1>;
105 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
126 compatible = "jedec,spi-nor";
128 spi-max-frequency = <30000000>;
131 compatible = "fixed-partitions";
132 #address-cells = <1>;
142 compatible = "tplink,firmware";
144 reg = <0x20000 0x7b0000>;
147 rom: partition@7d0000 {
149 reg = <0x7d0000 0x10000>;
153 compatible = "fixed-layout";
154 #address-cells = <1>;
157 macaddr_rom_f100: macaddr@f100 {
165 reg = <0x7e0000 0x10000>;
169 radio: partition@7f0000 {
171 reg = <0x7f0000 0x10000>;
175 compatible = "fixed-layout";
176 #address-cells = <1>;
179 eeprom_radio_0: eeprom@0 {
183 eeprom_radio_8000: eeprom@8000 {
184 reg = <0x8000 0x200>;
194 groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk";
200 nvmem-cells = <&macaddr_rom_f100>;
201 nvmem-cell-names = "mac-address";
213 nvmem-cells = <&eeprom_radio_0>;
214 nvmem-cell-names = "eeprom";
223 reg = <0x0000 0 0 0 0>;
224 nvmem-cells = <&eeprom_radio_8000>;
225 nvmem-cell-names = "eeprom";