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>
Sun, 27 Sep 2020 13:58:14 +0000 (15:58 +0200)
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>
target/linux/ath79/dts/ar9344_pcs_cap324.dts
target/linux/ath79/generic/base-files/etc/board.d/01_leds
target/linux/ath79/generic/base-files/etc/uci-defaults/04_led_migration

index 27f750babab0d67eb771110cd412995a1114b15b..5a1ac2102584ba9c4596fb5d374f947ac5b6f5ff 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>;
                };
        };
index b1cca531edc0c11e3f16a476bcf8e2edee280f82..ef7a0d4e3c5e19ac7604236d07dc1a723811a135 100755 (executable)
@@ -199,7 +199,7 @@ netgear,wnr2200-16m)
        ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
        ;;
 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 02bdbb8476c4d006939f4718de28a24456cbc1e9..15cf20573bc8c99f503c5dc3f0da7cb0a534d691 100644 (file)
@@ -21,6 +21,9 @@ engenius,epg5000)
 glinet,gl-mifi)
        migrate_leds ":net=:3g4g"
        ;;
+pcs,cap324)
+       migrate_leds "lan:amber=amber:lan" "lan:green=green:lan"
+       ;;
 mercury,mw4530r-v1|\
 tplink,archer-c7-v2|\
 tplink,tl-wdr3600-v1|\