ath79: fix UniFi AC LED mapping
authorDavid Bauer <mail@david-bauer.net>
Fri, 6 Sep 2019 22:43:19 +0000 (00:43 +0200)
committerDavid Bauer <mail@david-bauer.net>
Thu, 12 Sep 2019 13:39:21 +0000 (15:39 +0200)
The UniFi AC LED mapping is currently off. The blue/white LED are used
as WiFi indicators, while the vendor firmware does not feature WiFI
LEDs.

Instead, the LEDs are used to indicate the devices status. Align the LED
mapping to match the vendor firmware as good as possible.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi

index 3ee43a6d4b082fe2c34786e4a3094c893c6c7f0c..fdd4a01d867dfdf80651c4fddc81d7f3693c2780 100644 (file)
@@ -6,6 +6,13 @@
 #include "qca956x.dtsi"
 
 / {
+       aliases {
+               led-boot = &led_white;
+               led-failsafe = &led_white;
+               led-running = &led_blue;
+               led-upgrade = &led_blue;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200n8";
        };
        leds {
                compatible = "gpio-leds";
 
-               wifi_ac {
+               led_white: led_white {
                        label = "ubnt:white:dome";
                        gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
-                       linux,default-trigger = "phy0tpt";
                };
 
-               wifi_n {
+               led_blue: led_blue {
                        label = "ubnt:blue:dome";
                        gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
-                       linux,default-trigger = "phy1tpt";
                };
 
        };