aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-09-27 15:51:18 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-11-11 17:26:52 +0100
commitc25e3275acc745e80c2868edbed7de2a7301372a (patch)
tree967caea3ebd5bbbbfdf0a3001a56a062ff5070c2 /target
parent78c4c04dd7979a7f6d3cadeb1783b6c38d63b575 (diff)
downloadupstream-c25e3275acc745e80c2868edbed7de2a7301372a.tar.gz
upstream-c25e3275acc745e80c2868edbed7de2a7301372a.tar.bz2
upstream-c25e3275acc745e80c2868edbed7de2a7301372a.zip
ath79: fix LED labels for PowerCloud CAP324
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)
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/01_leds2
-rw-r--r--target/linux/ath79/base-files/etc/uci-defaults/04_led_migration3
-rw-r--r--target/linux/ath79/dts/ar9344_pcs_cap324.dts4
3 files changed, 6 insertions, 3 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds
index 8c80a9eaa5..dd0f91affa 100755
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
@@ -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"
diff --git a/target/linux/ath79/base-files/etc/uci-defaults/04_led_migration b/target/linux/ath79/base-files/etc/uci-defaults/04_led_migration
index 561aa897f4..02b4bff342 100644
--- a/target/linux/ath79/base-files/etc/uci-defaults/04_led_migration
+++ b/target/linux/ath79/base-files/etc/uci-defaults/04_led_migration
@@ -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|\
diff --git a/target/linux/ath79/dts/ar9344_pcs_cap324.dts b/target/linux/ath79/dts/ar9344_pcs_cap324.dts
index 7a211e9088..456bd85cd9 100644
--- a/target/linux/ath79/dts/ar9344_pcs_cap324.dts
+++ b/target/linux/ath79/dts/ar9344_pcs_cap324.dts
@@ -60,12 +60,12 @@
};
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>;
};
};