ramips: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_xiaomi_mi-router-ac2100.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "mt7621_xiaomi_router-ac2100.dtsi"
6
7 / {
8 compatible = "xiaomi,mi-router-ac2100", "mediatek,mt7621-soc";
9 model = "Xiaomi Mi Router AC2100";
10
11 aliases {
12 led-boot = &led_status_yellow;
13 led-failsafe = &led_status_yellow;
14 led-running = &led_status_blue;
15 led-upgrade = &led_status_blue;
16 label-mac-device = &gmac0;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 wan_yellow {
23 function = LED_FUNCTION_WAN;
24 color = <LED_COLOR_ID_YELLOW>;
25 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
26 };
27
28 wan_blue {
29 function = LED_FUNCTION_WAN;
30 color = <LED_COLOR_ID_BLUE>;
31 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
32 };
33
34 led_status_yellow: status_yellow {
35 function = LED_FUNCTION_STATUS;
36 color = <LED_COLOR_ID_YELLOW>;
37 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
38 };
39
40 led_status_blue: status_blue {
41 function = LED_FUNCTION_STATUS;
42 color = <LED_COLOR_ID_BLUE>;
43 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
44 };
45 };
46 };