ath79: fix LED labels for PowerCloud CAP324
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 27 Sep 2020 13:51:18 +0000 (15:51 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 11 Nov 2020 16:26:52 +0000 (17:26 +0100)
The order of function and color in the labels in inverted for the
LAN LEDs. Fix it.

Fixes: 915966d86121 ("ath79: Port PowerCloud Systems CAP324 support")
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit 96023cd4ba66c33e77d9df562dda44b0a1ba1ac9)

target/linux/ath79/base-files/etc/board.d/01_leds
target/linux/ath79/base-files/etc/uci-defaults/04_led_migration
target/linux/ath79/dts/ar9344_pcs_cap324.dts

index 8c80a9eaa5acbaaed77b35484cd5b31ba1eb7656..dd0f91affa3cd9a731343a816bc666e0bbd44e99 100755 (executable)
@@ -91,7 +91,7 @@ on,n150r)
        ucidef_set_led_switch "lan2" "LAN2" "netgear:green:lan2" "switch0" "0x04" "0x0f"
        ;;
 pcs,cap324)
-       ucidef_set_led_netdev "lan" "LAN" "pcs:lan:green" "eth0"
+       ucidef_set_led_netdev "lan" "LAN" "pcs:green:lan" "eth0"
        ;;
 pcs,cr3000)
        ucidef_set_led_netdev "wan" "WAN" "pcs:blue:wan" "eth1"
index 561aa897f4f01ee05143e1970f188424aa2d9936..02b4bff34206668d28e8991e3f449e0361992dc6 100644 (file)
@@ -10,6 +10,9 @@ case "$board" in
 engenius,epg5000)
        migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g"
        ;;
+pcs,cap324)
+       migrate_leds "lan:amber=amber:lan" "lan:green=green:lan"
+       ;;
 tplink,archer-c25-v1|\
 tplink,archer-c58-v1|\
 tplink,archer-c59-v1|\
index 7a211e90880b773e44e08f2d110d176ea83ed8be..456bd85cd9a585dc2f979da226d2d54b5cda1192 100644 (file)
                };
 
                lan_amber {
-                       label = "pcs:lan:amber";
+                       label = "pcs:amber:lan";
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                lan_green {
-                       label = "pcs:lan:green";
+                       label = "pcs:green:lan";
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
        };