[openwrt/openwrt] ath79: add support for TP-Link CPE710-v2

LEDE Commits lede-commits at lists.infradead.org
Sat Nov 23 09:44:22 PST 2024


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/5572e0196a93604716ec36ebb8db6737fc6677aa

commit 5572e0196a93604716ec36ebb8db6737fc6677aa
Author: Tim Noack <tim at noack.id>
AuthorDate: Mon Oct 21 12:21:59 2024 +0000

    ath79: add support for TP-Link CPE710-v2
    
    TP-Link CPE710-v2 is an outdoor wireless CPE for 5 GHz with one Ethernet
    port based on the AP152 reference board. Compared to the CPE710-v1, the
    only change observed in hardware is that the mdio address of the ethernet
    physical changed from 0x4 to 0x0.
    
    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 parabolic antenna
    - Power, LAN, WLAN5G 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: Tim Noack <tim at noack.id>
    Link: https://github.com/openwrt/openwrt/pull/16637
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/ath79/dts/qca9563_tplink_cpe710-v2.dts  | 20 ++++++++++++++++++++
 .../ath79/generic/base-files/etc/board.d/01_leds     |  3 ++-
 .../ath79/generic/base-files/etc/board.d/02_network  |  1 +
 target/linux/ath79/image/generic-tp-link.mk          | 11 +++++++++++
 4 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/target/linux/ath79/dts/qca9563_tplink_cpe710-v2.dts b/target/linux/ath79/dts/qca9563_tplink_cpe710-v2.dts
new file mode 100644
index 0000000000..fe277fc549
--- /dev/null
+++ b/target/linux/ath79/dts/qca9563_tplink_cpe710-v2.dts
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "qca9563_tplink_cpe710.dtsi"
+
+/ {
+	model = "TP-Link CPE710 v2";
+	compatible = "tplink,cpe710-v2", "qca,qca9563";
+};
+
+&mdio0 {
+	phy0: ethernet-phy at 0 {
+		reg = <0>;
+		reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+	};
+};
+
+&eth0 {
+	phy-handle = <&phy0>;
+	phy-mode = "sgmii";
+};
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/01_leds b/target/linux/ath79/generic/base-files/etc/board.d/01_leds
index 0e5731dd74..6409adb78a 100644
--- a/target/linux/ath79/generic/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/generic/base-files/etc/board.d/01_leds
@@ -222,7 +222,8 @@ openmesh,mr900-v1|\
 openmesh,mr900-v2|\
 openmesh,mr1750-v1|\
 openmesh,mr1750-v2|\
-tplink,cpe710-v1)
+tplink,cpe710-v1|\
+tplink,cpe710-v2)
 	ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
 	;;
 compex,wpj344-16m|\
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network
index 8f79a3fad8..2bd97442d9 100644
--- a/target/linux/ath79/generic/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network
@@ -89,6 +89,7 @@ ath79_setup_interfaces()
 	tplink,cpe610-v1|\
 	tplink,cpe610-v2|\
 	tplink,cpe710-v1|\
+	tplink,cpe710-v2|\
 	tplink,eap225-outdoor-v1|\
 	tplink,eap225-outdoor-v3|\
 	tplink,eap225-v1|\
diff --git a/target/linux/ath79/image/generic-tp-link.mk b/target/linux/ath79/image/generic-tp-link.mk
index 643de76f7c..c42338db78 100644
--- a/target/linux/ath79/image/generic-tp-link.mk
+++ b/target/linux/ath79/image/generic-tp-link.mk
@@ -391,6 +391,17 @@ define Device/tplink_cpe710-v1
 endef
 TARGET_DEVICES += tplink_cpe710-v1
 
+define Device/tplink_cpe710-v2
+  $(Device/tplink-safeloader-uimage)
+  SOC := qca9563
+  IMAGE_SIZE := 15680k
+  DEVICE_MODEL := CPE710
+  DEVICE_VARIANT := v2
+  DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
+  TPLINK_BOARD_ID := CPE710V2
+endef
+TARGET_DEVICES += tplink_cpe710-v2
+
 define Device/tplink-eap2x5
   $(Device/tplink-safeloader)
   LOADER_TYPE := elf




More information about the lede-commits mailing list