From 0c2f2c640f9ac51e4422812903616c34f8aa0453 Mon Sep 17 00:00:00 2001 From: Dark4MD Date: Thu, 5 May 2022 18:04:46 +0200 Subject: [PATCH] patches/openwrt: add TL-WR841ND/N 8M and 16M variants to ath79 Origin: https://github.com/freifunkh/site/blob/master/patches/0003-patches-openwrt-add-TL-WR841ND-N-8M-and-16M-variants.patch --- ...841ND-N-8M-and-16M-variants-to-ath79.patch | 719 ++++++++++++++++++ targets/ath79-generic | 40 + 2 files changed, 759 insertions(+) create mode 100644 patches/openwrt/0015-add-TL-WR841ND-N-8M-and-16M-variants-to-ath79.patch diff --git a/patches/openwrt/0015-add-TL-WR841ND-N-8M-and-16M-variants-to-ath79.patch b/patches/openwrt/0015-add-TL-WR841ND-N-8M-and-16M-variants-to-ath79.patch new file mode 100644 index 0000000000..c3fb1e09cb --- /dev/null +++ b/patches/openwrt/0015-add-TL-WR841ND-N-8M-and-16M-variants-to-ath79.patch @@ -0,0 +1,719 @@ +From: Dark4MD +Date: Thu, 5 May 2022 17:45:14 +0200 +Subject: add TL-WR841ND/N 8M and 16M variants to ath79 + +diff --git a/target/linux/ath79/dts/ar9341_tplink_tl-wr841-v8-16m.dts b/target/linux/ath79/dts/ar9341_tplink_tl-wr841-v8-16m.dts +new file mode 100644 +index 0000000000000000000000000000000000000000..457d55122e545857fa31f6b3ba77ca8b1009116d +--- /dev/null ++++ b/target/linux/ath79/dts/ar9341_tplink_tl-wr841-v8-16m.dts +@@ -0,0 +1,61 @@ ++// SPDX-License-Identifier: GPL-2.0-or-later OR MIT ++ ++#include "ar9341_tplink.dtsi" ++ ++/ { ++ model = "TP-Link TL-WR841N/ND Mod (ATH79 16M) v8"; ++ compatible = "tplink,tl-wr841-v8-16m", "qca,ar9341"; ++ ++ keys { ++ compatible = "gpio-keys"; ++ ++ rfkill { ++ label = "WiFi"; ++ linux,code = ; ++ linux,input-type = ; ++ gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; ++ debounce-interval = <60>; ++ }; ++ ++ reset { ++ label = "Reset"; ++ linux,code = ; ++ gpios = <&gpio 17 GPIO_ACTIVE_LOW>; ++ debounce-interval = <60>; ++ }; ++ }; ++}; ++ ++&spi { ++ status = "okay"; ++ ++ flash@0 { ++ compatible = "jedec,spi-nor"; ++ reg = <0>; ++ spi-max-frequency = <25000000>; ++ ++ partitions { ++ compatible = "fixed-partitions"; ++ #address-cells = <1>; ++ #size-cells = <1>; ++ ++ uboot: partition@0 { ++ label = "u-boot"; ++ reg = <0x000000 0x020000>; ++ read-only; ++ }; ++ ++ partition@20000 { ++ compatible = "tplink,firmware"; ++ label = "firmware"; ++ reg = <0x020000 0xfd0000>; ++ }; ++ ++ art: partition@ff0000 { ++ label = "art"; ++ reg = <0xff0000 0x010000>; ++ read-only; ++ }; ++ }; ++ }; ++}; +diff --git a/target/linux/ath79/dts/ar9341_tplink_tl-wr841-v8-8m.dts b/target/linux/ath79/dts/ar9341_tplink_tl-wr841-v8-8m.dts +new file mode 100644 +index 0000000000000000000000000000000000000000..dc9f48f27b92bdb2f4d4328a14efbd1603c25e92 +--- /dev/null ++++ b/target/linux/ath79/dts/ar9341_tplink_tl-wr841-v8-8m.dts +@@ -0,0 +1,61 @@ ++// SPDX-License-Identifier: GPL-2.0-or-later OR MIT ++ ++#include "ar9341_tplink.dtsi" ++ ++/ { ++ model = "TP-Link TL-WR841N/ND Mod (ATH79 8M) v8"; ++ compatible = "tplink,tl-wr841-v8-8m", "qca,ar9341"; ++ ++ keys { ++ compatible = "gpio-keys"; ++ ++ rfkill { ++ label = "WiFi"; ++ linux,code = ; ++ linux,input-type = ; ++ gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; ++ debounce-interval = <60>; ++ }; ++ ++ reset { ++ label = "Reset"; ++ linux,code = ; ++ gpios = <&gpio 17 GPIO_ACTIVE_LOW>; ++ debounce-interval = <60>; ++ }; ++ }; ++}; ++ ++&spi { ++ status = "okay"; ++ ++ flash@0 { ++ compatible = "jedec,spi-nor"; ++ reg = <0>; ++ spi-max-frequency = <25000000>; ++ ++ partitions { ++ compatible = "fixed-partitions"; ++ #address-cells = <1>; ++ #size-cells = <1>; ++ ++ uboot: partition@0 { ++ label = "u-boot"; ++ reg = <0x000000 0x020000>; ++ read-only; ++ }; ++ ++ partition@20000 { ++ compatible = "tplink,firmware"; ++ label = "firmware"; ++ reg = <0x020000 0x7d0000>; ++ }; ++ ++ art: partition@7f0000 { ++ label = "art"; ++ reg = <0x7f0000 0x010000>; ++ read-only; ++ }; ++ }; ++ }; ++}; +diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841-16m.dtsi b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-16m.dtsi +new file mode 100644 +index 0000000000000000000000000000000000000000..2c6ab9d3c277e90fae4798fe9fd91e2d2accb52d +--- /dev/null ++++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-16m.dtsi +@@ -0,0 +1,124 @@ ++// SPDX-License-Identifier: GPL-2.0-or-later OR MIT ++ ++#include "qca953x.dtsi" ++ ++#include ++#include ++ ++/ { ++ aliases { ++ label-mac-device = &wmac; ++ }; ++ ++ leds: leds { ++ compatible = "gpio-leds"; ++ ++ wifi { ++ label = "green:wlan"; ++ gpios = <&gpio 13 GPIO_ACTIVE_LOW>; ++ linux,default-trigger = "phy0tpt"; ++ }; ++ ++ led_qss: qss { ++ label = "green:qss"; ++ gpios = <&gpio 3 GPIO_ACTIVE_LOW>; ++ }; ++ ++ wan { ++ label = "green:wan"; ++ gpios = <&gpio 4 GPIO_ACTIVE_LOW>; ++ }; ++ ++ lan1 { ++ label = "green:lan1"; ++ gpios = <&gpio 16 GPIO_ACTIVE_LOW>; ++ }; ++ ++ lan2 { ++ label = "green:lan2"; ++ gpios = <&gpio 15 GPIO_ACTIVE_LOW>; ++ }; ++ ++ lan3 { ++ label = "green:lan3"; ++ gpios = <&gpio 14 GPIO_ACTIVE_LOW>; ++ }; ++ ++ lan4 { ++ label = "green:lan4"; ++ gpios = <&gpio 11 GPIO_ACTIVE_LOW>; ++ }; ++ }; ++ ++ keys { ++ compatible = "gpio-keys"; ++ ++ reset { ++ label = "Reset button"; ++ linux,code = ; ++ gpios = <&gpio 12 GPIO_ACTIVE_LOW>; ++ debounce-interval = <60>; ++ }; ++ ++ rfkill { ++ label = "RFKILL button"; ++ linux,code = ; ++ gpios = <&gpio 17 GPIO_ACTIVE_LOW>; ++ debounce-interval = <60>; ++ }; ++ }; ++}; ++ ++&spi { ++ status = "okay"; ++ ++ flash@0 { ++ compatible = "jedec,spi-nor"; ++ reg = <0>; ++ spi-max-frequency = <25000000>; ++ ++ partitions { ++ compatible = "fixed-partitions"; ++ #address-cells = <1>; ++ #size-cells = <1>; ++ ++ uboot: partition@0 { ++ label = "u-boot"; ++ reg = <0x000000 0x020000>; ++ read-only; ++ }; ++ ++ partition@20000 { ++ compatible = "tplink,firmware"; ++ label = "firmware"; ++ reg = <0x020000 0xfd0000>; ++ }; ++ ++ art: partition@ff0000 { ++ label = "art"; ++ reg = <0xff0000 0x010000>; ++ read-only; ++ }; ++ }; ++ }; ++}; ++ ++ð0 { ++ status = "okay"; ++ ++ phy-handle = <&swphy4>; ++ ++ mtd-mac-address = <&uboot 0x1fc00>; ++ mtd-mac-address-increment = <1>; ++}; ++ ++ð1 { ++ mtd-mac-address = <&uboot 0x1fc00>; ++}; ++ ++&wmac { ++ status = "okay"; ++ ++ mtd-cal-data = <&art 0x1000>; ++ mtd-mac-address = <&uboot 0x1fc00>; ++}; +diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841-8m.dtsi b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-8m.dtsi +new file mode 100644 +index 0000000000000000000000000000000000000000..81317a37b8ee5251765d6eb3033749150187cc09 +--- /dev/null ++++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-8m.dtsi +@@ -0,0 +1,124 @@ ++// SPDX-License-Identifier: GPL-2.0-or-later OR MIT ++ ++#include "qca953x.dtsi" ++ ++#include ++#include ++ ++/ { ++ aliases { ++ label-mac-device = &wmac; ++ }; ++ ++ leds: leds { ++ compatible = "gpio-leds"; ++ ++ wifi { ++ label = "green:wlan"; ++ gpios = <&gpio 13 GPIO_ACTIVE_LOW>; ++ linux,default-trigger = "phy0tpt"; ++ }; ++ ++ led_qss: qss { ++ label = "green:qss"; ++ gpios = <&gpio 3 GPIO_ACTIVE_LOW>; ++ }; ++ ++ wan { ++ label = "green:wan"; ++ gpios = <&gpio 4 GPIO_ACTIVE_LOW>; ++ }; ++ ++ lan1 { ++ label = "green:lan1"; ++ gpios = <&gpio 16 GPIO_ACTIVE_LOW>; ++ }; ++ ++ lan2 { ++ label = "green:lan2"; ++ gpios = <&gpio 15 GPIO_ACTIVE_LOW>; ++ }; ++ ++ lan3 { ++ label = "green:lan3"; ++ gpios = <&gpio 14 GPIO_ACTIVE_LOW>; ++ }; ++ ++ lan4 { ++ label = "green:lan4"; ++ gpios = <&gpio 11 GPIO_ACTIVE_LOW>; ++ }; ++ }; ++ ++ keys { ++ compatible = "gpio-keys"; ++ ++ reset { ++ label = "Reset button"; ++ linux,code = ; ++ gpios = <&gpio 12 GPIO_ACTIVE_LOW>; ++ debounce-interval = <60>; ++ }; ++ ++ rfkill { ++ label = "RFKILL button"; ++ linux,code = ; ++ gpios = <&gpio 17 GPIO_ACTIVE_LOW>; ++ debounce-interval = <60>; ++ }; ++ }; ++}; ++ ++&spi { ++ status = "okay"; ++ ++ flash@0 { ++ compatible = "jedec,spi-nor"; ++ reg = <0>; ++ spi-max-frequency = <25000000>; ++ ++ partitions { ++ compatible = "fixed-partitions"; ++ #address-cells = <1>; ++ #size-cells = <1>; ++ ++ uboot: partition@0 { ++ label = "u-boot"; ++ reg = <0x000000 0x020000>; ++ read-only; ++ }; ++ ++ partition@20000 { ++ compatible = "tplink,firmware"; ++ label = "firmware"; ++ reg = <0x020000 0x7d0000>; ++ }; ++ ++ art: partition@7f0000 { ++ label = "art"; ++ reg = <0x7f0000 0x010000>; ++ read-only; ++ }; ++ }; ++ }; ++}; ++ ++ð0 { ++ status = "okay"; ++ ++ phy-handle = <&swphy4>; ++ ++ mtd-mac-address = <&uboot 0x1fc00>; ++ mtd-mac-address-increment = <1>; ++}; ++ ++ð1 { ++ mtd-mac-address = <&uboot 0x1fc00>; ++}; ++ ++&wmac { ++ status = "okay"; ++ ++ mtd-cal-data = <&art 0x1000>; ++ mtd-mac-address = <&uboot 0x1fc00>; ++}; +diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v10-16m.dts b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v10-16m.dts +new file mode 100644 +index 0000000000000000000000000000000000000000..5cffe57a03fc08fba8c3b2ca198a4c2fdbbab9de +--- /dev/null ++++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v10-16m.dts +@@ -0,0 +1,15 @@ ++// SPDX-License-Identifier: GPL-2.0-or-later OR MIT ++ ++#include "qca9533_tplink_tl-wr841-16m.dtsi" ++ ++/ { ++ compatible = "tplink,tl-wr841-v10-16m", "qca,qca9533"; ++ model = "TP-Link TL-WR841N/ND Mod (ATH79 16M) v10"; ++ ++ aliases { ++ led-boot = &led_qss; ++ led-failsafe = &led_qss; ++ led-running = &led_qss; ++ led-upgrade = &led_qss; ++ }; ++}; +diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v10-8m.dts b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v10-8m.dts +new file mode 100644 +index 0000000000000000000000000000000000000000..7bf8871fce5a76f4f6a805c1a4ea50223770af2e +--- /dev/null ++++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v10-8m.dts +@@ -0,0 +1,15 @@ ++// SPDX-License-Identifier: GPL-2.0-or-later OR MIT ++ ++#include "qca9533_tplink_tl-wr841-8m.dtsi" ++ ++/ { ++ compatible = "tplink,tl-wr841-v10-8m", "qca,qca9533"; ++ model = "TP-Link TL-WR841N/ND Mod (ATH79 8M) v10"; ++ ++ aliases { ++ led-boot = &led_qss; ++ led-failsafe = &led_qss; ++ led-running = &led_qss; ++ led-upgrade = &led_qss; ++ }; ++}; +diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11-16m.dts b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11-16m.dts +new file mode 100644 +index 0000000000000000000000000000000000000000..220953f1be18e286cf2b3b1c3cbe4348ed9b66fa +--- /dev/null ++++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11-16m.dts +@@ -0,0 +1,8 @@ ++// SPDX-License-Identifier: GPL-2.0-or-later OR MIT ++ ++#include "qca9533_tplink_tl-wr841-v11-16m.dtsi" ++ ++/ { ++ compatible = "tplink,tl-wr841-v11-16m", "qca,qca9533"; ++ model = "TP-Link TL-WR841N/ND Mod (ATH79 16M) v11"; ++}; +diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11-16m.dtsi b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11-16m.dtsi +new file mode 100644 +index 0000000000000000000000000000000000000000..e40621ceeb7c5ba40103a26e359fb6f5bd33c691 +--- /dev/null ++++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11-16m.dtsi +@@ -0,0 +1,24 @@ ++// SPDX-License-Identifier: GPL-2.0-or-later OR MIT ++ ++#include "qca9533_tplink_tl-wr841-16m.dtsi" ++ ++/ { ++ aliases { ++ led-boot = &led_system; ++ led-failsafe = &led_system; ++ led-running = &led_system; ++ led-upgrade = &led_system; ++ }; ++}; ++ ++&leds { ++ led_system: system { ++ label = "green:system"; ++ gpios = <&gpio 1 GPIO_ACTIVE_LOW>; ++ }; ++ ++ wan_orange { ++ label = "orange:wan"; ++ gpios = <&gpio 2 GPIO_ACTIVE_LOW>; ++ }; ++}; +diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11-8m.dts b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11-8m.dts +new file mode 100644 +index 0000000000000000000000000000000000000000..f24e069b401d65f143ea46cfaa72c84ccac40dc5 +--- /dev/null ++++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11-8m.dts +@@ -0,0 +1,8 @@ ++// SPDX-License-Identifier: GPL-2.0-or-later OR MIT ++ ++#include "qca9533_tplink_tl-wr841-v11-8m.dtsi" ++ ++/ { ++ compatible = "tplink,tl-wr841-v11-8m", "qca,qca9533"; ++ model = "TP-Link TL-WR841N/ND Mod (ATH79 8M) v11"; ++}; +diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11-8m.dtsi b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11-8m.dtsi +new file mode 100644 +index 0000000000000000000000000000000000000000..92eab6e8da711804556baf6562538c00482628e0 +--- /dev/null ++++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11-8m.dtsi +@@ -0,0 +1,24 @@ ++// SPDX-License-Identifier: GPL-2.0-or-later OR MIT ++ ++#include "qca9533_tplink_tl-wr841-8m.dtsi" ++ ++/ { ++ aliases { ++ led-boot = &led_system; ++ led-failsafe = &led_system; ++ led-running = &led_system; ++ led-upgrade = &led_system; ++ }; ++}; ++ ++&leds { ++ led_system: system { ++ label = "green:system"; ++ gpios = <&gpio 1 GPIO_ACTIVE_LOW>; ++ }; ++ ++ wan_orange { ++ label = "orange:wan"; ++ gpios = <&gpio 2 GPIO_ACTIVE_LOW>; ++ }; ++}; +diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v9-16m.dts b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v9-16m.dts +new file mode 100644 +index 0000000000000000000000000000000000000000..83af5a2559bc6731032e8775d725c7cd226b1856 +--- /dev/null ++++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v9-16m.dts +@@ -0,0 +1,15 @@ ++// SPDX-License-Identifier: GPL-2.0-or-later OR MIT ++ ++#include "qca9533_tplink_tl-wr841-16m.dtsi" ++ ++/ { ++ compatible = "tplink,tl-wr841-v9-16m", "qca,qca9533"; ++ model = "TP-Link TL-WR841N/ND Mod (ATH79 16M) v9"; ++ ++ aliases { ++ led-boot = &led_qss; ++ led-failsafe = &led_qss; ++ led-running = &led_qss; ++ led-upgrade = &led_qss; ++ }; ++}; +diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v9-8m.dts b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v9-8m.dts +new file mode 100644 +index 0000000000000000000000000000000000000000..000775bbbcfa33d0da4e743f320d04a1cdd163ec +--- /dev/null ++++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v9-8m.dts +@@ -0,0 +1,15 @@ ++// SPDX-License-Identifier: GPL-2.0-or-later OR MIT ++ ++#include "qca9533_tplink_tl-wr841-8m.dtsi" ++ ++/ { ++ compatible = "tplink,tl-wr841-v9-8m", "qca,qca9533"; ++ model = "TP-Link TL-WR841N/ND Mod (ATH79 8M) v9"; ++ ++ aliases { ++ led-boot = &led_qss; ++ led-failsafe = &led_qss; ++ led-running = &led_qss; ++ led-upgrade = &led_qss; ++ }; ++}; +diff --git a/target/linux/ath79/generic/base-files/etc/board.d/01_leds b/target/linux/ath79/generic/base-files/etc/board.d/01_leds +index b5cc4abf65e832596efb5633440cfb3d8fdff27b..bef8da51d0df7183501a6c679e731ee910cc8504 100644 +--- a/target/linux/ath79/generic/base-files/etc/board.d/01_leds ++++ b/target/linux/ath79/generic/base-files/etc/board.d/01_leds +@@ -393,6 +393,12 @@ tplink,archer-c6-v2-us) + ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02" + ;; + tplink,archer-c25-v1|\ ++tplink,tl-wr841-v9-8m|\ ++tplink,tl-wr841-v9-16m|\ ++tplink,tl-wr841-v10-8m|\ ++tplink,tl-wr841-v10-16m|\ ++tplink,tl-wr841-v11-8m|\ ++tplink,tl-wr841-v11-16m|\ + tplink,tl-wr842n-v3) + ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1" + ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10" +@@ -455,6 +461,8 @@ tplink,tl-wpa8630-v1) + ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x3c" + ;; + tplink,tl-wr841hp-v2|\ ++tplink,tl-wr841-v8-8m|\ ++tplink,tl-wr841-v8-16m|\ + tplink,tl-wr842n-v2) + ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1" + ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x04" +diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network +index 0d7396a04dca98bce0be8e49e7118df670ce1043..6d6d0e6705ef5d4f4b27d8b36ddb84a82b5c5b60 100644 +--- a/target/linux/ath79/generic/base-files/etc/board.d/02_network ++++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network +@@ -196,6 +196,12 @@ ath79_setup_interfaces() + tplink,archer-c60-v2|\ + tplink,archer-c60-v3|\ + tplink,tl-wdr3500-v1|\ ++ tplink,tl-wr841-v9-8m|\ ++ tplink,tl-wr841-v9-16m|\ ++ tplink,tl-wr841-v10-8m|\ ++ tplink,tl-wr841-v10-16m|\ ++ tplink,tl-wr841-v11-8m|\ ++ tplink,tl-wr841-v11-16m|\ + tplink,tl-wr842n-v1|\ + tplink,tl-wr842n-v3) + ucidef_set_interface_wan "eth1" +@@ -494,6 +500,8 @@ ath79_setup_interfaces() + "0@eth0" "2:lan:3" "3:lan:2" "4:lan:1" "5:lan:4" + ;; + tplink,tl-wr841hp-v2|\ ++ tplink,tl-wr841-v8-8m|\ ++ tplink,tl-wr841-v8-16m|\ + tplink,tl-wr842n-v2|\ + tplink,tl-wr941hp-v1) + ucidef_set_interface_wan "eth1" +diff --git a/target/linux/ath79/image/generic-tp-link.mk b/target/linux/ath79/image/generic-tp-link.mk +index cfabc89b8dfe7d3b0d60e0f793e3198907b1c199..10cb62ea8a447620126df8b678d1d2c40aadad2c 100644 +--- a/target/linux/ath79/image/generic-tp-link.mk ++++ b/target/linux/ath79/image/generic-tp-link.mk +@@ -847,6 +847,92 @@ define Device/tplink_tl-wr841hp-v3 + endef + TARGET_DEVICES += tplink_tl-wr841hp-v3 + ++define Device/tplink_tl-wr841-v8-8m ++ $(Device/tplink-8mlzma) ++ SOC := ar9341 ++ DEVICE_MODEL := TL-WR841N/ND Mod (ATH79 8M) ++ DEVICE_VARIANT := v8 ++ TPLINK_HWID := 0x08410808 ++ SUPPORTED_DEVICES += tl-wr841n-v8 tl-wr841n-v8-8m ++endef ++TARGET_DEVICES += tplink_tl-wr841-v8-8m ++ ++define Device/tplink_tl-wr841-v8-16m ++ $(Device/tplink-16mlzma) ++ SOC := ar9341 ++ DEVICE_MODEL := TL-WR841N/ND Mod (ATH79 16M) ++ DEVICE_VARIANT := v8 ++ TPLINK_HWID := 0x08411608 ++ SUPPORTED_DEVICES += tl-wr841n-v8 tl-wr841n-v8-16m ++endef ++TARGET_DEVICES += tplink_tl-wr841-v8-16m ++ ++define Device/tplink_tl-wr841-v9-8m ++ $(Device/tplink-8mlzma) ++ SOC := qca9533 ++ DEVICE_MODEL := TL-WR841N/ND Mod (ATH79 8M) ++ DEVICE_VARIANT := v9 ++ TPLINK_HWID := 0x08410809 ++ SUPPORTED_DEVICES += tl-wr841n-v9 tl-wr841n-v9-8m ++endef ++TARGET_DEVICES += tplink_tl-wr841-v9-8m ++ ++define Device/tplink_tl-wr841-v9-16m ++ $(Device/tplink-16mlzma) ++ SOC := qca9533 ++ DEVICE_MODEL := TL-WR841N/ND Mod (ATH79 16M) ++ DEVICE_VARIANT := v9 ++ TPLINK_HWID := 0x08411609 ++ SUPPORTED_DEVICES += tl-wr841n-v9 tl-wr841n-v9-16m ++endef ++TARGET_DEVICES += tplink_tl-wr841-v9-16m ++ ++define Device/tplink_tl-wr841-v10-8m ++ $(Device/tplink-8mlzma) ++ SOC := qca9533 ++ DEVICE_MODEL := TL-WR841N/ND Mod (ATH79 8M) ++ DEVICE_VARIANT := v10 ++ TPLINK_HWID := 0x08410810 ++ SUPPORTED_DEVICES += tl-wr841n-v9 tl-wr841n-v9-8m ++endef ++TARGET_DEVICES += tplink_tl-wr841-v10-8m ++ ++define Device/tplink_tl-wr841-v10-16m ++ $(Device/tplink-16mlzma) ++ SOC := qca9533 ++ DEVICE_MODEL := TL-WR841N/ND Mod (ATH79 16M) ++ DEVICE_VARIANT := v10 ++ TPLINK_HWID := 0x08411610 ++ SUPPORTED_DEVICES += tl-wr841n-v9 tl-wr841n-v9-16m ++endef ++TARGET_DEVICES += tplink_tl-wr841-v10-16m ++ ++define Device/tplink_tl-wr841-v11-8m ++ $(Device/tplink-8mlzma) ++ SOC := qca9533 ++ DEVICE_MODEL := TL-WR841N/ND Mod (ATH79 8M) ++ DEVICE_VARIANT := v11 ++ TPLINK_HWID := 0x08410811 ++ SUPPORTED_DEVICES += tl-wr841n-v11 tl-wr841n-v11-8m ++ IMAGES += factory-us.bin factory-eu.bin ++ IMAGE/factory-us.bin := tplink-v1-image factory -C US ++ IMAGE/factory-eu.bin := tplink-v1-image factory -C EU ++endef ++TARGET_DEVICES += tplink_tl-wr841-v11-8m ++ ++define Device/tplink_tl-wr841-v11-16m ++ $(Device/tplink-16mlzma) ++ SOC := qca9533 ++ DEVICE_MODEL := TL-WR841N/ND Mod (ATH79 16M) ++ DEVICE_VARIANT := v11 ++ TPLINK_HWID := 0x08411611 ++ SUPPORTED_DEVICES += tl-wr841n-v11 tl-wr841n-v11-16m ++ IMAGES += factory-us.bin factory-eu.bin ++ IMAGE/factory-us.bin := tplink-v1-image factory -C US ++ IMAGE/factory-eu.bin := tplink-v1-image factory -C EU ++endef ++TARGET_DEVICES += tplink_tl-wr841-v11-16m ++ + define Device/tplink_tl-wr842n-v1 + $(Device/tplink-8m) + SOC := ar7241 diff --git a/targets/ath79-generic b/targets/ath79-generic index 626b6520cb..b33f4edb68 100644 --- a/targets/ath79-generic +++ b/targets/ath79-generic @@ -512,6 +512,46 @@ device('tp-link-tl-wdr4300-v1', 'tplink_tl-wdr4300-v1') device('tp-link-tl-wr810n-v1', 'tplink_tl-wr810n-v1') +device('tp-link-tl-wr841n-nd-mod-ath79-8m-v8', 'tplink_tl-wr841-v8-8m', { + factory = false, + manifest_aliases = {'tp-link-tl-wr841n-nd-mod-8m-v8', 'tp-link-tl-wr841n-nd-mod-8m-ath79-v8'}, +}) + +device('tp-link-tl-wr841n-nd-mod-ath79-16m-v8', 'tplink_tl-wr841-v8-16m', { + factory = false, + manifest_aliases = {'tp-link-tl-wr841n-nd-mod-8m-v8', 'tp-link-tl-wr841n-nd-mod-16m-ath79-v8'}, +}) + +device('tp-link-tl-wr841n-nd-mod-ath79-8m-v9', 'tplink_tl-wr841-v9-8m', { + factory = false, + manifest_aliases = {'tp-link-tl-wr841n-nd-mod-8m-v9', 'tp-link-tl-wr841n-nd-mod-8m-ath79-v9'}, +}) + +device('tp-link-tl-wr841n-nd-mod-ath79-16m-v9', 'tplink_tl-wr841-v9-16m', { + factory = false, + manifest_aliases = {'tp-link-tl-wr841n-nd-mod-8m-v9', 'tp-link-tl-wr841n-nd-mod-16m-ath79-v9'}, +}) + +device('tp-link-tl-wr841n-nd-mod-ath79-8m-v10', 'tplink_tl-wr841-v10-8m', { + factory = false, + manifest_aliases = {'tp-link-tl-wr841n-nd-mod-16m-v10', 'tp-link-tl-wr841n-nd-mod-8m-ath79-v10'}, +}) + +device('tp-link-tl-wr841n-nd-mod-ath79-16m-v10', 'tplink_tl-wr841-v10-16m', { + factory = false, + manifest_aliases = {'tp-link-tl-wr841n-nd-mod-16m-v10', 'tp-link-tl-wr841n-nd-mod-16m-ath79-v10'}, +}) + +device('tp-link-tl-wr841n-nd-mod-ath79-8m-v11', 'tplink_tl-wr841-v11-8m', { + factory = false, + manifest_aliases = {'tp-link-tl-wr841n-nd-mod-16m-v11', 'tp-link-tl-wr841n-nd-mod-8m-ath79-v11'}, +}) + +device('tp-link-tl-wr841n-nd-mod-ath79-16m-v11', 'tplink_tl-wr841-v11-16m', { + factory = false, + manifest_aliases = {'tp-link-tl-wr841n-nd-mod-16m-v11', 'tp-link-tl-wr841n-nd-mod-16m-ath79-v11'}, +}) + device('tp-link-tl-wr842n-v3', 'tplink_tl-wr842n-v3', { manifest_aliases = { 'tp-link-tl-wr842n-nd-v3', -- upgrade from OpenWrt 19.07