ath79: add support for TP-Link TL-WR740N v5
authorJun Su <howard0su@gmail.com>
Tue, 3 Mar 2020 09:33:40 +0000 (17:33 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 13 Mar 2020 12:53:12 +0000 (13:53 +0100)
This adds support for the TP-Link TL-WR740N v5, a clone of the
v4 only with a different TPLINK_HWID. It was already supported
in ar71xx as well.

Specifications:

SOC: Atheros AR9331
CPU: 400MHz
Flash: 4 MiB
RAM: 32 MiB
WLAN: Atheros AR9330 bgn
Ethernet: 5 ports (100M)

Flashing instructions:

- Flash factory image from OEM WebUI:
  openwrt-ath79-tiny-tplink_tl-wr740n-v5-squashfs-factory.bin
- Sysupgrade from ar71xx image:
  openwrt-ath79-tiny-tplink_tl-wr740n-v5-squashfs-sysupgrade.bin

Signed-off-by: Jun Su <howard0su@gmail.com>
[commit title/message facelift]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/dts/ar9331_tplink_tl-wr740n-v5.dts [new file with mode: 0644]
target/linux/ath79/image/tiny-tp-link.mk
target/linux/ath79/tiny/base-files/etc/board.d/01_leds
target/linux/ath79/tiny/base-files/etc/board.d/02_network

diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-wr740n-v5.dts b/target/linux/ath79/dts/ar9331_tplink_tl-wr740n-v5.dts
new file mode 100644 (file)
index 0000000..a031bf3
--- /dev/null
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "ar9331_tplink_tl-wr741nd-v4.dtsi"
+
+/ {
+       model = "TP-Link TL-WR740N v5";
+       compatible = "tplink,tl-wr740n-v5", "qca,ar9331";
+};
index 29fdfec1e5826b02fcd84a9253848f4853792700..dc91a74ae1723f8873fc0fbd03b9c17b52293ff9 100644 (file)
@@ -186,6 +186,15 @@ define Device/tplink_tl-wr740n-v4
 endef
 TARGET_DEVICES += tplink_tl-wr740n-v4
 
+define Device/tplink_tl-wr740n-v5
+  $(Device/tplink-4mlzma)
+  SOC := ar9331
+  DEVICE_MODEL := TL-WR740N
+  DEVICE_VARIANT := v5
+  TPLINK_HWID := 0x07400005
+endef
+TARGET_DEVICES += tplink_tl-wr740n-v5
+
 define Device/tplink_tl-wr741-v1
   $(Device/tplink-4m)
   SOC := ar7240
index c62fdfd083c5e8b0d0b58e72d921ad12b45c3161..ecd7aaaf3528e923935d34efa6df05fe02dd2bc9 100755 (executable)
@@ -51,6 +51,7 @@ tplink,tl-wa901nd-v1)
        ;;
 tplink,tl-mr3420-v2|\
 tplink,tl-wr740n-v4|\
+tplink,tl-wr740n-v5|\
 tplink,tl-wr741nd-v4|\
 tplink,tl-wr841-v8)
        ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
index 29c55c98a1d662d0855cd031ecc78f2daff6d087..d448144c93c3e51f5d9bb79c1960ca4444863c6d 100755 (executable)
@@ -60,6 +60,7 @@ ath79_setup_interfaces()
                ;;
        tplink,tl-mr3420-v2|\
        tplink,tl-wr740n-v4|\
+       tplink,tl-wr740n-v5|\
        tplink,tl-wr741nd-v4|\
        tplink,tl-wr841-v8)
                ucidef_set_interface_wan "eth1"