From 1677b62e4b6ba8372c1bc5211580fb877d1621d9 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 6 Dec 2016 17:06:38 +0100 Subject: [PATCH] ar71xx: fix LEDs for TL-WA801ND v3, remove BROKEN --- ...sysupgrade-support-for-TL-WA801ND-v3.patch | 70 +++++++++++++++++++ ...71xx-fix-sysupgrade-on-TL-WR801ND-v3.patch | 18 ----- targets/ar71xx-generic/profiles.mk | 4 +- 3 files changed, 71 insertions(+), 21 deletions(-) create mode 100644 patches/openwrt/0082-ar71xx-fix-LEDs-and-sysupgrade-support-for-TL-WA801ND-v3.patch delete mode 100644 patches/openwrt/0082-ar71xx-fix-sysupgrade-on-TL-WR801ND-v3.patch diff --git a/patches/openwrt/0082-ar71xx-fix-LEDs-and-sysupgrade-support-for-TL-WA801ND-v3.patch b/patches/openwrt/0082-ar71xx-fix-LEDs-and-sysupgrade-support-for-TL-WA801ND-v3.patch new file mode 100644 index 00000000..ffb357d0 --- /dev/null +++ b/patches/openwrt/0082-ar71xx-fix-LEDs-and-sysupgrade-support-for-TL-WA801ND-v3.patch @@ -0,0 +1,70 @@ +From: Matthias Schiffer +Date: Tue, 6 Dec 2016 16:18:49 +0100 +Subject: ar71xx: fix LEDs and sysupgrade support for TL-WA801ND v3 + +Signed-off-by: Matthias Schiffer + +diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh +index 2c5d6af..6b0caa6 100644 +--- a/target/linux/ar71xx/base-files/etc/diag.sh ++++ b/target/linux/ar71xx/base-files/etc/diag.sh +@@ -274,6 +274,7 @@ get_status_led() { + tl-wr1043nd-v2 | \ + tl-wr741nd | \ + tl-wr741nd-v4 | \ ++ tl-wa801nd-v3 | \ + tl-wr841n-v1 | \ + tl-wr841n-v7 | \ + tl-wr841n-v8 | \ +diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +index 2a0f996..849755f 100644 +--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds ++++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +@@ -536,6 +536,11 @@ tl-wa901nd-v3) + ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" + ;; + ++tl-wa801nd-v3) ++ ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth1" ++ ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" ++ ;; ++ + tl-wr941nd | \ + tl-wr1041n-v2) + ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" +diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +index 4003b21..ee2e596 100755 +--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh ++++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +@@ -349,6 +349,7 @@ platform_check_image() { + tl-wa850re | \ + tl-wa860re | \ + tl-wa801nd-v2 | \ ++ tl-wa801nd-v3 | \ + tl-wa901nd | \ + tl-wa901nd-v2 | \ + tl-wa901nd-v3 | \ +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 +index 39cdb10..054c14e 100644 +--- 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 +@@ -24,7 +24,7 @@ + #include "machtypes.h" + + #define TL_WA801NDV3_GPIO_LED_WLAN 12 +-#define TL_WA801NDV3_GPIO_LED_QSS 13 ++#define TL_WA801NDV3_GPIO_LED_SYSTEM 13 + #define TL_WA801NDV3_GPIO_LED_SECURITY_RED 11 + #define TL_WA801NDV3_GPIO_LED_SECURITY_GREEN 15 + #define TL_WA801NDV3_GPIO_LED_LAN 3 +@@ -46,8 +46,8 @@ static struct flash_platform_data tl_wa801n_v3_flash_data = { + + static struct gpio_led tl_wa801n_v3_leds_gpio[] __initdata = { + { +- .name = "tp-link:green:qss", +- .gpio = TL_WA801NDV3_GPIO_LED_QSS, ++ .name = "tp-link:green:system", ++ .gpio = TL_WA801NDV3_GPIO_LED_SYSTEM, + .active_low = 1, + }, { + .name = "tp-link:green:lan", diff --git a/patches/openwrt/0082-ar71xx-fix-sysupgrade-on-TL-WR801ND-v3.patch b/patches/openwrt/0082-ar71xx-fix-sysupgrade-on-TL-WR801ND-v3.patch deleted file mode 100644 index 6719b989..00000000 --- a/patches/openwrt/0082-ar71xx-fix-sysupgrade-on-TL-WR801ND-v3.patch +++ /dev/null @@ -1,18 +0,0 @@ -From: Matthias Schiffer -Date: Tue, 6 Dec 2016 16:18:49 +0100 -Subject: ar71xx: fix sysupgrade on TL-WR801ND v3 - -Signed-off-by: Matthias Schiffer - -diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -index 4003b21..ee2e596 100755 ---- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh -@@ -349,6 +349,7 @@ platform_check_image() { - tl-wa850re | \ - tl-wa860re | \ - tl-wa801nd-v2 | \ -+ tl-wa801nd-v3 | \ - tl-wa901nd | \ - tl-wa901nd-v2 | \ - tl-wa901nd-v3 | \ diff --git a/targets/ar71xx-generic/profiles.mk b/targets/ar71xx-generic/profiles.mk index 9c38a940..79ac78e5 100644 --- a/targets/ar71xx-generic/profiles.mk +++ b/targets/ar71xx-generic/profiles.mk @@ -66,9 +66,7 @@ $(eval $(call GluonModel,TLWR743,tl-wr743nd-v2,tp-link-tl-wr743n-nd-v2)) $(eval $(call GluonProfile,TLWA801)) $(eval $(call GluonModel,TLWA801,tl-wa801nd-v1,tp-link-tl-wa801n-nd-v1)) $(eval $(call GluonModel,TLWA801,tl-wa801nd-v2,tp-link-tl-wa801n-nd-v2)) -ifneq ($(BROKEN),) -$(eval $(call GluonModel,TLWA801,tl-wa801nd-v3,tp-link-tl-wa801n-nd-v3)) # BROKEN: untested -endif +$(eval $(call GluonModel,TLWA801,tl-wa801nd-v3,tp-link-tl-wa801n-nd-v3)) # TL-WR841N/ND v3, v5, v7, v8, v9, v10 $(eval $(call GluonProfile,TLWR841))