282 lines
7.5 KiB
Diff
282 lines
7.5 KiB
Diff
diff -Naur ow/target/linux/ath79/dts/qca9533_tplink_tl-wr841_16m.dtsi ow_p/target/linux/ath79/dts/qca9533_tplink_tl-wr841_16m.dtsi
|
|
--- ow/target/linux/ath79/dts/qca9533_tplink_tl-wr841_16m.dtsi 1970-01-01 01:00:00.000000000 +0100
|
|
+++ ow_p/target/linux/ath79/dts/qca9533_tplink_tl-wr841_16m.dtsi 2020-08-11 12:55:46.000000000 +0200
|
|
@@ -0,0 +1,130 @@
|
|
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
+
|
|
+#include <dt-bindings/gpio/gpio.h>
|
|
+#include <dt-bindings/input/input.h>
|
|
+
|
|
+#include "qca953x.dtsi"
|
|
+
|
|
+/ {
|
|
+ aliases {
|
|
+ label-mac-device = &wmac;
|
|
+ };
|
|
+
|
|
+ leds: leds {
|
|
+ compatible = "gpio-leds";
|
|
+
|
|
+ wifi {
|
|
+ label = "tp-link:green:wlan";
|
|
+ gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
|
+ linux,default-trigger = "phy0tpt";
|
|
+ };
|
|
+
|
|
+ led_qss: qss {
|
|
+ label = "tp-link:green:qss";
|
|
+ gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+
|
|
+ wan {
|
|
+ label = "tp-link:green:wan";
|
|
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+
|
|
+ lan1 {
|
|
+ label = "tp-link:green:lan1";
|
|
+ gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+
|
|
+ lan2 {
|
|
+ label = "tp-link:green:lan2";
|
|
+ gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+
|
|
+ lan3 {
|
|
+ label = "tp-link:green:lan3";
|
|
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+
|
|
+ lan4 {
|
|
+ label = "tp-link:green:lan4";
|
|
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ keys {
|
|
+ compatible = "gpio-keys";
|
|
+
|
|
+ reset {
|
|
+ label = "Reset button";
|
|
+ linux,code = <KEY_RESTART>;
|
|
+ gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
|
+ debounce-interval = <60>;
|
|
+ };
|
|
+
|
|
+ rfkill {
|
|
+ label = "RFKILL button";
|
|
+ linux,code = <KEY_RFKILL>;
|
|
+ gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
|
+ debounce-interval = <60>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&uart {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&spi {
|
|
+ status = "okay";
|
|
+
|
|
+ num-cs = <1>;
|
|
+
|
|
+ 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@3f0000 {
|
|
+ label = "art";
|
|
+ reg = <0xff0000 0x010000>;
|
|
+ read-only;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+ð1 {
|
|
+ mtd-mac-address = <&uboot 0x1fc00>;
|
|
+};
|
|
+
|
|
+ð0 {
|
|
+ status = "okay";
|
|
+
|
|
+ phy-handle = <&swphy4>;
|
|
+
|
|
+ mtd-mac-address = <&uboot 0x1fc00>;
|
|
+ mtd-mac-address-increment = <1>;
|
|
+};
|
|
+
|
|
+&wmac {
|
|
+ status = "okay";
|
|
+
|
|
+ mtd-cal-data = <&art 0x1000>;
|
|
+ mtd-mac-address = <&uboot 0x1fc00>;
|
|
+};
|
|
diff -Naur ow/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v10_16m.dts ow_p/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v10_16m.dts
|
|
--- ow/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v10_16m.dts 1970-01-01 01:00:00.000000000 +0100
|
|
+++ ow_p/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v10_16m.dts 2020-08-11 13:35:00.000000000 +0200
|
|
@@ -0,0 +1,16 @@
|
|
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
+/dts-v1/;
|
|
+
|
|
+#include "qca9533_tplink_tl-wr841_16m.dtsi"
|
|
+
|
|
+/ {
|
|
+ compatible = "tplink,tl-wr841-v10", "qca,qca9533";
|
|
+ model = "TP-Link TL-WR841N/ND v10";
|
|
+
|
|
+ aliases {
|
|
+ led-boot = &led_qss;
|
|
+ led-failsafe = &led_qss;
|
|
+ led-running = &led_qss;
|
|
+ led-upgrade = &led_qss;
|
|
+ };
|
|
+};
|
|
diff -Naur ow/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11_16m.dts ow_p/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11_16m.dts
|
|
--- ow/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11_16m.dts 1970-01-01 01:00:00.000000000 +0100
|
|
+++ ow_p/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11_16m.dts 2020-08-11 13:33:34.000000000 +0200
|
|
@@ -0,0 +1,9 @@
|
|
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
+/dts-v1/;
|
|
+
|
|
+#include "qca9533_tplink_tl-wr841-v11_16m.dtsi"
|
|
+
|
|
+/ {
|
|
+ compatible = "tplink,tl-wr841-v11", "qca,qca9533";
|
|
+ model = "TP-Link TL-WR841N/ND v11";
|
|
+};
|
|
diff -Naur ow/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11_16m.dtsi ow_p/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11_16m.dtsi
|
|
--- ow/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11_16m.dtsi 1970-01-01 01:00:00.000000000 +0100
|
|
+++ ow_p/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11_16m.dtsi 2020-08-11 13:34:38.000000000 +0200
|
|
@@ -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 = "tp-link:green:system";
|
|
+ gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+
|
|
+ wan_orange {
|
|
+ label = "tp-link:orange:wan";
|
|
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+};
|
|
diff -Naur ow/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v12_16m.dts ow_p/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v12_16m.dts
|
|
--- ow/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v12_16m.dts 1970-01-01 01:00:00.000000000 +0100
|
|
+++ ow_p/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v12_16m.dts 2020-08-11 13:34:50.000000000 +0200
|
|
@@ -0,0 +1,9 @@
|
|
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
+/dts-v1/;
|
|
+
|
|
+#include "qca9533_tplink_tl-wr841-v11_16m.dtsi"
|
|
+
|
|
+/ {
|
|
+ compatible = "tplink,tl-wr841-v12", "qca,qca9533";
|
|
+ model = "TP-Link TL-WR841N/ND v12";
|
|
+};
|
|
diff -Naur ow/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v9_16m.dts ow_p/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v9_16m.dts
|
|
--- ow/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v9_16m.dts 1970-01-01 01:00:00.000000000 +0100
|
|
+++ ow_p/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v9_16m.dts 2020-08-11 13:35:08.000000000 +0200
|
|
@@ -0,0 +1,16 @@
|
|
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
+/dts-v1/;
|
|
+
|
|
+#include "qca9533_tplink_tl-wr841_16m.dtsi"
|
|
+
|
|
+/ {
|
|
+ compatible = "tplink,tl-wr841-v9", "qca,qca9533";
|
|
+ model = "TP-Link TL-WR841N/ND v9";
|
|
+
|
|
+ aliases {
|
|
+ led-boot = &led_qss;
|
|
+ led-failsafe = &led_qss;
|
|
+ led-running = &led_qss;
|
|
+ led-upgrade = &led_qss;
|
|
+ };
|
|
+};
|
|
diff -Naur ow/target/linux/ath79/image/tiny-tp-link.mk ow_p/target/linux/ath79/image/tiny-tp-link.mk
|
|
--- ow/target/linux/ath79/image/tiny-tp-link.mk 2020-08-11 15:01:50.717028796 +0200
|
|
+++ ow_p/target/linux/ath79/image/tiny-tp-link.mk 2020-08-11 14:12:58.000000000 +0200
|
|
@@ -486,3 +486,49 @@
|
|
TPLINK_HWID := 0x09410007
|
|
endef
|
|
TARGET_DEVICES += tplink_tl-wr941n-v7-cn
|
|
+
|
|
+define Device/tplink_tl-wr841-v11_16m
|
|
+ $(Device/tplink-16mlzma)
|
|
+ SOC := qca9533
|
|
+ DEVICE_MODEL := TL-WR841N/ND
|
|
+ DEVICE_VARIANT := v11_16m
|
|
+ TPLINK_HWID := 0x08410011
|
|
+ SUPPORTED_DEVICES += tl-wr841n-v11
|
|
+ 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-wr841-v12_16m
|
|
+ $(Device/tplink-16mlzma)
|
|
+ SOC := qca9533
|
|
+ DEVICE_MODEL := TL-WR841N/ND
|
|
+ DEVICE_VARIANT := v12_16m
|
|
+ TPLINK_HWID := 0x08410012
|
|
+ SUPPORTED_DEVICES += tl-wr841n-v11
|
|
+ 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-v12_16m
|
|
+
|
|
+define Device/tplink_tl-wr841-v9_16m
|
|
+ $(Device/tplink-16mlzma)
|
|
+ SOC := qca9533
|
|
+ DEVICE_MODEL := TL-WR841N/ND
|
|
+ DEVICE_VARIANT := v9_16m
|
|
+ TPLINK_HWID := 0x08410009
|
|
+ SUPPORTED_DEVICES += tl-wr841n-v9
|
|
+endef
|
|
+TARGET_DEVICES += tplink_tl-wr841-v9_16m
|
|
+
|
|
+define Device/tplink_tl-wr841-v10_16m
|
|
+ $(Device/tplink-16mlzma)
|
|
+ SOC := qca9533
|
|
+ DEVICE_MODEL := TL-WR841N/ND
|
|
+ DEVICE_VARIANT := v10_16m
|
|
+ TPLINK_HWID := 0x08410010
|
|
+ SUPPORTED_DEVICES += tl-wr841n-v9
|
|
+endef
|
|
+TARGET_DEVICES += tplink_tl-wr841-v10_16m
|