ath79: add support for TP-Link TL-WA701ND/730RE/801ND/901ND v1
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 14 Feb 2020 14:38:55 +0000 (15:38 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 20 May 2020 18:51:28 +0000 (20:51 +0200)
This adds support for the various clones of the TL-WA830RE recently
supported in fb99ac6807f2 ("ath79: add support for TP-Link TL-WA830RE v1"):

- tplink,tl-wa701nd-v1
- tplink,tl-wa730re-v1
- tplink,tl-wa801nd-v1
- tplink,tl-wa830re-v1 (already supported)
- tplink,tl-wa901nd-v1

Since these devices are 100%-clones in ar71xx, this patch adds all
of them without run-testing (as this has been done for TL-WA830RE v1).

Specifications:
- SOC: Atheros AR7240
- CPU: 400MHz
- Flash: 4 MiB (Spansion S25FL032P)
- RAM: 32 MiB (Zentel A3S56D40FTP-G5)
- WLAN: Atheros AR9280 bgn 2x2
- Ethernet: 1 port (100M)

Flash instructions:
- install from u-boot with tftp (requires serial access)
  > setenv ipaddr a.b.c.d
  > setenv serverip e.f.g.h
  > tftpboot 0x80000000 \
      openwrt-ath79-tiny-tplink_tl-waxxxxx-v1-squashfs-factory.bin
  > erase 0x9f020000 +0x3c0000
  > cp.b 0x80000000 0x9f020000 0x3c0000
  > bootm 0x9f020000
- flash factory image from OEM WebUI
- sysupgrade from ar71xx image

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(backported from commit 2f1cc5c3d5e35d6aa76e794e3d5b4f5856cd38bc)

target/linux/ath79/base-files/etc/board.d/01_leds
target/linux/ath79/base-files/etc/board.d/02_network
target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
target/linux/ath79/dts/ar7240_tplink_tl-wa701nd-v1.dts [new file with mode: 0644]
target/linux/ath79/dts/ar7240_tplink_tl-wa730re-v1.dts [new file with mode: 0644]
target/linux/ath79/dts/ar7240_tplink_tl-wa801nd-v1.dts [new file with mode: 0644]
target/linux/ath79/dts/ar7240_tplink_tl-wa901nd-v1.dts [new file with mode: 0644]
target/linux/ath79/image/tiny-tp-link.mk

index 49cb312779755c42b73bbf4b69c2712f87eadc6f..5e06da0d12820b9b4460e8e8b3a7384e6debe893 100755 (executable)
@@ -175,8 +175,12 @@ tplink,re450-v2)
        ;;
 tplink,tl-mr3020-v1|\
 tplink,tl-mr3040-v2|\
+tplink,tl-wa701nd-v1|\
+tplink,tl-wa730re-v1|\
+tplink,tl-wa801nd-v1|\
 tplink,tl-wa830re-v1|\
-tplink,tl-wa860re-v1)
+tplink,tl-wa860re-v1|\
+tplink,tl-wa901nd-v1)
        ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
        ;;
 tplink,tl-mr3420-v2|\
index ddcd2326e502285ffb7216a8c5b0898ddbc0a3ee..85516413ca2dbd6987df98e25ffbca177540800b 100755 (executable)
@@ -31,9 +31,13 @@ ath79_setup_interfaces()
        tplink,tl-mr10u|\
        tplink,tl-mr3020-v1|\
        tplink,tl-mr3040-v2|\
+       tplink,tl-wa701nd-v1|\
+       tplink,tl-wa730re-v1|\
+       tplink,tl-wa801nd-v1|\
        tplink,tl-wa830re-v1|\
        tplink,tl-wa850re-v1|\
        tplink,tl-wa860re-v1|\
+       tplink,tl-wa901nd-v1|\
        tplink,tl-wa901nd-v2|\
        tplink,tl-wr703n|\
        ubnt,bullet-m|\
index 65ba273d3e5ddd7a46fceb598c06aab1622e2710..fd889e36bb158dfc293217a04e5e04aaf49a5d64 100644 (file)
@@ -139,7 +139,11 @@ case "$FIRMWARE" in
                ;;
        buffalo,whr-g301n|\
        buffalo,wzr-hp-g302h-a1a0|\
+       tplink,tl-wa701nd-v1|\
+       tplink,tl-wa730re-v1|\
+       tplink,tl-wa801nd-v1|\
        tplink,tl-wa830re-v1|\
