ath79: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ath79 / dts / ar9341_tplink_tl-wa901nd-v3.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "ar9341_tplink_tl-wa.dtsi"
6
7 / {
8 model = "TP-Link TL-WA901ND v3";
9 compatible = "tplink,tl-wa901nd-v3", "qca,ar9341";
10
11 aliases {
12 led-boot = &led_system;
13 led-failsafe = &led_system;
14 led-running = &led_system;
15 led-upgrade = &led_system;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "Reset";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 lan {
33 function = LED_FUNCTION_LAN;
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
36 };
37
38 wlan {
39 function = LED_FUNCTION_WLAN;
40 color = <LED_COLOR_ID_GREEN>;
41 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
43 };
44
45 qss {
46 label = "green:qss";
47 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
48 };
49
50 led_system: system {
51 label = "green:system";
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
53 };
54 };
55 };