Currently, Ath12k driver only supports WiFi devices that are based on PCI bus. New Ath12k device IPQ5332 is based on AHB bus. Hence, add Ath12k AHB support for IPQ5332. IPQ5332 is IEEE802.11be 2 GHz 2x2 Wifi device. To bring-up IPQ5332 device: - Add hardware parameters for IPQ5332. - CE and CMEM register address space in IPQ5332 is separate from WCSS register space. Hence, add logic to remap CE and CMEM register address. - Add support for fixed QMI firmware memory for IPQ5332. - Add ath12k AHB support. Depends-On: [v6] Add multipd remoteproc support Link: https://lore.kernel.org/all/20231110091939.3025413-1-quic_mmanikan@xxxxxxxxxxx/ Note that the dependency patch series - [v6,00/11] Add multipd remoteproc support, has the below issues: 1. The remoteproc maintainers don't want any userpd code in remoteproc. As a result of this, the approach being taken by this series may change. 2. Due to latest changes in linux-next/ath ToT, [v6,00/11] Add multipd remoteproc support is unable to compile. Below compilation fixes are required in the file "drivers/remoteproc/qcom_q6v5_mpd.c": - Add "#include <linux/of_platform.h>" - Change "static int q6_wcss_remove" to "static void q6_wcss_remove" and remove "return 0". 3. The IPQ5332 firmware patch is pointing to ath11k firmware path, but IPQ5332 is Ath12k chipset. In patch [v6,10/11] arm64: dts: qcom: ipq5332: Add nodes to bringup multipd, firmware path should be: ath12k/IPQ5332/hw1.0/ Balamurugan S (9): wifi: ath12k: add ath12k_hw_params for IPQ5332 wifi: ath12k: add ath12k_hw_hal_params for IPQ5332 wifi: ath12k: avoid m3 firmware download in AHB device IPQ5332 wifi: ath12k: add new CMEM read-write ath12k_hif_ops wifi: ath12k: remap CMEM register space for IPQ5332 wifi: ath12k: fix incorrect CE addresses wifi: ath12k: remap CE register space for IPQ5332 wifi: ath12k: add AHB driver support for IPQ5332 wifi: ath12k: enable ath12k AHB support P Praneesh (4): wifi: ath12k: refactor ath12k_hw_regs structure wifi: ath12k: add ath12k_hw_regs for IPQ5332 wifi: ath12k: add ath12k_hw_ring_mask for IPQ5332 wifi: ath12k: add CE configurations for IPQ5332 Raj Kumar Bhagat (5): dt-bindings: net: wireless: describe the ath12k AHB module arm64: dts: qcom: add wifi node for IPQ5332 based RDP441 wifi: ath12k: add support for fixed QMI firmware memory wifi: ath12k: add support to read board_id from device-tree wifi: ath12k: convert tasklet to BH workqueue for CE interrupts .../net/wireless/qcom,ath12k-ahb.yaml | 325 ++++++ arch/arm64/boot/dts/qcom/ipq5332-rdp441.dts | 56 +- arch/arm64/boot/dts/qcom/ipq5332.dtsi | 131 ++- drivers/net/wireless/ath/ath12k/Kconfig | 6 + drivers/net/wireless/ath/ath12k/Makefile | 1 + drivers/net/wireless/ath/ath12k/ahb.c | 1028 +++++++++++++++++ drivers/net/wireless/ath/ath12k/ahb.h | 50 + drivers/net/wireless/ath/ath12k/ce.c | 90 ++ drivers/net/wireless/ath/ath12k/ce.h | 18 +- drivers/net/wireless/ath/ath12k/core.c | 35 +- drivers/net/wireless/ath/ath12k/core.h | 19 +- drivers/net/wireless/ath/ath12k/dp.c | 10 +- drivers/net/wireless/ath/ath12k/hal.c | 82 +- drivers/net/wireless/ath/ath12k/hal.h | 69 +- drivers/net/wireless/ath/ath12k/hif.h | 13 + drivers/net/wireless/ath/ath12k/hw.c | 478 ++++++++ drivers/net/wireless/ath/ath12k/hw.h | 14 + drivers/net/wireless/ath/ath12k/pci.c | 28 +- drivers/net/wireless/ath/ath12k/pci.h | 2 + drivers/net/wireless/ath/ath12k/qmi.c | 188 ++- drivers/net/wireless/ath/ath12k/qmi.h | 1 + 21 files changed, 2525 insertions(+), 119 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/wireless/qcom,ath12k-ahb.yaml create mode 100644 drivers/net/wireless/ath/ath12k/ahb.c create mode 100644 drivers/net/wireless/ath/ath12k/ahb.h base-commit: 1462e8e1c93ecb96b5820ec28f7cbbb8a5aeb732 prerequisite-patch-id: 0c516eb530339e5398eaaf8ece5e72dfac419f93 prerequisite-patch-id: bfefff55ba6a3fdf8930b3b4d48746bc9cd5a0a0 prerequisite-patch-id: 9e143f9cd10add55d2fd52bac0e538b904d6dee5 prerequisite-patch-id: cb987ee3dbc145fee1135307badb61c0e21f0ccd prerequisite-patch-id: 14b990ceacec658b924c78d91ce33b45f70ca112 prerequisite-patch-id: b1f6cc6ae066f3e10b5626ff0af3267449d613d3 prerequisite-patch-id: 06bbcd43424f4ee2f116372855665f7dc932158d prerequisite-patch-id: 73a4b0a87c136697874bb120a3bf0a7ec6e54a32 prerequisite-patch-id: 6cab6a588aa5479276228e60693ea6d472e2f844 prerequisite-patch-id: df1119a31756da103188d8880077ce0bcec3d352 prerequisite-patch-id: cf47f0a66dbe5f11d50ce2e62682b0f48dfc4e76 -- 2.34.1