ar71xx: add support for TP-Link TL-WA901ND v5
authorPaul Wassi <p.wassi@gmx.at>
Sun, 22 Oct 2017 20:39:30 +0000 (22:39 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Tue, 14 Nov 2017 21:36:46 +0000 (22:36 +0100)
The TL-WA901ND v5 has the same hardware as v4, although the PCB has
a different layout. Installation from factory is done via TFTP.
(rename -factory image to wa901ndv4_tp_recovery.bin for tftp)

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
target/linux/ar71xx/base-files/etc/board.d/01_leds
target/linux/ar71xx/base-files/etc/board.d/02_network
target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa901nd-v4.c
target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
target/linux/ar71xx/image/tp-link.mk

index 97abd914230c5416ab847bad3fd2059d6b5f4292..b670259af8d1ba542b17e28eb5bac7d11fa538a3 100755 (executable)
@@ -704,7 +704,8 @@ tl-wa801nd-v2|\
 tl-wa830re-v2|\
 tl-wa860re|\
 tl-wa901nd-v3|\
-tl-wa901nd-v4)
+tl-wa901nd-v4|\
+tl-wa901nd-v5)
        ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
        ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
        ;;
index 614c82de05f2d3f7ed6d7b3db10b4a424ca1c349..876eeaba61c389c5a32fe552ad79f7094c496929 100755 (executable)
@@ -124,6 +124,7 @@ ar71xx_setup_interfaces()
        tl-wa901nd-v2|\
        tl-wa901nd-v3|\
        tl-wa901nd-v4|\
+       tl-wa901nd-v5|\
        tl-wr703n|\
        tl-wr802n-v1|\
        tl-wr802n-v2|\
index 3fcbe306ad6dcca890b93fcb5fe6786907d67942..1f588fce5245faf56d50607cd8bea284ac81eb02 100644 (file)
@@ -391,6 +391,7 @@ get_status_led() {
        tl-wa901nd-v2|\
        tl-wa901nd-v3|\
        tl-wa901nd-v4|\
+       tl-wa901nd-v5|\
        tl-wdr3320-v2|\
        tl-wdr3500|\
        tl-wr1041n-v2|\
index 306af08cc5029b05fedefb26e45e6c69513df5a2..385214fc5472d886e2df3dff859f025c05b0b28f 100755 (executable)
@@ -1106,6 +1106,9 @@ ar71xx_board_detect() {
        *"TL-WA901ND v4")
                name="tl-wa901nd-v4"
                ;;
+       *"TL-WA901ND v5")
+               name="tl-wa901nd-v5"
+               ;;
        *"TL-WDR3320 v2")
                name="tl-wdr3320-v2"
                ;;
index e7947a319f1b40e857aa8bc4c878d6fcc88c6814..43c7ea7749c0db5c337105dfd219f5749fef1471 100755 (executable)
@@ -423,6 +423,7 @@ platform_check_image() {
        tl-wa901nd-v2|\
        tl-wa901nd-v3|\
        tl-wa901nd-v4|\
+       tl-wa901nd-v5|\
        tl-wdr3320-v2|\
        tl-wdr3500|\
        tl-wdr4300|\
index 9c651bb1d256bc13a3fe31b664f2cd3590e8092f..ffbcd6fe42df9b7c0dd86ae23a21ab7c90917a8c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  TP-LINK TL-WA901ND v4 board
+ *  TP-LINK TL-WA901ND v4, v5 board
  *
  *  Copyright (C) 2015 Matthias Schiffer <mschiffer@universe-factory.net>
  *  Copyright (C) 2016 Tiziano Bacocco <tizbac2@gmail.com>
@@ -110,3 +110,6 @@ static void __init TL_WA901ND_V4_setup(void)
 
 MIPS_MACHINE(ATH79_MACH_TL_WA901ND_V4, "TL-WA901ND-v4", "TP-LINK TL-WA901ND v4",
             TL_WA901ND_V4_setup);
+
+MIPS_MACHINE(ATH79_MACH_TL_WA901ND_V5, "TL-WA901ND-v5", "TP-LINK TL-WA901ND v5",
+            TL_WA901ND_V4_setup);
index a08e3a93d9e3356270b51133bcfd1e5b44d5423e..146a79d04878e14a295eff279ce7cc96bc97761d 100644 (file)
@@ -239,6 +239,7 @@ enum ath79_mach_type {
        ATH79_MACH_TL_WA901ND_V2,               /* TP-LINK TL-WA901ND v2 */
        ATH79_MACH_TL_WA901ND_V3,               /* TP-LINK TL-WA901ND v3 */
        ATH79_MACH_TL_WA901ND_V4,               /* TP-LINK TL-WA901ND v4 */
+       ATH79_MACH_TL_WA901ND_V5,               /* TP-LINK TL-WA901ND v5 */
        ATH79_MACH_TL_WDR3320_V2,               /* TP-LINK TL-WDR3320 v2 */
        ATH79_MACH_TL_WDR3500,                  /* TP-LINK TL-WDR3500 */
        ATH79_MACH_TL_WDR4300,                  /* TP-LINK TL-WDR4300 */
index 18c50cf20f73379773def81cedb4553184242072..c3cfdb9f47b14fd3ef8dc952d8e3a720bf954de3 100644 (file)
@@ -574,7 +574,14 @@ define Device/tl-wa901nd-v4
   TPLINK_HWID := 0x09010004
   IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C EU
 endef
-TARGET_DEVICES += tl-wa901nd-v1 tl-wa901nd-v2 tl-wa901nd-v3 tl-wa901nd-v4
+
+define Device/tl-wa901nd-v5
+  $(Device/tl-wa901nd-v4)
+  DEVICE_TITLE := TP-LINK TL-WA901N/ND v5
+  BOARDNAME := TL-WA901ND-v5
+  TPLINK_HWID := 0x09010005
+endef
+TARGET_DEVICES += tl-wa901nd-v1 tl-wa901nd-v2 tl-wa901nd-v3 tl-wa901nd-v4 tl-wa901nd-v5
 
 define Device/tl-wdr3320-v2
   $(Device/tplink-4mlzma)