aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2018-12-06 01:14:01 +0100
committerChristian Lamparter <chunkeey@gmail.com>2018-12-27 16:02:23 +0100
commit965ce07dbb16d975c85d8a7d7d3500665480ad81 (patch)
tree4258e0a6beaa765eb469000de3cbc190c67f5cff /target
parent32141c183a28a55fd3288397348ca820b77265d3 (diff)
downloadupstream-965ce07dbb16d975c85d8a7d7d3500665480ad81.tar.gz
upstream-965ce07dbb16d975c85d8a7d7d3500665480ad81.tar.bz2
upstream-965ce07dbb16d975c85d8a7d7d3500665480ad81.zip
ath79: ubnt-xw: Add LED aliases for diag and status LED support
Currently there is no LED signalization for various system states implemented in diag.sh, so this patch adds support for it. Tested-by: Joe Ayers <ae6xe@arrl.net> Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ath79/dts/ar9342_ubnt_xw.dtsi9
1 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi b/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi
index b104bc6d3d..f42524e2d9 100644
--- a/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi
+++ b/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi
@@ -9,6 +9,13 @@
compatible = "ubnt,xw", "qca,ar9342";
model = "Ubiquiti Networks XW board";
+ aliases {
+ led-boot = &system;
+ led-running = &system;
+ led-upgrade = &system;
+ led-failsafe = &system;
+ };
+
gpio-leds {
compatible = "gpio-leds";
@@ -27,7 +34,7 @@
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
- link4 {
+ system: link4 {
label = "ubnt:green:link4";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};