ath79: indicate boot/failsafe/upgrade for NanoBeam/Nanostation AC
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 27 Apr 2020 21:26:18 +0000 (23:26 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 4 May 2020 19:31:04 +0000 (21:31 +0200)
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)

target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac.dts
target/linux/ath79/dts/ar9342_ubnt_nanostation-ac.dts

index 6e64c7faad8289dbdbf7d9dd14112b734b375cd3..d5021bcd5ca95101b1664ae00375609306063621 100644 (file)
        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>;
                };
index 2ace37ad687f2f3fa722b03e1e3bfd5533324a98..900aa95b213e7694d4cc1844696436ef4467c01f 100644 (file)
        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>;
                };