diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-12-09 15:00:55 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-03-27 17:15:07 +0100 |
commit | bdbda30384980ed545391ddf23308ca4bde34770 (patch) | |
tree | ea6c34ee6e9230c1ece28543ae90ca01ee96624f /target/linux/ath79 | |
parent | 2e6bfab8c59f4c76ae3f3ccd1d3e09844e889ecc (diff) | |
download | upstream-bdbda30384980ed545391ddf23308ca4bde34770.tar.gz upstream-bdbda30384980ed545391ddf23308ca4bde34770.tar.bz2 upstream-bdbda30384980ed545391ddf23308ca4bde34770.zip |
ath79: add support for TP-Link TL-WA860RE v1
This ports support for the TL-WA860RE v1 range extender from ar71xx
to ath79.
Specifications:
Board: AP123 / AR9341 rev. 3
Flash/RAM: 4/32 MiB
CPU: 535 MHz
WiFi: 2.4 GHz b/g/n
Ethernet: 1 port (100M)
Two external antennas
Flashing instructions:
Upload the factory image via the vendor firmware upgrade option.
Recovery:
Note that this device does not provide TFTP via ethernet like many
other TP-Link devices do. You will have to open the case if you
require recovery beyond failsafe.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Tested-by: Sebastian Knapp <sebastian4842@outlook.com>
(cherry picked from commit 385f4868bc58b04e465db2fbcfce848a75009a74)
Diffstat (limited to 'target/linux/ath79')
4 files changed, 84 insertions, 1 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds index 167c3a26a6..e89152ab7e 100755 --- a/target/linux/ath79/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/base-files/etc/board.d/01_leds @@ -174,7 +174,8 @@ tplink,re450-v2) ucidef_set_led_netdev "lan_link" "LAN Link" "tp-link:green:lan_link" "eth0" "link" ;; tplink,tl-mr3020-v1|\ -tplink,tl-mr3040-v2) +tplink,tl-mr3040-v2|\ +tplink,tl-wa860re-v1) ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0" ;; tplink,tl-wa850re-v1) 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 5b42828fcf..8edd4e6c2e 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -32,6 +32,7 @@ ath79_setup_interfaces() tplink,tl-mr3020-v1|\ tplink,tl-mr3040-v2|\ tplink,tl-wa850re-v1|\ + tplink,tl-wa860re-v1|\ tplink,tl-wa901nd-v2|\ tplink,tl-wr703n|\ ubnt,bullet-m|\ diff --git a/target/linux/ath79/dts/ar9341_tplink_tl-wa860re-v1.dts b/target/linux/ath79/dts/ar9341_tplink_tl-wa860re-v1.dts new file mode 100644 index 0000000000..237a40d693 --- /dev/null +++ b/target/linux/ath79/dts/ar9341_tplink_tl-wa860re-v1.dts @@ -0,0 +1,72 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "ar9341_tplink_tl-wa.dtsi" + +/ { + model = "TP-Link TL-WA860RE v1"; + compatible = "tplink,tl-wa860re-v1", "qca,ar9341"; + + aliases { + led-boot = &led_power_green; + led-failsafe = &led_power_orange; + led-running = &led_power_green; + led-upgrade = &led_power_orange; + }; + + keys { + compatible = "gpio-keys"; + + reset { + label = "Reset"; + linux,code = <KEY_RESTART>; + gpios = <&gpio 17 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; + + wps { + label = "WPS"; + linux,code = <KEY_WPS_BUTTON>; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; + + onoff { + label = "ONOFF"; + linux,code = <BTN_1>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; + }; + + leds { + compatible = "gpio-leds"; + + lan { + label = "tp-link:green:lan"; + gpios = <&gpio 20 GPIO_ACTIVE_LOW>; + }; + + led_power_green: power_green { + label = "tp-link:green:power"; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + + led_power_orange: power_orange { + label = "tp-link:orange:power"; + gpios = <&gpio 12 GPIO_ACTIVE_LOW>; + }; + + wlan_green { + label = "tp-link:green:wlan"; + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + wlan_orange { + label = "tp-link:orange:wlan"; + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; + }; + }; +}; diff --git a/target/linux/ath79/image/tiny-tp-link.mk b/target/linux/ath79/image/tiny-tp-link.mk index 7d8f124e87..6a3734d814 100644 --- a/target/linux/ath79/image/tiny-tp-link.mk +++ b/target/linux/ath79/image/tiny-tp-link.mk @@ -61,6 +61,15 @@ define Device/tplink_tl-wa850re-v1 endef TARGET_DEVICES += tplink_tl-wa850re-v1 +define Device/tplink_tl-wa860re-v1 + $(Device/tplink-4mlzma) + ATH_SOC := ar9341 + DEVICE_TITLE := TP-Link TL-WA860RE v1 + TPLINK_HWID := 0x08600001 + SUPPORTED_DEVICES += tl-wa860re +endef +TARGET_DEVICES += tplink_tl-wa860re-v1 + define Device/tplink_tl-wa901nd-v2 $(Device/tplink-4m) ATH_SOC := ar9132 |