Re: [PATCH ath-next 15/16] wifi: ath11k: define userPDs for QCN6122

From: Julius Bairaktaris

Date: Sun Nov 29 2026 - 16:17:45 EST


On Wed, Sep 23, 2026 at 04:05:21PM +0400, George Moussalem wrote:
> On IPQ5018/QCN6122 boards, the default mapping is as follows:
[ ... ]
> Root PD +---> User PD 2 ----> QCN6122 5G/6G Radio on PCIe rail 1
[ ... ]
> +-> User PD 3 ----> QCN6122 5G/6G Radio on PCIe rail 0

This is only the firmware's fallback, with reset GPIO 18 for userPD 2
and GPIO 15 for userPD 3, used when the host writes no userPD boot info
(SMEM item 507) before the rootPD starts. Nothing in this series writes
it, so a QCN6122 wired differently cannot be described by any userPD
choice. In OpenWrt's qualcommax DTS, CMCC RAX3000Q, Mercusys MR80X v2
and TP-Link RE700X have it on PCIe rail 1 with reset GPIO 27, and the
RE700X DTS notes that without the record its QCN6122 userPD stalls in
the firmware watchdog.

> + case ATH11K_HW_QCN6122_HW10:
> + if (userpd_id != ATH11K_AHB_USERPD_ID_2 &&
> + userpd_id != ATH11K_AHB_USERPD_ID_3)
> + return -EINVAL;

OpenWrt writes the version 1 record from qcom_q6v5_mpd's ->load() op
out of a boot-args array (your "remoteproc: qcom_q6v5_mpd: add support
for passing v1 bootargs"). Here the rootPD is booted on the first wifi
probe (ath11k_ahb_configure_rproc(), patch 3) and the record covers all
userPDs, so a fix needs each QCN6122's PCIe rail and reset GPIO in the
binding and one writer of the record before that rproc_boot().

Julius