wifi: ath12k: add Ath12k AHB driver support for IPQ5332
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected] change-id 20250321-ath12k-ahb-e5d8a4dfc742Versions newest first · linked by author and title
- v12 Latest13 patches 3 repliesApplied
- v1113 patches 13 repliesSuperseded
- v1013 patches 0 repliesSuperseded
Earlier versions · 9
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v9 | 13 patches | 3 replies | Superseded | |
| v8 | 13 patches | 12 replies | Superseded | |
| v7 | 13 patches | 3 replies | Superseded | |
| v6 | 13 patches | 3 replies | Superseded | |
| v5 | 13 patches | 21 replies | Superseded | |
| v4 | 13 patches | 13 replies | Superseded | |
| v3 | 13 patches | 2 replies | Superseded | |
| v2 | 22 patches | 37 replies | Superseded | |
| v1 RFC | 18 patches | 10 replies | Superseded |
Changes in v12 from the cover letter
- Fixed warning reported by kernel test robot
"cast to smaller integer type 'enum ath12k_hw_rev' from 'const void *'"
- Removed tag "Reviewed-by: Vasanthakumar Thiagarajan", in the updated
patch [08/13] wifi: ath12k: add AHB driver support for IPQ5332
- Link to v11: https://lore.kernel.org/all/[email protected]/
Patches in v12 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | dt-bindings: net: wireless: describe the ath12k AHB module for IPQ5332Documentation/ | +315 | 0 replies | |
| 2/13 | wifi: ath12k: fix incorrect CE addressesdrivers/ | +3 | 0 replies | |
| 3/13 | wifi: ath12k: refactor ath12k_hw_regs structuredrivers/ drivers/ drivers/ +1 more | +114 | 0 replies | |
| 4/13 | wifi: ath12k: add ath12k_hw_params for IPQ5332drivers/ drivers/ drivers/ +2 more | +511 | 0 replies | |
| 5/13 | wifi: ath12k: avoid m3 firmware download in AHB device IPQ5332drivers/ drivers/ drivers/ | +27 | 0 replies | |
| 6/13 | wifi: ath12k: Add hw_params to remap CE register space for IPQ5332drivers/ drivers/ drivers/ +2 more | +53 | 0 replies | |
| 7/13 | wifi: ath12k: add support for fixed QMI firmware memorydrivers/ drivers/ drivers/ +2 more | +200 | 1 reply | |
| 8/13 | wifi: ath12k: add AHB driver support for IPQ5332drivers/ drivers/ drivers/ +2 more | +823 | 1 reply | |
| 9/13 | wifi: ath12k: Power up root PDdrivers/ drivers/ | +151 | 0 replies | |
| 10/13 | wifi: ath12k: Register various userPD interrupts and save SMEM entriesdrivers/ drivers/ drivers/ | +94 | 0 replies | |
| 11/13 | wifi: ath12k: Power up userPDdrivers/ drivers/ | +137 | 0 replies | |
| 12/13 | wifi: ath12k: Power down userPDdrivers/ | +30 | 0 replies | |
| 13/13 | wifi: ath12k: enable ath12k AHB supportdrivers/ drivers/ drivers/ +3 more | +57 | 0 replies |
Reviews trailers per patch
All 13 patches have a Reviewed-by or Acked-by.
| Patch | Krzysztof Kozlowski | Vasanthakumar Thiagarajan |
|---|---|---|
| 1/13 | R-b | |
| 2/13 | R-b | |
| 3/13 | R-b | |
| 4/13 | R-b | |
| 5/13 | R-b | |
| 6/13 | R-b | |
| 7/13 | R-b | |
| 8/13 | R-b | |
| 9/13 | R-b | |
| 10/13 | R-b | |
| 11/13 | R-b | |
| 12/13 | R-b | |
| 13/13 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH ath-next v12 00/13] wifi: ath12k: add Ath12k AHB driver support for IPQ5332
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 register address space in IPQ5332 is separate from WCSS register space. Hence, add logic to remap CE register address.
- Add support for fixed QMI firmware memory for IPQ5332.
- Support userPD handling for WCSS secure PIL driver to enable ath12k AHB support.
NOTE:
The working upstream DTS changes for this series have been posted as a separate series.
[PATCH v2] arm64: dts: qcom: add wifi node for IPQ5332 based RDP441
---
Changes in v12:
- Fixed warning reported by kernel test robot
"cast to smaller integer type 'enum ath12k_hw_rev' from 'const void *'"
- Removed tag "Reviewed-by: Vasanthakumar Thiagarajan", in the updated
patch [08/13] wifi: ath12k: add AHB driver support for IPQ5332
- Link to v11: https://lore.kernel.org/all/[email protected]/
Changes in v11:
- Updated Kconfig for ATH12k AHB.
- Replaced the API devm_ioremap_wc() with devm_memremap to fix ath12k-check
warning: "warning: cast removes address space '__iomem' of expression"
- Rebased on latest ToT.
- Removed tag "Reviewed-by: Vasanthakumar Thiagarajan", in the updated
patch [11/13] wifi: ath12k: Power up userPD
- Link to v10: https://lore.kernel.org/all/[email protected]/
Changes in v10:
- Removed config dependency of QCOM_Q6V5_WCSS_SEC for Ath12k AHB.
- Removed tag "Reviewed-by: Vasanthakumar Thiagarajan", in the updated
patch [13/13] wifi: ath12k: enable ath12k AHB support
- Link to v9: https://lore.kernel.org/all/[email protected]/
Changes in v9:
- Fixed memory leak in ath12k_ahb_probe().
- Removed tag "Reviewed-by: Vasanthakumar Thiagarajan", in the updated
patch [08/13] wifi: ath12k: add AHB driver support for IPQ5332
- Link to v8: https://lore.kernel.org/all/[email protected]/
Changes in v8:
- Fixed format specifiers warning reported by kernel test robot in patch [PATCH v6 07/13] wifi: ath12k: add support for fixed QMI firmware memory
- Link to v7: https://lore.kernel.org/all/[email protected]/
Changes in v7:
- DT binding: DT property 'qcom,ath12k-calibration-variant' renamed to 'qcom,calibration-variant'.
- Link to v6: https://lore.kernel.org/all/[email protected]/
Changes in v6:
- DT binding: binding doc renamed from qcom,ath12k-ahb.yaml to qcom,ipq5332-wifi.yaml.
- DT binding: rephrased memory-region description.
- DT binding: dropped description for memory-region-names.
- DT binding: updated maintainers in binding doc.
- The API ath12k_core_get_reserved_mem_by_name() has been simplified and renamed to ath12k_core_get_reserved_mem()
- Removed unnecessary NULL check in devm_clk_get() error handling.
- Dropped all ath12k_ahb_clock_* wrappers for single clock.
- Removed shutdown callback for the ath12k AHB driver.
- Reference count leak handled for rproc and rproc phandle.
- Link to v5: https://lore.kernel.org/all/[email protected]/
Changes in v5:
- DT binding: Added memory-region-names property to address undocumented ABIs.
- DT binding: Added four complete items to memory-region, required by
ath12k firmware.
- All calls to of_find_node_by_name() are removed. Introduced helper function ath12k_core_get_reserved_mem_by_name() to get the reserved
memory by name.
- Removed unused include headers.
- Removed error prints for impossible scenarios.
- Used proper phandle API of_parse_phandle() to read qcom,rproc.
- Used dev_err_probe() API for logging errors wherever applicable.
- Changed hardware parameter needs_m3_fw to enum ath12k_m3_fw_loaders.
- Changed hardware parameter bdf_addr to bdf_addr_offset to store the offset for BDF memory from the q6-memory as base.
- Link to v4: https://lore.kernel.org/all/[email protected]/
Changes in v4:
- Missed to include some review list in v3. Hence sending v4 with
all review list as per - scripts/get_maintainers.pl
- Link to v3: https://lore.kernel.org/all/[email protected]/
Changes in v3:
- DT binding: clock name changed from gcc_xo_clk to xo.
- DT binding: Upper constraint added for memory-region property.
- DT binding: The description for "qcom,rproc" phandle updated to represent the hardware aspect.
- DT binding: Added property qcom,ath12k-calibration-variant.
- Squashed patch[2/22] to patch[8/22] of v2 into a single patch.
- Patch reordering is done.
- The hardware parameter "m3_fw_support" renamed to "needs_m3_fw".
- CMEM remap and CMEM register handling are dropped. CMEM registers are accessed within WCSS register space (ab->mem).
- The devm APIs are used for interrupts handling.
- Logic updated in ath12k_ahb_map_service_to_pipe().
- Dependency path series from other subsystem are dropped.
- Link to v2: https://lore.kernel.org/all/[email protected]/
Changes in v2:
- "qcom,board_id" property is dropped. This is not the direct dependency
for Ath12k AHB support, hence it can be taken up separately.
- "qcom,bdf-addr" property is dropped in device-tree and moved to ath12k driver.
- Currently we have only one compatible enum (qcom,ipq5332-wifi), hence conditional if() check for defining the binding is removed.
- "reserved-memory" node is dropped from example DTS.
- "status" property is dropped in wifi node of example DTS.
- Integrated the “Support userPD handling for WCSS secure PIL driver”
patch series with the Ath12k AHB bring-up patch.
- Removed the RFC tag as all dependency patch series are now compilable.
- Link to v1: https://lore.kernel.org/all/[email protected]/
---
Balamurugan S (6):
wifi: ath12k: fix incorrect CE addresses
wifi: ath12k: add ath12k_hw_params for IPQ5332
wifi: ath12k: avoid m3 firmware download in AHB device IPQ5332
wifi: ath12k: Add hw_params to remap CE register space for IPQ5332
wifi: ath12k: add AHB driver support for IPQ5332
wifi: ath12k: enable ath12k AHB support
P Praneesh (1):
wifi: ath12k: refactor ath12k_hw_regs structure
Raj Kumar Bhagat (2):
dt-bindings: net: wireless: describe the ath12k AHB module for IPQ5332
wifi: ath12k: add support for fixed QMI firmware memory
Sowmiya Sree Elavalagan (4):
wifi: ath12k: Power up root PD
wifi: ath12k: Register various userPD interrupts and save SMEM entries
wifi: ath12k: Power up userPD
wifi: ath12k: Power down userPD
.../bindings/net/wireless/qcom,ipq5332-wifi.yaml | 315 ++++++ drivers/net/wireless/ath/ath12k/Kconfig | 8 + drivers/net/wireless/ath/ath12k/Makefile | 1 + drivers/net/wireless/ath/ath12k/ahb.c | 1156 ++++++++++++++++++++ drivers/net/wireless/ath/ath12k/ahb.h | 80 ++ drivers/net/wireless/ath/ath12k/ce.c | 92 +- drivers/net/wireless/ath/ath12k/ce.h | 18 +- drivers/net/wireless/ath/ath12k/core.c | 60 +- drivers/net/wireless/ath/ath12k/core.h | 14 +- drivers/net/wireless/ath/ath12k/hal.c | 84 +- drivers/net/wireless/ath/ath12k/hal.h | 68 +- drivers/net/wireless/ath/ath12k/hw.c | 479 +++++++- drivers/net/wireless/ath/ath12k/hw.h | 22 +- drivers/net/wireless/ath/ath12k/pci.c | 10 +- drivers/net/wireless/ath/ath12k/pci.h | 4 +- drivers/net/wireless/ath/ath12k/qmi.c | 210 +++- drivers/net/wireless/ath/ath12k/qmi.h | 3 +- 17 files changed, 2507 insertions(+), 117 deletions(-)
---
base-commit: b6f473c96421b8b451a8df8ccb620bcd71d4b3f4
change-id: 20250321-ath12k-ahb-e5d8a4dfc742