0082-ar71xx-fix-LEDs-and-sysupgrade-support-for-TL-WA801ND-v3.patch 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Tue, 6 Dec 2016 16:18:49 +0100
  3. Subject: ar71xx: fix LEDs and sysupgrade support for TL-WA801ND v3
  4. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
  5. diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
  6. index 2c5d6af8f4e2c5ce71adc0b63d32b8506e01b6a2..6b0caa676e6fc23be94c5eae77ae72e76f07fec3 100644
  7. --- a/target/linux/ar71xx/base-files/etc/diag.sh
  8. +++ b/target/linux/ar71xx/base-files/etc/diag.sh
  9. @@ -274,6 +274,7 @@ get_status_led() {
  10. tl-wr1043nd-v2 | \
  11. tl-wr741nd | \
  12. tl-wr741nd-v4 | \
  13. + tl-wa801nd-v3 | \
  14. tl-wr841n-v1 | \
  15. tl-wr841n-v7 | \
  16. tl-wr841n-v8 | \
  17. diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  18. index 2a0f9969cd22543de6e54a484052a27414c5d093..849755fb752c62a6fabf0ec609381b5d22991f1a 100644
  19. --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  20. +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  21. @@ -536,6 +536,11 @@ tl-wa901nd-v3)
  22. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  23. ;;
  24. +tl-wa801nd-v3)
  25. + ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth1"
  26. + ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  27. + ;;
  28. +
  29. tl-wr941nd | \
  30. tl-wr1041n-v2)
  31. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  32. diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  33. index 4003b21df26917a521ed96db82a970a82cdbc2cb..ee2e596e1f5e462e544a919ca8ebca525e43cec9 100755
  34. --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  35. +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  36. @@ -349,6 +349,7 @@ platform_check_image() {
  37. tl-wa850re | \
  38. tl-wa860re | \
  39. tl-wa801nd-v2 | \
  40. + tl-wa801nd-v3 | \
  41. tl-wa901nd | \
  42. tl-wa901nd-v2 | \
  43. tl-wa901nd-v3 | \
  44. diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa801nd-v3.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa801nd-v3.c
  45. index 39cdb10ee340650bc69e4f6054b06a4ae7421e57..054c14ee73faf629e1faf1efb19e804734602981 100644
  46. --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa801nd-v3.c
  47. +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa801nd-v3.c
  48. @@ -24,7 +24,7 @@
  49. #include "machtypes.h"
  50. #define TL_WA801NDV3_GPIO_LED_WLAN 12
  51. -#define TL_WA801NDV3_GPIO_LED_QSS 13
  52. +#define TL_WA801NDV3_GPIO_LED_SYSTEM 13
  53. #define TL_WA801NDV3_GPIO_LED_SECURITY_RED 11
  54. #define TL_WA801NDV3_GPIO_LED_SECURITY_GREEN 15
  55. #define TL_WA801NDV3_GPIO_LED_LAN 3
  56. @@ -46,8 +46,8 @@ static struct flash_platform_data tl_wa801n_v3_flash_data = {
  57. static struct gpio_led tl_wa801n_v3_leds_gpio[] __initdata = {
  58. {
  59. - .name = "tp-link:green:qss",
  60. - .gpio = TL_WA801NDV3_GPIO_LED_QSS,
  61. + .name = "tp-link:green:system",
  62. + .gpio = TL_WA801NDV3_GPIO_LED_SYSTEM,
  63. .active_low = 1,
  64. }, {
  65. .name = "tp-link:green:lan",