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>
Thu, 26 Mar 2020 14:05:49 +0000 (15:05 +0100)
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>
target/linux/ath79/dts/ar9344_tplink_tl-wdr4310-v1.dts [new file with mode: 0644]
target/linux/ath79/generic/base-files/etc/board.d/02_network
target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
target/linux/ath79/generic/base-files/etc/uci-defaults/04_led_migration
target/linux/ath79/image/generic-tp-link.mk

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 9db21caad800468851ea190b31dc95b80d4cc92f..48bdf657d03b61960b23dd4798c51f5c67281851 100755 (executable)
@@ -237,7 +237,8 @@ ath79_setup_interfaces()
        tplink,archer-c7-v5|\
        tplink,tl-wdr3600-v1|\
        tplink,tl-wdr4300-v1|\
-       tplink,tl-wdr4300-v1-il)
+       tplink,tl-wdr4300-v1-il|\
+       tplink,tl-wdr4310-v1)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
                ;;
index a96b44b1c9a40e58b7a42d260b9fff868b13b319..da2063c58a9c6650bbac9cfab2eb58af0b2746ad 100644 (file)
@@ -75,6 +75,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)
                caldata_extract "art" 0x5000 0x440
index 56fac4a36b8e2fa0967d2f033687dbfa9f80c50c..cffc2e6c4b4e029b71f7223c8a87ae55a2b1a1b9 100644 (file)
@@ -24,7 +24,8 @@ tplink,tl-wr902ac-v1)
 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:"
        ;;
 tplink,re355-v1)
index 4c925cf8502321819759e4e7b6e2e7f8c7c25b07..56d21194d3a24a9728d394d371652cfc23717a30 100644 (file)
@@ -456,6 +456,17 @@ define Device/tplink_tl-wdr4300-v1-il
 endef
 TARGET_DEVICES += tplink_tl-wdr4300-v1-il
 
+define Device/tplink_tl-wdr4310-v1
+  $(Device/tplink-8mlzma)
+  SOC := ar9344
+  DEVICE_MODEL := TL-WDR4310
+  DEVICE_VARIANT := 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)
   SOC := qca9558