aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration
diff options
context:
space:
mode:
authorRani Hod <rani.hod@gmail.com>2023-10-20 16:15:38 +0300
committerHauke Mehrtens <hauke@hauke-m.de>2023-10-26 00:14:10 +0200
commit75fe50defe20cf2536a083110f8910e2de5e409a (patch)
treef3f586c27de5c0ede396047f1e47bc78345c014d /target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration
parent263ef841d47414efe4586013bd0bf4b026936d2e (diff)
downloadupstream-75fe50defe20cf2536a083110f8910e2de5e409a.tar.gz
upstream-75fe50defe20cf2536a083110f8910e2de5e409a.tar.bz2
upstream-75fe50defe20cf2536a083110f8910e2de5e409a.zip
ramips: TP-link archer A6/C6 device tree updates
Set correct GPIO (10) for the WPS button. This matches GPIO settings in vendor GPL sources. Note that GPL sources also mention a USB indicator LED (GPIO 13) but the device has neither an external USB port nor a USB LED. In addition, prefixes (button-, led-) are added to relevant DT entries, as well as color and function specifications for LEDs. Closes: #13736 Reported-by: Waldemar Czabaj <kaball@wp.pl> Signed-off-by: Rani Hod <rani.hod@gmail.com> (added led mitigations for wifi leds) Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (cherry picked from commit fe5e4987776ef66c6788f70251dcbc0ca80a1c5f)
Diffstat (limited to 'target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration')
-rw-r--r--target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration17
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration
new file mode 100644
index 0000000000..b595ae6fd1
--- /dev/null
+++ b/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration
@@ -0,0 +1,17 @@
+. /lib/functions.sh
+. /lib/functions/migrations.sh
+
+board=$(board_name)
+
+case "$board" in
+tplink,archer-a6-v3|\
+tplink,archer-c6-v3)
+ migrate_leds ':wifi2g$=:wlan-2' ':wifi5g$=:wlan-5'
+ ;;
+esac
+
+remove_devicename_leds
+
+migrations_apply system
+
+exit 0