ath79: add support for TP-Link TL-WDR4300 v1 (IL)
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 9 Dec 2019 12:53:21 +0000 (13:53 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 12 Dec 2019 13:42:05 +0000 (14:42 +0100)
The TL-WDR4300 v1 sold in Israel has a different TPLINK_HWID.

Thanks to Josh4300 for testing on device.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1-il.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/image/generic-tp-link.mk

diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1-il.dts b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1-il.dts
new file mode 100644 (file)
index 0000000..a84285d
--- /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-WDR4300 v1 (IL)";
+       compatible = "tplink,tl-wdr4300-v1-il", "qca,ar9344";
+};
index 938213eadcf40894f5f607932f24afd87374f769..77e2db762f9317cb52116fd8b9f4ddcefd73c98f 100755 (executable)
@@ -212,7 +212,8 @@ ath79_setup_interfaces()
        tplink,archer-c7-v4|\
        tplink,archer-c7-v5|\
        tplink,tl-wdr3600-v1|\
-       tplink,tl-wdr4300-v1)
+       tplink,tl-wdr4300-v1|\
+       tplink,tl-wdr4300-v1-il)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
                ;;
index f04fb64fc9da0746ac0362efea88d5fb251bf513..84d840569b4800793fa1c3f9acfaea5b1ae5bcfa 100644 (file)
@@ -72,6 +72,7 @@ case "$FIRMWARE" in
        tplink,tl-wdr3500-v1|\
        tplink,tl-wdr3600-v1|\
        tplink,tl-wdr4300-v1|\
+       tplink,tl-wdr4300-v1-il|\
        tplink,tl-wdr4900-v2|\
        winchannel,wb2000)
                caldata_extract "art" 0x5000 0x440
index f5e1a90418a5121a7619f9bd4d4e9d37191b77c5..8915552322932efbbf43356069051ef53e7b168c 100644 (file)
@@ -399,6 +399,17 @@ define Device/tplink_tl-wdr4300-v1
 endef
 TARGET_DEVICES += tplink_tl-wdr4300-v1
 
+define Device/tplink_tl-wdr4300-v1-il
+  $(Device/tplink-8mlzma)
+  ATH_SOC := ar9344
+  DEVICE_MODEL := TL-WDR4300
+  DEVICE_VARIANT := v1 (IL)
+  DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
+  TPLINK_HWID := 0x43008001
+  SUPPORTED_DEVICES += tl-wdr4300
+endef
+TARGET_DEVICES += tplink_tl-wdr4300-v1-il
+
 define Device/tplink_tl-wdr4900-v2
   $(Device/tplink-8mlzma)
   ATH_SOC := qca9558