aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorPiotr Dymacz <pepe2k@gmail.com>2017-07-02 18:32:38 +0200
committerPiotr Dymacz <pepe2k@gmail.com>2017-07-04 08:58:54 +0200
commit6165e4aab0e22b780b6b1dde887ed803a7c8210a (patch)
tree4f95e80fcccc02122231d83e6f1579f8a97490af /target/linux/ar71xx/base-files
parent0a2e4204dbe0b7bf31cb4100491a01b2837d7f3f (diff)
downloadupstream-6165e4aab0e22b780b6b1dde887ed803a7c8210a.tar.gz
upstream-6165e4aab0e22b780b6b1dde887ed803a7c8210a.tar.bz2
upstream-6165e4aab0e22b780b6b1dde887ed803a7c8210a.zip
ar71xx: add support for TP-Link TL-WR902AC v1
TP-Link TL-WR902AC v1 is a pocket-size, dual-band (AC750), successor of TL-MR3020 (both devices use very similar enclosure, in same size). New device is based on Qualcomm QCA9531 v2 + QCA9887. FCC ID: TE7WR902AC. Specification: - 650/391/216 MHz (CPU/DDR/AHB) - 1x 10/100 Mbps Ethernet - 1x USB 2.0 (GPIO-controlled power) - 64 MB of RAM (DDR2) - 8 MB of FLASH - 2T2R 2.4 GHz (QCA9531) - 1T1R 5 GHz (QCA9887) - 5x LED (GPIO-controlled), 2x button, 1x 3-pos switch - UART pads on PCB (TP1 -> TX, TP2 -> RX, TP3 -> GND, TP4 -> 3V3, jumper resitors are missing on TX/RX lines) - 1x micro USB (for power only) Flash instructions: Use "factory" image under vendor GUI. Recovery instructions: This device contains tftp recovery mode inside U-Boot. You can use it to flash LEDE (use "factory" image) or vendor firmware. 1. Configure PC with static IP 192.168.0.66/24 and tftp server. 2. Rename "lede-ar71xx-generic-tl-wr902ac-v1-squashfs-factory.bin" to "wr902acv1_un_tp_recovery.bin" and place it in tftp server dir. 3. Connect PC with LAN port, press the reset button, power up the router and keep button pressed until WPS LED lights up. 4. Router will download file from server, write it to flash and reboot. Root access over serial line in vendor firmware: root/sohoadmin. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds5
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh3
-rw-r--r--target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh3
6 files changed, 15 insertions, 3 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index de9072e55c..103002d54a 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -750,6 +750,11 @@ tl-wr802n-v1)
tl-wr802n-v2)
ucidef_set_led_wlan "wlan" "WLAN" "$board:green:system" "phy0tpt"
;;
+tl-wr902ac-v1)
+ ucidef_set_led_netdev "wan" "WAN" "$board:green:lan" "eth0"
+ ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
+ ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:green:wlan2g" "phy1tpt"
+ ;;
tl-wr940n-v4|\
tl-wr941nd-v6)
ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index 23c50b41d6..b9b7b3cb27 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -124,6 +124,7 @@ ar71xx_setup_interfaces()
tl-wr703n|\
tl-wr802n-v1|\
tl-wr802n-v2|\
+ tl-wr902ac-v1|\
tube2h|\
unifiac-lite|\
wndap360|\
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 2d2a6788a7..50b893f5b1 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -61,7 +61,8 @@ get_status_led() {
nbg6616|\
sc1750|\
sc450|\
- tl-wpa8630)
+ tl-wpa8630|\
+ tl-wr902ac-v1)
status_led="$board:green:power"
;;
ap90q|\
diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
index ecbc9b8163..a2e98f4be7 100644
--- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -98,7 +98,8 @@ case "$FIRMWARE" in
rb-952ui-5ac2nd)
ath10kcal_from_file "/sys/firmware/routerboot/ext_wlan_data" 20480 2116
;;
- re450)
+ re450|\
+ tl-wr902ac-v1)
ath10kcal_extract "art" 20480 2116
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) -2)
;;
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index df8c6d7283..b74807d4b0 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -1169,6 +1169,9 @@ ar71xx_board_detect() {
*"TL-WR842N/ND v3")
name="tl-wr842n-v3"
;;
+ *"TL-WR902AC v1")
+ name="tl-wr902ac-v1"
+ ;;
*"TL-WR940N v4")
name="tl-wr940n-v4"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 85fc1e9122..88e8e92a0d 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -657,7 +657,8 @@ platform_check_image() {
rb-952ui-5ac2nd|\
rb-962uigs-5hact2hnt|\
rb-lhg-5nd|\
- rb-mapl-2nd)
+ rb-mapl-2nd|\
+ tl-wr902ac-v1)
return 0
;;
esac