ramips: use DT trigger for 2G WiFi on ASUS RT-AC51U
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_tplink_re210-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,re210-v1", "ralink,mt7620a-soc";
8 model = "TP-Link RE210 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 = "re210-v1:green:power";
22 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
23 };
24
25 rssi_high {
26 label = "re210-v1:green:rssi-high";
27 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
28 };
29
30 rssi_low {
31 label = "re210-v1:red:rssi-low";
32 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
33 };
34
35 wlan2g {
36 label = "re210-v1:green:wlan2g";
37 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy1tpt";
39 };
40
41 wlan5g {
42 label = "re210-v1:green:wlan5g";
43 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy0tpt";
45 };
46 };
47 };
48
49 &keys {
50 led_power {
51 label = "LED power";
52 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
53 linux,code = <BTN_0>;
54 };
55 };
56
57 &state_default {
58 gpio {
59 groups = "i2c", "uartf", "wled", "rgmii1";
60 function = "gpio";
61 };
62 };
63
64 &gsw {
65 mediatek,port4 = "gmac";
66 };
67
68 &ethernet {
69 pinctrl-names = "default";
70 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
71
72 port@4 {
73 status = "okay";
74
75 phy-handle = <&phy4>;
76 phy-mode = "rgmii";
77 };
78
79 mdio-bus {
80 status = "okay";
81
82 phy4: ethernet-phy@4 {
83 reg = <4>;
84 phy-mode = "rgmii";
85 };
86 };
87 };
88
89 &gpio1 {
90 status = "okay";
91 };
92
93 &gpio3 {
94 status = "okay";
95 };