ath79: add support for TP-Link CPE710-v1
authorAndrew Cameron <apcameron@softhome.net>
Mon, 12 Apr 2021 18:24:33 +0000 (13:24 -0500)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 5 Oct 2021 13:42:49 +0000 (15:42 +0200)
TP-Link CPE710-v1 is an outdoor wireless CPE for 5 GHz with
one Ethernet port based on the AP152 reference board

Specifications:
- SoC: QCA9563-AL3A MIPS 74kc @ 775MHz, AHB @ 258MHz
- RAM: 128MiB DDR2 @ 650MHz
- Flash: 16MiB SPI NOR Based on the GD25Q128
- Wi-Fi 5Ghz: ath10k chip (802.11ac for up to 867Mbps on 5GHz wireless
  data rate) Based on the QCA9896
- Ethernet: one 1GbE port
- 23dBi high-gain directional 2×2 MIMO antenna and a dedicated metal
  reflector
- Power, LAN, WLAN5G Blue LEDs
- 3x Blue LEDs

Flashing instructions:
Flash factory image through stock firmware WEB UI or through TFTP
To get to TFTP recovery just hold reset button while powering on for
around 30-40 seconds and release.
Rename factory image to recovery.bin
Stock TFTP server IP:192.168.0.100
Stock device TFTP address:192.168.0.254

Signed-off-by: Andrew Cameron <apcameron@softhome.net>
[convert to nvmem, fix MAC assignment in 11-ath10k-caldata]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
src/tplink-safeloader.c

index b20d1fdd30e0236c9f2c42e596807d01b92808cc..03329a392617442da926fda17519f1aec7a43ee7 100644 (file)
@@ -534,6 +534,43 @@ static struct device_info boards[] = {
                .first_sysupgrade_partition = "os-image",
                .last_sysupgrade_partition = "support-list",
        },
+       /** Firmware layout for the CPE710 V1 */
+       {
+               .id     = "CPE710V1",
+               .vendor = "CPE710(TP-LINK|UN|AC866-5|00000000):1.0\r\n",
+               .support_list =
+                       "SupportList:\r\n"
+                       "CPE710(TP-LINK|UN|AC866-5|00000000):1.0\r\n"
+                       "CPE710(TP-LINK|EU|AC866-5|45550000):1.0\r\n"
+                       "CPE710(TP-LINK|US|AC866-5|55530000):1.0\r\n"
+                       "CPE710(TP-LINK|UN|AC866-5):1.0\r\n"
+                       "CPE710(TP-LINK|EU|AC866-5):1.0\r\n"
+                       "CPE710(TP-LINK|US|AC866-5):1.0\r\n",
+               .part_trail = 0xff,
+               .soft_ver = SOFT_VER_DEFAULT,
+
+               .partitions = {
+                       {"fs-uboot", 0x00000, 0x50000},
+                       {"partition-table", 0x50000, 0x02000},
+                       {"default-mac", 0x60000, 0x00020},
+                       {"serial-number", 0x60100, 0x00020},
+                       {"product-info", 0x61100, 0x00100},
+                       {"device-info", 0x61400, 0x00400},
+                       {"signature", 0x62000, 0x00400},
+                       {"device-id", 0x63000, 0x00100},
+                       {"firmware", 0x70000, 0xf40000},
+                       {"soft-version", 0xfb0000, 0x00100},
+                       {"support-list", 0xfb1000, 0x01000},
+                       {"user-config", 0xfc0000, 0x10000},
+                       {"default-config", 0xfd0000, 0x10000},
+                       {"log", 0xfe0000, 0x10000},
+                       {"radio", 0xff0000, 0x10000},
+                       {NULL, 0, 0}
+               },
+
+               .first_sysupgrade_partition = "os-image",
+               .last_sysupgrade_partition = "support-list",
+       },
 
        {
                .id     = "WBS210",