ramips: add support for TP-Link RE500 v1
[openwrt/staging/ynezz.git] / target / linux / ramips / dts / mt7621_tplink_re500-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7621_tplink_rexx0-v1.dtsi"
5
6 / {
7 compatible = "tplink,re500-v1", "mediatek,mt7621-soc";
8 model = "TP-Link RE500 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 = "re500-v1:blue:power";
22 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
23 };
24
25 wifi2g {
26 label = "re500-v1:blue:wifi2g";
27 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
28 linux,default-trigger = "phy0tpt";
29 };
30
31 wifi5g {
32 label = "re500-v1:blue:wifi5g";
33 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "phy1tpt";
35 };
36
37 wps_red {
38 label = "re500-v1:red:wps";
39 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
40 };
41
42 wps_blue {
43 label = "re500-v1:blue:wps";
44 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
45 };
46
47 eth_act {
48 label = "re500-v1:green:eth_act";
49 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
50 };
51
52 eth_link {
53 label = "re500-v1:green:eth_link";
54 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
55 };
56 };
57 };
58
59 &state_default {
60 gpio {
61 groups = "rgmii2", "wdt";
62 function = "gpio";
63 };
64 };