[openwrt/openwrt] ipq-wifi: add Pakedge WR-1 support

LEDE Commits lede-commits at lists.infradead.org
Wed Sep 7 12:48:51 PDT 2022


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/47306d47ef1873f11cbfb2cd24f4e12a83a31301

commit 47306d47ef1873f11cbfb2cd24f4e12a83a31301
Author: Tomasz Maciej Nowak <tmn505 at gmail.com>
AuthorDate: Tue Sep 6 15:32:34 2022 +0200

    ipq-wifi: add Pakedge WR-1 support
    
    Calibration variants:
    Pakedge-WR-1            ETSI, FCC and IC-2.4GHz
    Pakedge-WR-1-ACMA       ACMA
    Pakedge-WR-1-IC         IC-5GHz
    Pakedge-WR-1-SRRC       SRRC
    
    Signed-off-by: Tomasz Maciej Nowak <tmn505 at gmail.com>
---
 package/firmware/ipq-wifi/Makefile                      |   2 ++
 package/firmware/ipq-wifi/board-pakedge_wr-1.qca4019    | Bin 0 -> 85076 bytes
 .../files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts       |   4 ++++
 target/linux/ipq40xx/image/generic.mk                   |   1 +
 4 files changed, 7 insertions(+)

diff --git a/package/firmware/ipq-wifi/Makefile b/package/firmware/ipq-wifi/Makefile
index 44d6e2a086..7b683ef0a2 100644
--- a/package/firmware/ipq-wifi/Makefile
+++ b/package/firmware/ipq-wifi/Makefile
@@ -34,6 +34,7 @@ ALLWIFIBOARDS:= \
 	glinet_gl-s1300 \
 	linksys_ea8300 \
 	p2w_r619ac \
+	pakedge_wr-1 \
 	qxwlan_e2600ac-c1 \
 	qxwlan_e2600ac-c2 \
 	teltonika_rutx
@@ -106,6 +107,7 @@ $(eval $(call generate-ipq-wifi-package,glinet_gl-ap1300,GL.iNet GL-AP1300))
 $(eval $(call generate-ipq-wifi-package,glinet_gl-s1300,GL.iNet GL-S1300))
 $(eval $(call generate-ipq-wifi-package,linksys_ea8300,Linksys EA8300))
 $(eval $(call generate-ipq-wifi-package,p2w_r619ac,P&W R619AC))
+$(eval $(call generate-ipq-wifi-package,pakedge_wr-1,Pakedge WR-1))
 $(eval $(call generate-ipq-wifi-package,qxwlan_e2600ac-c1,Qxwlan E2600AC C1))
 $(eval $(call generate-ipq-wifi-package,qxwlan_e2600ac-c2,Qxwlan E2600AC C2))
 $(eval $(call generate-ipq-wifi-package,teltonika_rutx,Teltonika RUTX))
diff --git a/package/firmware/ipq-wifi/board-pakedge_wr-1.qca4019 b/package/firmware/ipq-wifi/board-pakedge_wr-1.qca4019
new file mode 100644
index 0000000000..967a452580
Binary files /dev/null and b/package/firmware/ipq-wifi/board-pakedge_wr-1.qca4019 differ
diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts
index 26a8b013aa..be2f619b39 100644
--- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts
@@ -257,8 +257,12 @@
 
 &wifi0 {
 	status = "okay";
+
+	qcom,ath10k-calibration-variant = "Pakedge-WR-1";
 };
 
 &wifi1 {
 	status = "okay";
+
+	qcom,ath10k-calibration-variant = "Pakedge-WR-1";
 };
diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk
index 5652bf9414..98a40349b2 100644
--- a/target/linux/ipq40xx/image/generic.mk
+++ b/target/linux/ipq40xx/image/generic.mk
@@ -899,6 +899,7 @@ define Device/pakedge_wr-1
 	DEVICE_VENDOR := Pakedge
 	DEVICE_MODEL := WR-1
 	DEVICE_DTS_CONFIG := config at ap.dk01.1-c1
+	DEVICE_PACKAGES := ipq-wifi-pakedge_wr-1
 	SOC := qcom-ipq4018
 	BLOCKSIZE := 64k
 	IMAGE_SIZE := 31232k




More information about the lede-commits mailing list