ramips: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_zbtlink_zbt-we1026-h.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "mt7620a_zbtlink_zbt-we1026.dtsi"
6
7 / {
8 compatible = "zbtlink,zbt-we1026-h", "zbtlink,zbt-we1026",
9 "ralink,mt7620a-soc";
10
11 leds {
12 compatible = "gpio-leds";
13
14 usb {
15 function = LED_FUNCTION_USB;
16 color = <LED_COLOR_ID_GREEN>;
17 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
18 };
19
20 lan {
21 function = LED_FUNCTION_LAN;
22 color = <LED_COLOR_ID_GREEN>;
23 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
24 };
25
26 wan {
27 function = LED_FUNCTION_WAN;
28 color = <LED_COLOR_ID_GREEN>;
29 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
30 };
31
32 wifi {
33 label = "green:wifi";
34 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
35 };
36 };
37 };