ramips: use DT trigger for 2G WiFi on ASUS RT-AC51U
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_tplink_re200-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7620a_tplink_re2x0-v1.dtsi"
5
6 / {
7 compatible = "tplink,re200-v1", "ralink,mt7620a-soc";
8 model = "TP-Link RE200 v1";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_power: power {
21 label = "re200-v1:green:power";
22 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
23 };
24
25 lan {
26 label = "re200-v1:green:lan";
27 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
28 };
29
30 wlan {
31 label = "re200-v1:green:wlan";
32 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
33 };
34
35 qss {
36 label = "re200-v1:green:qss";
37 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
38 };
39
40 wlan2g_red {
41 label = "re200-v1:red:wlan2g";
42 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
43 };
44
45 wlan2g_green {
46 label = "re200-v1:green:wlan2g";
47 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy1tpt";
49 };
50 };
51 };
52
53
54 &state_default {
55 gpio {
56 groups = "i2c", "uartf", "ephy", "wled", "rgmii1", "spi refclk";
57 function = "gpio";
58 };
59 };
60
61 &gpio1 {
62 status = "okay";
63 };
64
65 &gpio2 {
66 status = "okay";
67 };
68
69 &gpio3 {
70 status = "okay";
71 };