diff --git a/package/boot/uboot-tools/uboot-envtools/files/qualcommax_ipq60xx b/package/boot/uboot-tools/uboot-envtools/files/qualcommax_ipq60xx index a06ffc1f36..f56c75b0f1 100644 --- a/package/boot/uboot-tools/uboot-envtools/files/qualcommax_ipq60xx +++ b/package/boot/uboot-tools/uboot-envtools/files/qualcommax_ipq60xx @@ -24,6 +24,7 @@ netgear,wax610|\ netgear,wax610y|\ tplink,eap610-outdoor|\ tplink,eap623od-hd-v1|\ +tplink,eap620-hd-v3|\ tplink,eap625-outdoor-hd-v1) ubootenv_add_mtd "0:appsblenv" "0x0" "0x40000" "0x20000" ;; diff --git a/package/firmware/ipq-wifi/Makefile b/package/firmware/ipq-wifi/Makefile index 845909535d..6995b6bea4 100644 --- a/package/firmware/ipq-wifi/Makefile +++ b/package/firmware/ipq-wifi/Makefile @@ -84,6 +84,7 @@ ALLWIFIBOARDS:= \ tplink_deco-x80-5g \ tplink_eap610-outdoor \ tplink_eap620hd-v1 \ + tplink_eap620-hd-v3 \ tplink_eap623-outdoor-hd-v1 \ tplink_eap625-outdoor-hd-v1 \ tplink_eap660hd-v1 \ @@ -269,6 +270,7 @@ $(eval $(call generate-ipq-wifi-package,spectrum_sax1v1k,Spectrum SAX1V1K)) $(eval $(call generate-ipq-wifi-package,tplink_deco-x80-5g,TP-Link Deco X80-5G)) $(eval $(call generate-ipq-wifi-package,tplink_eap610-outdoor,TPLink EAP610-Outdoor)) $(eval $(call generate-ipq-wifi-package,tplink_eap620hd-v1,TP-Link EAP620 HD v1)) +$(eval $(call generate-ipq-wifi-package,tplink_eap620-hd-v3,TP-Link EAP620 HD v3)) $(eval $(call generate-ipq-wifi-package,tplink_eap623-outdoor-hd-v1,TP-Link EAP623-Outdoor HD v1)) $(eval $(call generate-ipq-wifi-package,tplink_eap625-outdoor-hd-v1,TP-Link EAP625-Outdoor HD v1)) $(eval $(call generate-ipq-wifi-package,tplink_eap660hd-v1,TP-Link EAP660 HD v1)) diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-eap620-hd-v3.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-eap620-hd-v3.dts new file mode 100644 index 0000000000..fd7b9c54a7 --- /dev/null +++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-eap620-hd-v3.dts @@ -0,0 +1,50 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +/dts-v1/; + +#include "ipq6018-tplink-eap6xx-outdoor.dtsi" + +/ { + model = "TP-Link EAP620HD v3"; + compatible = "tplink,eap620-hd-v3", "qcom,ipq6018"; + + /* Delete EAP6xx outdoor leds node to redefine it. */ + /delete-node/ leds; + + aliases { + led-boot = &led_status_blue; + led-failsafe = &led_status_blue; + led-running = &led_status_blue; + led-upgrade = &led_status_blue; + }; + + leds { + compatible = "gpio-leds"; + + led_status_blue: status-blue { + function = LED_FUNCTION_STATUS; + gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>; + color = ; + }; + }; +}; + +&mdio { + rtl8211f_4: ethernet-phy@4 { + reg = <4>; + compatible = "ethernet-phy-ieee802.3-c22"; + }; +}; + +&tlmm { + gpio-reserved-ranges = <20 1>; +}; + +&switch { + switch_mac_mode1 = ; +}; + +&wifi { + qcom,ath11k-calibration-variant = "TP-Link-EAP620-HD-v3"; + status = "okay"; +}; diff --git a/target/linux/qualcommax/image/ipq60xx.mk b/target/linux/qualcommax/image/ipq60xx.mk index c9e0569bbd..ecaa8479a0 100644 --- a/target/linux/qualcommax/image/ipq60xx.mk +++ b/target/linux/qualcommax/image/ipq60xx.mk @@ -251,6 +251,26 @@ define Device/tplink_eap625-outdoor-hd-v1 endef TARGET_DEVICES += tplink_eap625-outdoor-hd-v1 +define Device/tplink_eap620-hd-v3 + $(call Device/FitImage) + $(call Device/UbiFit) + DEVICE_VENDOR := TP-Link + DEVICE_MODEL := EAP620 HD v3 + BLOCKSIZE := 128k + PAGESIZE := 2048 + SOC := ipq6018 + DEVICE_PACKAGES := ipq-wifi-tplink_eap620-hd-v3 + IMAGES += web-ui-factory.bin + IMAGE/web-ui-factory.bin := append-ubi | tplink-image-2022 + TPLINK_SUPPORT_STRING := SupportList:\r\n \ + EAP620 HD(TP-Link|UN|AX1800-D):3.0\r\n \ + EAP620 HD(TP-Link|CA|AX1800-D):3.0\r\n \ + EAP620 HD(TP-Link|JP|AX1800-D):3.0\r\n \ + EAP620 HD(TP-Link|EG|AX1800-D):3.0\r\n + +endef +TARGET_DEVICES += tplink_eap620-hd-v3 + define Device/yuncore_fap650 $(call Device/FitImage) $(call Device/UbiFit) diff --git a/target/linux/qualcommax/ipq60xx/base-files/etc/board.d/02_network b/target/linux/qualcommax/ipq60xx/base-files/etc/board.d/02_network index f8a43d84f4..ceafb4027b 100644 --- a/target/linux/qualcommax/ipq60xx/base-files/etc/board.d/02_network +++ b/target/linux/qualcommax/ipq60xx/base-files/etc/board.d/02_network @@ -40,6 +40,7 @@ ipq60xx_setup_interfaces() netgear,wax610y|\ tplink,eap610-outdoor|\ tplink,eap623od-hd-v1|\ + tplink,eap620-hd-v3|\ tplink,eap625-outdoor-hd-v1) ucidef_set_interface_lan "lan" "dhcp" ;; @@ -66,6 +67,7 @@ ipq60xx_setup_macs() label_mac=$lan_mac ;; tplink,eap610-outdoor|\ + tplink,eap620-hd-v3|\ tplink,eap623od-hd-v1|\ tplink,eap625-outdoor-hd-v1) label_mac=$(get_mac_binary /tmp/factory_data/default-mac 0) diff --git a/target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11k-caldata b/target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11k-caldata index a8ac052dc4..5ed4f5966f 100644 --- a/target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11k-caldata +++ b/target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11k-caldata @@ -70,6 +70,13 @@ case "$FIRMWARE" in ath11k_patch_mac $(macaddr_add $label_mac 1) 0 ath11k_set_macflag ;; + tplink,eap620-hd-v3) + caldata_from_file "/tmp/factory_data/radio" 0 0x20000 + label_mac=$(get_mac_binary /tmp/factory_data/default-mac 0) + ath11k_patch_mac $label_mac 1 + ath11k_patch_mac $(macaddr_add $label_mac 1) 0 + ath11k_set_macflag + ;; yuncore,fap650) caldata_extract "0:art" 0x1000 0x20000 ;; diff --git a/target/linux/qualcommax/ipq60xx/base-files/lib/preinit/09_mount_factory_data b/target/linux/qualcommax/ipq60xx/base-files/lib/preinit/09_mount_factory_data index a37050f407..09ca32f08c 100644 --- a/target/linux/qualcommax/ipq60xx/base-files/lib/preinit/09_mount_factory_data +++ b/target/linux/qualcommax/ipq60xx/base-files/lib/preinit/09_mount_factory_data @@ -8,6 +8,7 @@ preinit_mount_factory_data() { case $(board_name) in tplink,eap610-outdoor|\ + tplink,eap620-hd-v3|\ tplink,eap623od-hd-v1|\ tplink,eap625-outdoor-hd-v1) mtd_path=$(find_mtd_chardev "factory_data") diff --git a/target/linux/qualcommax/ipq60xx/base-files/lib/upgrade/platform.sh b/target/linux/qualcommax/ipq60xx/base-files/lib/upgrade/platform.sh index d230c32e2e..a120f538b5 100644 --- a/target/linux/qualcommax/ipq60xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/qualcommax/ipq60xx/base-files/lib/upgrade/platform.sh @@ -202,6 +202,7 @@ platform_do_upgrade() { nand_do_upgrade "$1" ;; tplink,eap610-outdoor|\ + tplink,eap620-hd-v3|\ tplink,eap623od-hd-v1|\ tplink,eap625-outdoor-hd-v1) tplink_do_upgrade "$1"