aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohann Neuhauser <johann@it-neuhauser.de>2018-08-13 15:28:51 +0200
committerMathias Kresin <dev@kresin.me>2018-08-14 10:19:37 +0200
commit8db6522531531348952b161fd4de46a7eca481d6 (patch)
tree94caefaf0c267416300558ab42550bbc5a072aab /target
parent18f738d3c4a9f927c423dd738b352fbf899f1b09 (diff)
downloadupstream-8db6522531531348952b161fd4de46a7eca481d6.tar.gz
upstream-8db6522531531348952b161fd4de46a7eca481d6.tar.bz2
upstream-8db6522531531348952b161fd4de46a7eca481d6.zip
ath79: add support for TP-Link WR841N/ND v11
Specification: - SoC: Atheros AR9533 - Flash: 4 MB - RAM: 32 MB - Ethernet: 4x LAN (100M) / 1x WAN (100M) - WiFi: 2.4G 300M Flash instruction: Flash factory image from stock WebUI. Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11.dts30
-rw-r--r--target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi2
-rw-r--r--target/linux/ath79/image/tiny-tp-link.mk11
3 files changed, 42 insertions, 1 deletions
diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11.dts b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11.dts
new file mode 100644
index 0000000000..7d1cce20a6
--- /dev/null
+++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11.dts
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+#include "qca9533_tplink_tl-wr841.dtsi"
+
+/ {
+ compatible = "tplink,tl-wr841-v11", "qca,qca9533";
+ model = "TP-Link TL-WR841N/ND Version 11";
+
+ aliases {
+ led-status = &system_led;
+ };
+};
+
+&gpio_leds {
+ system_led: system {
+ label = "tp-link:green:system";
+ gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
+ default-state = "off";
+ };
+
+ wan_orange {
+ label = "tp-link:orange:wan";
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
+ default-state = "off";
+ };
+};
diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi b/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi
index 4a913a9d76..3621b7e1e8 100644
--- a/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi
+++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi
@@ -11,7 +11,7 @@
bootargs = "console=ttyS0,115200n8";
};
- leds {
+ gpio_leds: leds {
compatible = "gpio-leds";
wifi {
diff --git a/target/linux/ath79/image/tiny-tp-link.mk b/target/linux/ath79/image/tiny-tp-link.mk
index 23d875ade5..c1777809fc 100644
--- a/target/linux/ath79/image/tiny-tp-link.mk
+++ b/target/linux/ath79/image/tiny-tp-link.mk
@@ -126,6 +126,17 @@ define Device/tplink_tl-wr841-v9
endef
TARGET_DEVICES += tplink_tl-wr841-v9
+define Device/tplink_tl-wr841-v11
+ $(Device/tplink-4mlzma)
+ ATH_SOC := qca9533
+ DEVICE_TITLE := TP-LINK TL-WR841N/ND v11
+ TPLINK_HWID := 0x08410011
+ IMAGES += factory-us.bin factory-eu.bin
+ IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
+ IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
+endef
+TARGET_DEVICES += tplink_tl-wr841-v11
+
define Device/tplink_tl-wr941-v4
$(Device/tplink-4m)
ATH_SOC := ar7240