ramips: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_re305.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 label-mac-device = &ethernet;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
25 };
26
27 wps {
28 label = "wps";
29 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
31 };
32 };
33
34 leds {
35 compatible = "gpio-leds";
36
37 led_power: power {
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_BLUE>;
40 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
41 };
42
43 wlan2g {
44 label = "blue:wlan2g";
45 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
47 };
48
49 wlan5g {
50 label = "blue:wlan5g";
51 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
53 };
54
55 rssi1 {
56 label = "red:rssi";
57 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
58 };
59
60 rssi2 {
61 label = "blue:rssi";
62 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
63 };
64 };
65 };
66
67 &state_default {
68 gpio {
69 groups = "refclk", "wdt", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an";
70 function = "gpio";
71 };
72 };
73
74 &pcie {
75 status = "okay";
76 };
77
78 &pcie0 {
79 wlan5g: mt76@0,0 {
80 compatible = "mediatek,mt76";
81 reg = <0x0000 0 0 0 0>;
82 ieee80211-freq-limit = <5000000 6000000>;
83 };
84 };
85
86 &wmac {
87 status = "okay";
88 };