aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-12-09 13:53:21 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-12-13 20:01:45 +0100
commit6e24df296c299eecb8bc2386385e231b16ea4a5c (patch)
tree6d00b0bd10ae1fb16a8ef84df7f8bfa236da8598 /target/linux/ath79
parent52c9f951786cd5885ab5e0a329f010454045cbd7 (diff)
downloadupstream-6e24df296c299eecb8bc2386385e231b16ea4a5c.tar.gz
upstream-6e24df296c299eecb8bc2386385e231b16ea4a5c.tar.bz2
upstream-6e24df296c299eecb8bc2386385e231b16ea4a5c.zip
ath79: add support for TP-Link TL-WDR4300 v1 (IL)
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> (cherry picked from commit c642a97aa6b51352a718449cd715b92f94af4a5d)
Diffstat (limited to 'target/linux/ath79')
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom1
-rw-r--r--target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1-il.dts9
-rw-r--r--target/linux/ath79/image/generic-tp-link.mk10
4 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network
index 746cb61588..0c6f4fe50b 100755
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -196,6 +196,7 @@ ath79_setup_interfaces()
tplink,archer-c7-v5|\
tplink,tl-wdr3600-v1|\
tplink,tl-wdr4300-v1|\
+ tplink,tl-wdr4300-v1-il|\
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"
diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
index bf9d8d94fd..8f9c74ce39 100644
--- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
+++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
@@ -154,6 +154,7 @@ case "$FIRMWARE" in
ocedo,raccoon|\
tplink,tl-wdr3600-v1|\
tplink,tl-wdr4300-v1|\
+ tplink,tl-wdr4300-v1-il|\
tplink,tl-wdr4900-v2|\
winchannel,wb2000)
ath9k_eeprom_extract "art" 20480 1088
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
index 0000000000..a84285d69a
--- /dev/null
+++ b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1-il.dts
@@ -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";
+};
diff --git a/target/linux/ath79/image/generic-tp-link.mk b/target/linux/ath79/image/generic-tp-link.mk
index a783401be1..468117aad4 100644
--- a/target/linux/ath79/image/generic-tp-link.mk
+++ b/target/linux/ath79/image/generic-tp-link.mk
@@ -234,6 +234,16 @@ 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_TITLE := TP-Link TL-WDR4300 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