ramips: move dts-v1 statement to top-level DTSI files
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_tplink_re220-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an_tplink_re200.dtsi"
4
5 / {
6 compatible = "tplink,re220-v2", "mediatek,mt7628an-soc";
7 model = "TP-Link RE220 v2";
8
9 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 wps {
20 label = "re220-v2:green:wps";
21 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
22 };
23
24 wifi {
25 label = "re220-v2:green:wifi";
26 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
27 };
28
29 lan {
30 label = "re220-v2:green:lan";
31 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
32 };
33
34 led_power: power {
35 label = "re220-v2:green:power";
36 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
37 };
38
39 wifi2g_green {
40 label = "re220-v2:green:wifi2g";
41 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
43 };
44
45 wifi5g_green {
46 label = "re220-v2:green:wifi5g";
47 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy1tpt";
49 };
50
51 wifi2g_red {
52 label = "re220-v2:red:wifi2g";
53 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
54 };
55
56 wifi5g_red {
57 label = "re220-v2:red:wifi5g";
58 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
59 };
60 };
61 };
62
63 &state_default {
64 gpio {
65 groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an",
66 "p0led_an", "wled_an", "i2c", "wdt", "refclk";
67 function = "gpio";
68 };
69 };