aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-04-27 23:26:18 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-04 21:31:04 +0200
commitf40947a8c0c345d69836f4f6528353b9fbb5ce0e (patch)
tree00431ac53b55d66da093c19d244eaf713e6e7062
parent65cf72d5d25c5ca58d481f79a91c9486a1b99023 (diff)
downloadupstream-f40947a8c0c345d69836f4f6528353b9fbb5ce0e.tar.gz
upstream-f40947a8c0c345d69836f4f6528353b9fbb5ce0e.tar.bz2
upstream-f40947a8c0c345d69836f4f6528353b9fbb5ce0e.zip
ath79: indicate boot/failsafe/upgrade for NanoBeam/Nanostation AC
Like for Ubiquiti PowerBeam 5AC Gen2, the highest RSSI LED can be exploited to indicate boot/failsafe/upgrade for the NanoBeam AC and Nanostation AC as well. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit 80a094aaf3247059846e7d857c236b4fa9e497c7)
-rw-r--r--target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac.dts8
-rw-r--r--target/linux/ath79/dts/ar9342_ubnt_nanostation-ac.dts8
2 files changed, 14 insertions, 2 deletions
diff --git a/target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac.dts b/target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac.dts
index 6e64c7faad..d5021bcd5c 100644
--- a/target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac.dts
+++ b/target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac.dts
@@ -10,6 +10,12 @@
compatible = "ubnt,nanobeam-ac", "ubnt,wa", "qca,ar9342";
model = "Ubiquiti NanoBeam AC (WA)";
+ aliases {
+ led-boot = &led_rssi3;
+ led-failsafe = &led_rssi3;
+ led-upgrade = &led_rssi3;
+ };
+
leds {
compatible = "gpio-leds";
@@ -28,7 +34,7 @@
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
- rssi3 {
+ led_rssi3: rssi3 {
label = "ubnt:blue:rssi3";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
diff --git a/target/linux/ath79/dts/ar9342_ubnt_nanostation-ac.dts b/target/linux/ath79/dts/ar9342_ubnt_nanostation-ac.dts
index 2ace37ad68..900aa95b21 100644
--- a/target/linux/ath79/dts/ar9342_ubnt_nanostation-ac.dts
+++ b/target/linux/ath79/dts/ar9342_ubnt_nanostation-ac.dts
@@ -10,6 +10,12 @@
compatible = "ubnt,nanostation-ac","ubnt,wa", "qca,ar9342";
model = "Ubiquiti Nanostation AC (WA)";
+ aliases {
+ led-boot = &led_rssi3;
+ led-failsafe = &led_rssi3;
+ led-upgrade = &led_rssi3;
+ };
+
leds {
compatible = "gpio-leds";
@@ -28,7 +34,7 @@
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
- rssi3 {
+ led_rssi3: rssi3 {
label = "ubnt:blue:rssi3";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};