ath79: add support for TP-Link TL-WDR4310 v1
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 9 Dec 2019 12:44:03 +0000 (13:44 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 30 Mar 2020 17:36:15 +0000 (19:36 +0200)
This device seems to be identical to the TL-WDR4300, just with
different release date/region and TPLINK_HWID.

Support is added based on the ar71xx implementation.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit 676ca94c3ca5421c7176d67a211fa29b1bb2e219)

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/base-files/etc/uci-defaults/04_led_migration
target/linux/ath79/dts/ar9344_tplink_tl-wdr4310-v1.dts [new file with mode: 0644]
target/linux/ath79/image/generic-tp-link.mk

index 8edd4e6c2e1c39434b699898341ce51f59ac96a7..1b0e76b1593bfd38cfaea6dc4844ed9f222f0b6b 100755 (executable)
@@ -209,6 +209,7 @@ ath79_setup_interfaces()
        tplink,tl-wdr3600-v1|\
        tplink,tl-wdr4300-v1|\
        tplink,tl-wdr4300-v1-il|\
+       tplink,tl-wdr4310-v1|\
        tplink,tl-wr941n-v7-cn)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
index e8de9538732c246f211d342a5e7ce7fe2104dce1..d85e90f1068323fd43ed988eac93e30b3e9c487c 100644 (file)
@@ -156,6 +156,7 @@ case "$FIRMWARE" in
        tplink,tl-wdr3600-v1|\
        tplink,tl-wdr4300-v1|\
        tplink,tl-wdr4300-v1-il|\
+       tplink,tl-wdr4310-v1|\
        tplink,tl-wdr4900-v2|\
        winchannel,wb2000)
                ath9k_eeprom_extract "art" 20480 1088
index 2e1be7b0e344038e044447410c03e6278e3bcca0..9aa759c6a3f9fac2e60e807f0998503c9766cb18 100644 (file)
@@ -20,7 +20,8 @@ tplink,archer-c7-v5)
 tplink,archer-c7-v2|\
 tplink,tl-wdr3600-v1|\
 tplink,tl-wdr4300-v1|\
-tplink,tl-wdr4300-v1-il)
+tplink,tl-wdr4300-v1-il|\
+tplink,tl-wdr4310-v1)
        migrate_leds ":blue:=:green:"
        ;;
 wd,mynet-n750)
diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4310-v1.dts b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4310-v1.dts
new file mode 100644 (file)
index 0000000..3fa4af5
--- /dev/null
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "ar9344_tplink_tl-wdr4300.dtsi"
+
+/ {
+       model = "TP-Link TL-WDR4310 v1";
+       compatible = "tplink,tl-wdr4310-v1", "qca,ar9344";
+};
index 2cbbcefcb56f2a1faacc56d4e47456eec1078ac1..0bf80900c3a894978b222383509e14a95e4d17a2 100644 (file)
@@ -273,6 +273,16 @@ define Device/tplink_tl-wdr4300-v1-il
 endef
 TARGET_DEVICES += tplink_tl-wdr4300-v1-il
 
+define Device/tplink_tl-wdr4310-v1
+  $(Device/tplink-8mlzma)
+  ATH_SOC := ar9344
+  DEVICE_TITLE := TP-Link TL-WDR4310 v1
+  DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
+  TPLINK_HWID := 0x43100001
+  SUPPORTED_DEVICES += tl-wdr4300
+endef
+TARGET_DEVICES += tplink_tl-wdr4310-v1
+
 define Device/tplink_tl-wdr4900-v2
   $(Device/tplink-8mlzma)
   ATH_SOC := qca9558