ramips: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_iptime_a604m.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "mt7628an_iptime.dtsi"
6
7 / {
8 compatible = "iptime,a604m", "mediatek,mt7628an-soc";
9 model = "ipTIME A604M";
10
11 aliases {
12 led-boot = &led_cpu;
13 led-failsafe = &led_cpu;
14 led-running = &led_cpu;
15 led-upgrade = &led_cpu;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 wlan5g {
22 label = "blue:wlan5g";
23 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
24 linux,default-trigger = "phy1tpt";
25 };
26
27 led_cpu: cpu {
28 function = LED_FUNCTION_CPU;
29 color = <LED_COLOR_ID_BLUE>;
30 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
31 };
32
33 wlan2g {
34 label = "blue:wlan2g";
35 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
37 };
38 };
39 };
40
41 &state_default {
42 gpio {
43 groups = "i2c", "uart1", "wdt";
44 function = "gpio";
45 };
46 };