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-09-27 15:58:14 +0200
commit96023cd4ba66c33e77d9df562dda44b0a1ba1ac9 (patch)
tree69cdcd92732fa10f798a24af774da55621e37fde /target
parentd232a8ac7d1679f7ff97cbc66b4c49c940bd009f (diff)
downloadupstream-96023cd4ba66c33e77d9df562dda44b0a1ba1ac9.tar.gz
upstream-96023cd4ba66c33e77d9df562dda44b0a1ba1ac9.tar.bz2
upstream-96023cd4ba66c33e77d9df562dda44b0a1ba1ac9.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>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ath79/dts/ar9344_pcs_cap324.dts4
-rwxr-xr-xtarget/linux/ath79/generic/base-files/etc/board.d/01_leds2
-rw-r--r--target/linux/ath79/generic/base-files/etc/uci-defaults/04_led_migration3
3 files changed, 6 insertions, 3 deletions
diff --git a/target/linux/ath79/dts/ar9344_pcs_cap324.dts b/target/linux/ath79/dts/ar9344_pcs_cap324.dts
index 27f750baba..5a1ac21025 100644
--- a/target/linux/ath79/dts/ar9344_pcs_cap324.dts
+++ b/target/linux/ath79/dts/ar9344_pcs_cap324.dts
@@ -58,12 +58,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>;
};
};
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/01_leds b/target/linux/ath79/generic/base-files/etc/board.d/01_leds
index b1cca531ed..ef7a0d4e3c 100755
--- a/target/linux/ath79/generic/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/generic/base-files/etc/board.d/01_leds
@@ -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"
diff --git a/target/linux/ath79/generic/base-files/etc/uci-defaults/04_led_migration b/target/linux/ath79/generic/base-files/etc/uci-defaults/04_led_migration
index 02bdbb8476..15cf20573b 100644
--- a/target/linux/ath79/generic/base-files/etc/uci-defaults/04_led_migration
+++ b/target/linux/ath79/generic/base-files/etc/uci-defaults/04_led_migration
@@ -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|\