1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7620a.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "tplink,re200-v1", "ralink,mt7620a-soc";
11 model = "TP-Link RE200 v1";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = ðernet;
22 bootargs = "console=ttyS0,57600n8";
26 compatible = "gpio-leds";
29 label = "re200-v1:green:power";
30 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
34 label = "re200-v1:green:lan";
35 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
39 label = "re200-v1:green:wlan";
40 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
44 label = "re200-v1:green:qss";
45 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
49 label = "re200-v1:red:wlan2g";
50 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
54 label = "re200-v1:green:wlan2g";
55 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
56 linux,default-trigger = "phy1radio";
61 compatible = "gpio-keys";
65 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_RESTART>;
71 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_WPS_BUTTON>;
80 ralink,group = "i2c", "uartf", "ephy", "wled", "rgmii1", "spi refclk";
81 ralink,function = "gpio";
89 compatible = "jedec,spi-nor";
91 spi-max-frequency = <50000000>;
94 compatible = "fixed-partitions";
105 compatible = "tplink,firmware";
107 reg = <0x20000 0x7c0000>;
111 label = "userconfig";
112 reg = <0x7e0000 0x10000>;
116 radio: partition@7f0000 {
118 reg = <0x7f0000 0x10000>;
138 mtd-mac-address = <&uboot 0x1fc00>;
142 ralink,mtd-eeprom = <&radio 0x0>;
143 mtd-mac-address = <&uboot 0x1fc00>;
152 reg = <0x0000 0 0 0 0>;
153 mediatek,mtd-eeprom = <&radio 0x8000>;
154 mtd-mac-address = <&uboot 0x1fc00>;
155 mtd-mac-address-increment = <2>;
156 ieee80211-freq-limit = <5000000 6000000>;