ath79: add support for TP-Link TL-WR1045ND v2
authorRasim Kalimullin <neutrino.vm@gmail.com>
Tue, 15 Oct 2019 14:05:17 +0000 (19:05 +0500)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 2 Nov 2019 23:29:55 +0000 (00:29 +0100)
Specifications:
 - QCA9558 Soc
 - 720/800 (CPU/DDR)
 - 1x 10/100/1000 Mbps WAN Ethernet
 - 4x 10/100/1000 Mbps LAN Ethernet
 - 64 MB RAM (DDR2)
 - 8 MB FLASH
 - QCA9558 2.4 GHz 802.11bgn
 - 1x USB 2.0

Flash instruction
WebUI:
Download *-factory.bin image, rename to tp_firmware.bin and upload
it via the firmwary upgrade function of the stock firmware WebUI.

Tftp:
Rename OpenWRT or original firmware to wr1045v2_tp_recovery.bin and
Change your computer ip in 192.168.0.66 and subnet mask in 255.255.255.0.
Router will obtain IP 192.168.0.86 for a few seconds while loading,
when reset button pressed at power On.

Signed-off-by: Rasim Kalimullin <neutrino.vm@gmail.com>
[rebased onto base-files split]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/dts/qca9558_tplink_tl-wr1045nd-v2.dts [new file with mode: 0644]
target/linux/ath79/generic/base-files/etc/board.d/02_network
target/linux/ath79/image/generic-tp-link.mk

diff --git a/target/linux/ath79/dts/qca9558_tplink_tl-wr1045nd-v2.dts b/target/linux/ath79/dts/qca9558_tplink_tl-wr1045nd-v2.dts
new file mode 100644 (file)
index 0000000..879b555
--- /dev/null
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "qca9558_tplink_tl-wr1043nd.dtsi"
+
+/ {
+       compatible = "tplink,tl-wr1045nd-v2", "qca,qca9557";
+       model = "TP-Link TL-WR1045ND v2";
+};
index 0cf411041d6a00d054245f3152782e3fdc80f427..e4179b4d384d73e4656414cb4f9c8e00eede6b46 100755 (executable)
@@ -239,7 +239,8 @@ ath79_setup_interfaces()
                        "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "5@eth0"
                ;;
        tplink,tl-wr1043nd-v2|\
-       tplink,tl-wr1043nd-v3)
+       tplink,tl-wr1043nd-v3|\
+       tplink,tl-wr1045nd-v2)
                ucidef_add_switch "switch0" \
                        "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan" "6@eth0"
                ;;
index a74172e16d619b84ae50593c48a97477ffd09dfb..b272276b9f61d20e82981688d0cce24862451314 100644 (file)
@@ -440,6 +440,16 @@ define Device/tplink_tl-wr1043n-v5
 endef
 TARGET_DEVICES += tplink_tl-wr1043n-v5
 
+define Device/tplink_tl-wr1045nd-v2
+  $(Device/tplink-8mlzma)
+  ATH_SOC := qca9558
+  DEVICE_MODEL := TL-WR1045ND
+  DEVICE_VARIANT := v2
+  DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
+  TPLINK_HWID := 0x10450002
+endef
+TARGET_DEVICES += tplink_tl-wr1045nd-v2
+
 define Device/tplink_tl-wr2543-v1
   $(Device/tplink-8mlzma)
   ATH_SOC := ar7242