+       tplink,tl-wa901nd-v1|\
        tplink,tl-wr841-v5|\
        tplink,tl-wr941-v4)
                ath9k_eeprom_extract "art" 4096 3768
diff --git a/target/linux/ath79/dts/ar7240_tplink_tl-wa701nd-v1.dts b/target/linux/ath79/dts/ar7240_tplink_tl-wa701nd-v1.dts
new file mode 100644 (file)
index 0000000..6dd5001
--- /dev/null
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "ar7240_tplink_tl-wa.dtsi"
+
+/ {
+       model = "TP-Link TL-WA701ND v1";
+       compatible = "tplink,tl-wa701nd-v1", "qca,ar7240";
+};
diff --git a/target/linux/ath79/dts/ar7240_tplink_tl-wa730re-v1.dts b/target/linux/ath79/dts/ar7240_tplink_tl-wa730re-v1.dts
new file mode 100644 (file)
index 0000000..e1277a8
--- /dev/null
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "ar7240_tplink_tl-wa.dtsi"
+
+/ {
+       model = "TP-Link TL-WA730RE v1";
+       compatible = "tplink,tl-wa730re-v1", "qca,ar7240";
+};
diff --git a/target/linux/ath79/dts/ar7240_tplink_tl-wa801nd-v1.dts b/target/linux/ath79/dts/ar7240_tplink_tl-wa801nd-v1.dts
new file mode 100644 (file)
index 0000000..2db22c0
--- /dev/null
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "ar7240_tplink_tl-wa.dtsi"
+
+/ {
+       model = "TP-Link TL-WA801ND v1";
+       compatible = "tplink,tl-wa801nd-v1", "qca,ar7240";
+};
diff --git a/target/linux/ath79/dts/ar7240_tplink_tl-wa901nd-v1.dts b/target/linux/ath79/dts/ar7240_tplink_tl-wa901nd-v1.dts
new file mode 100644 (file)
index 0000000..5422e5c
--- /dev/null
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "ar7240_tplink_tl-wa.dtsi"
+
+/ {
+       model = "TP-Link TL-WA901ND v1";
+       compatible = "tplink,tl-wa901nd-v1", "qca,ar7240";
+};
index a7c4d060c8903acf52b48701dbc5b2384990ba26..5ee88a18311b85c66d00bdac395525e7e50cecb2 100644 (file)
@@ -61,6 +61,33 @@ define Device/tplink_tl-mr3420-v2
 endef
 TARGET_DEVICES += tplink_tl-mr3420-v2
 
+define Device/tplink_tl-wa701nd-v1
+  $(Device/tplink-4m)
+  ATH_SOC := ar7240
+  DEVICE_TITLE := TP-Link TL-WA701ND v1
+  TPLINK_HWID := 0x07010001
+  SUPPORTED_DEVICES += tl-wa901nd
+endef
+TARGET_DEVICES += tplink_tl-wa701nd-v1
+
+define Device/tplink_tl-wa730re-v1
+  $(Device/tplink-4m)
+  ATH_SOC := ar7240
+  DEVICE_TITLE := TP-Link TL-WA730RE v1
+  TPLINK_HWID := 0x07300001
+  SUPPORTED_DEVICES += tl-wa901nd
+endef
+TARGET_DEVICES += tplink_tl-wa730re-v1
+
+define Device/tplink_tl-wa801nd-v1
+  $(Device/tplink-4m)
+  ATH_SOC := ar7240
+  DEVICE_TITLE := TP-Link TL-WA801ND v1
+  TPLINK_HWID := 0x08010001
+  SUPPORTED_DEVICES += tl-wa901nd
+endef
+TARGET_DEVICES += tplink_tl-wa801nd-v1
+
 define Device/tplink_tl-wa830re-v1
   $(Device/tplink-4m)
   ATH_SOC := ar7240
@@ -89,6 +116,15 @@ define Device/tplink_tl-wa860re-v1
 endef
 TARGET_DEVICES += tplink_tl-wa860re-v1
 
+define Device/tplink_tl-wa901nd-v1
+  $(Device/tplink-4m)
+  ATH_SOC := ar7240
+  DEVICE_TITLE := TP-Link TL-WA901ND v1
+  TPLINK_HWID := 0x09010001
+  SUPPORTED_DEVICES += tl-wa901nd
+endef
+TARGET_DEVICES += tplink_tl-wa901nd-v1
+
 define Device/tplink_tl-wa901nd-v2
   $(Device/tplink-4m)
   ATH_SOC := ar9132