ath79: generic: rework ar9342_ubnt_xw dtsi, and add support for Ubiquiti LiteBeam...
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9342_ubnt_xw_rssileds.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9342_ubnt_xw.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "ubnt,xw", "qca,ar9342";
10 model = "Ubiquiti Networks XW board";
11
12 aliases {
13 led-boot = &led_link4;
14 led-running = &led_link4;
15 led-upgrade = &led_link4;
16 led-failsafe = &led_link4;
17 label-mac-device = &wmac;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 link1 {
24 label = "red:link1";
25 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
26 };
27
28 link2 {
29 label = "orange:link2";
30 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
31 };
32
33 link3 {
34 label = "green:link3";
35 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
36 };
37
38 led_link4: link4 {
39 label = "green:link4";
40 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
41 };
42 };
43 };