ath79: add leds migrations for archer-c7-v2 and v4
authorDavid Santamaría Rogado <howl.nsp@gmail.com>
Thu, 23 May 2019 21:38:07 +0000 (23:38 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 31 May 2019 09:21:22 +0000 (11:21 +0200)
In ar71xx v2 has blue color defined because the same mach-*.c is also used
for TL-WDR4900 model with blue leds. ath79 v2 dts defines them as green.

For v4 the situation is the same as v5 so the conversion is identical only
v4 instead v5.

So now upgrading from ar71xx to ath79 should be also smoother for v2 and v4.

Signed-off-by: David Santamaría Rogado <howl.nsp@gmail.com>
target/linux/ath79/base-files/etc/uci-defaults/04_led_migration

index fe4a9c3cc06df51e1ec4988cd9347ed59b3e9cd9..bc40d22c094179925d30aabca8b09b3da55ddd28 100644 (file)
@@ -9,6 +9,12 @@ case "$board" in
 engenius,epg5000)
        migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g"
        ;;
+tplink,archer-c7-v2)
+       migrate_leds ":blue:=:green:"
+       ;;
+tplink,archer-c7-v4)
+       migrate_leds "archer-c7-v4:=tp-link:"
+       ;;
 tplink,archer-c7-v5)
        migrate_leds "archer-c7-v5:=tp-link:"
        ;;