openwrt/target/linux
Anderson Vulczak 9b90dc05f5 ath79: add support for TP-Link Archer C6 v2 (US) and A6 (US/TW)
This patch is based on #1689 and adds support for TP-Link Archer
C6 v2 (US) and A6 (US/TW).

The hardware is the same as EU and RU variant, except for GPIOs
(LEDS/Buttons), flash(chip/partitions) and UART being available
on the board.

- SOC: Qualcomm QCA9563 @ 775MHz
- Flash: GigaDevice GD25Q127CS1G (16MiB)
- RAM: Zentel A3R1GE40JBF (128 MiB DDR2)
- Ethernet: Qualcomm QCA8337N: 4x 1Gbps LAN + 1x 1Gbps WAN
- Wireless:
  - 2.4GHz (bgn) QCA9563 integrated (3x3)
  - 5GHz (ac) Qualcomm QCA9886 (2x2)
- Button: 1x power, 1x reset, 1x wps
- LED: 6x LEDs: power, wlan2g, wlan5g, lan, wan, wps
- UART: 115200, 8n1 (header available on board)

Known issues:
 - Wireless: 5GHz is known to have lower RSSI signal, it affects speed and range.

Flash instructions:

Upload openwrt-ath79-generic-tplink_archer-c6-v2-us-squashfs-factory.bin
via the router Web interface.

Flash instruction using tftp recovery:

1. Connect the computer to one of the LAN ports of the router
2. Set the computer IP to 192.168.0.66
3. Start a tftp server with the OpenWrt factory image in the
   tftp root directory renamed to ArcherA6v2_tp_recovery.bin.
4. Connect power cable to router, press and hold the
   reset button and turn the router on
5. Keep the reset button pressed until the WPS LED lights up
6. Wait ~150 seconds to complete flashing

Flash partitioning: I've followed #1689 for defining the partition layout
for this patch. The partition named as "tplink" @ 0xfd0000 is marked
as read only as it is where some config for stock firmware are stored.
On stock firmware those stock partitions starts at 0xfd9400 however
I had not been able to make it functional starting on the same address as
on stock fw, so it has been partitioned following #1689 and not the stock
partition layout for this specific partition. Due to that firmware/rootfs
partition lenght is 0xf80000 and not 0xf89400 as stock.

According to the GPL code, the EU/RU/JP variant does have different GPIO pins
assignment to LEDs and buttons, also the flash memory layout is different.

GPL Source Code: https://static.tp-link.com/resources/gpl/gpl-A6v2_us.tar.gz

Signed-off-by: Anderson Vulczak <andi@andi.com.br>
[wrap commit message, remove soft_ver change for C6 v2 EU, move LED aliases
to DTS files, remove dts-v1 in DTSI, node/property reorder in DTSI]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-11-27 22:54:36 +01:00
..
apm821xx treewide: kernel config: remove runtime options 2019-11-24 14:19:43 +01:00
ar7 kernel: bump 4.9 to 4.9.194 2019-09-24 12:52:05 +02:00
ar71xx ar71xx: ubnt-(xm,xw): add rssileds package 2019-11-21 12:55:50 +01:00
arc770 treewide: remove kmod-usb-core from DEVICE_PACKAGES 2019-10-06 21:28:49 +02:00
archs38 treewide: remove kmod-usb-core from DEVICE_PACKAGES 2019-10-06 21:28:49 +02:00
armvirt armvirt: fix overlay support by updating to f2fs/ext4 based overlays 2019-06-25 14:12:22 +00:00
at91 at91: split up remaining DEVICE_TITLE definitions 2019-10-19 13:16:57 +02:00
ath25 ath25: split up DEVICE_TITLE 2019-10-19 13:16:57 +02:00
ath79 ath79: add support for TP-Link Archer C6 v2 (US) and A6 (US/TW) 2019-11-27 22:54:36 +01:00
bcm53xx bcm53xx: sysupgrade: support Luxul NAND devices 2019-10-15 20:23:04 +02:00
brcm47xx kernel: bump 4.19 to 4.19.85 2019-11-22 16:56:46 +01:00
brcm63xx kernel: bump 4.19 to 4.19.85 2019-11-22 16:56:46 +01:00
brcm2708 treewide: kernel config: remove runtime options 2019-11-24 14:19:43 +01:00
cns3xxx cns3xxx: use proper macros for defining partition regions 2019-11-22 16:56:46 +01:00
gemini treewide: remove kmod-usb-core from DEVICE_PACKAGES 2019-10-06 21:28:49 +02:00
generic treewide: kernel config: remove runtime options 2019-11-24 14:19:43 +01:00
imx6 imx6: install-dtb as separate IMAGE 2019-09-15 15:00:17 +00:00
ipq40xx kernel: bump 4.19 to 4.19.85 2019-11-22 16:56:46 +01:00
ipq806x kernel: bump 4.14 to 4.14.155 2019-11-22 16:56:46 +01:00
ixp4xx treewide: remove kmod-usb-core from DEVICE_PACKAGES 2019-10-06 21:28:49 +02:00
kirkwood kirkwood: Fix FS#505 - Can't install LEDE on Linksys EA3500 2019-10-12 23:42:59 +02:00
lantiq lantiq: remove redundant WiFi LED on FRITZ!Box 7320 2019-11-11 18:17:29 +01:00
layerscape kernel: bump 4.14 to 4.14.155 2019-11-22 16:56:46 +01:00
malta malta: fix overlay support by updating to f2fs/ext4 based overlays 2019-06-25 14:12:22 +00:00
mediatek treewide: kernel config: remove runtime options 2019-11-24 14:19:43 +01:00
mpc85xx mpc85xx: correct TP-LINK TL-WDR4900 MAC addresses 2019-10-15 18:13:54 +02:00
mvebu treewide: kernel config: remove runtime options 2019-11-24 14:19:43 +01:00
mxs treewide: kernel config: remove runtime options 2019-11-24 14:19:43 +01:00
octeon octeon: split up remaining DEVICE_TITLE 2019-10-19 13:16:57 +02:00
octeontx octeontx: fix thunderx BGX underflow irq name 2019-10-27 12:13:59 +01:00
omap omap: switch from uEnv.txt to generic distro booting 2019-11-20 10:46:19 +01:00
orion orion: replace backticks by $(...) 2019-09-29 00:46:13 +02:00
oxnas oxnas: convert DEVICE_TITLE to new variables 2019-07-10 16:56:16 +02:00
pistachio pistachio: split up DEVICE_TITLE 2019-10-12 23:37:00 +02:00
ramips ramips: reorganize NETGEAR sercomm boards 2019-11-24 23:17:20 +01:00
rb532 rb532: split up DEVICE_TITLE 2019-10-19 13:16:57 +02:00
samsung samsung: split up DEVICE_TITLE 2019-09-11 15:17:09 +02:00
sunxi treewide: kernel config: remove runtime options 2019-11-24 14:19:43 +01:00
tegra x86,tegra,mvebu: image: use common reproducible IMG_PART_SIGNATURE 2019-11-11 16:37:13 +01:00
uml kernel: Deactivate CONFIG_BINFMT_MISC 2019-05-11 17:15:41 +02:00
x86 kernel: bump 4.19 to 4.19.84 2019-11-19 14:59:03 +01:00
zynq treewide: kernel config: remove runtime options 2019-11-24 14:19:43 +01:00
Makefile