From nobody Tue Feb 10 14:32:24 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C415D2BE7C2; Wed, 29 Oct 2025 14:26:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761748000; cv=none; b=V7wA6Fop0rtfO4PbnqERxq/DrUIDTICwr+7y6VMQ1R9qJx/iughLdC0FoxRJk3YziETOXJeG14wXl34WAoMLadaY05ZhIQZLzU1cn6CFvfWe3n0rx08hnUB+0SdigyI+mlcHjFutqJOekODJhSbp26FTwMDN3dG1ObKK5CvmfgY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761748000; c=relaxed/simple; bh=mItrEmeR9FU3VM2ptXFfKvshAvAcV9+BLLTvG3OGXks=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CHpE7VbFYbTFT1qlGf1jrjUqHAqP9Qhht3LnECbcov1fZU0Oagy7qYxevyvfepnVWkMPqhTuFzSzdr7wEUGTLQgoKCzNHi3shTGmVQsqxJg45Yx+3QcQ+Y7ok6Y+iAaB/U0m6aNbGL0SUwMYJ9EAqCw6qSXqWw1LTlTpPYEXl6A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SJyg0WvW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SJyg0WvW" Received: by smtp.kernel.org (Postfix) with ESMTPS id 71245C116D0; Wed, 29 Oct 2025 14:26:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1761748000; bh=mItrEmeR9FU3VM2ptXFfKvshAvAcV9+BLLTvG3OGXks=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=SJyg0WvWtx67Cjh+ZefA1l69/7T9iwBn9QnmnLTQCZIAyWhsDACzhLsr4I1UIXWEs sxoMEPuvLhY/2tg5QgkBqlNotG9DM9z9YXBu+ccELW/2dNOeGpJMKwcsnHKEZRu2H8 bryuYAfrQv4Hnf+vy6AsPNHehtMuQKO7XjkKIRfAJFQzP9QL7tp9FHRqShtoR+0TzQ f65Rbh2UFhuRKkiJ/57gZwuOJBYSNRD01aLhrv7SVti4MBMpAgMitv9FLq92iu+g0i iIeQKVoA4NaQ8xz1RuxrYUTH4OYcOPBqtSGDZC8gPvNFWqlp6kP74I+EZO8EiQU7X9 CcuBa7zZXyYEg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B2DDCCF9F6; Wed, 29 Oct 2025 14:26:40 +0000 (UTC) From: George Moussalem via B4 Relay Date: Wed, 29 Oct 2025 18:26:23 +0400 Subject: [PATCH 2/6] wifi: ath11k: add hw params for QCN6122 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251029-ath11k-qcn6122-v1-2-58ed68eba333@outlook.com> References: <20251029-ath11k-qcn6122-v1-0-58ed68eba333@outlook.com> In-Reply-To: <20251029-ath11k-qcn6122-v1-0-58ed68eba333@outlook.com> To: Johannes Berg , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jeff Johnson Cc: linux-wireless@vger.kernel.org, devicetree@vger.kernel.org, ath11k@lists.infradead.org, linux-kernel@vger.kernel.org, George Moussalem X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1761747997; l=4833; i=george.moussalem@outlook.com; s=20250321; h=from:subject:message-id; bh=336+JRp6PC1s0koOSi14k/NRUhAY+mOyBfj5s8eLX8o=; b=Y08LUfTlUvGw10fN0S/pS3+157GXIWOr8HGsSX5NmErFynLJxOd4MCO0DqxDIRAMUox5IVfTn +C2CxiOa616CGcViwJTkqWJ69Ikj1KMOdjb7nS90S5gaLrByptYjRKO X-Developer-Key: i=george.moussalem@outlook.com; a=ed25519; pk=/PuRTSI9iYiHwcc6Nrde8qF4ZDhJBlUgpHdhsIjnqIk= X-Endpoint-Received: by B4 Relay for george.moussalem@outlook.com/20250321 with auth_id=364 X-Original-From: George Moussalem Reply-To: george.moussalem@outlook.com From: George Moussalem Add QCN6122 platform support. QCN6122 is a PCIe based solution that is attached to and enumerated by the WPSS (Wireless Processor SubSystem) Q6 processor. Though it is a PCIe device, since it is not attached to APSS processor (Application Processor SubSystem), APSS will be unaware of such a decice so it is registered to the APSS processor as a platform device (AHB). Because of this hybrid nature, it is called as a hybrid bus device. QCN6122 is similar to WCN6750 and follows the same codepath as for WCN6750 though it does not support shadow regs. Signed-off-by: George Moussalem --- drivers/net/wireless/ath/ath11k/core.c | 67 ++++++++++++++++++++++++++++++= ++++ drivers/net/wireless/ath/ath11k/core.h | 1 + drivers/net/wireless/ath/ath11k/qmi.h | 3 +- 3 files changed, 70 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/= ath/ath11k/core.c index 2810752260f2f7eee226f88d5aea7cdabe7e9ed4..401b843402c6cca0e7fdd61e68b= 57fa6d5a6ae7e 100644 --- a/drivers/net/wireless/ath/ath11k/core.c +++ b/drivers/net/wireless/ath/ath11k/core.c @@ -907,6 +907,73 @@ static const struct ath11k_hw_params ath11k_hw_params[= ] =3D { .support_dual_stations =3D true, .pdev_suspend =3D false, }, + { + .hw_rev =3D ATH11K_HW_QCN6122_HW10, + .name =3D "qcn6122 hw1.0", + .fw =3D { + .dir =3D "QCN6122/hw1.0", + .board_size =3D 256 * 1024, + .cal_offset =3D 128 * 1024, + }, + .hal_params =3D &ath11k_hw_hal_params_ipq8074, + .max_radios =3D MAX_RADIOS_5018, + .bdf_addr =3D 0x4D200000, + .hw_ops =3D &ipq5018_ops, + .hal_desc_sz =3D sizeof(struct hal_rx_desc_qcn9074), + .qmi_service_ins_id =3D ATH11K_QMI_WLFW_SERVICE_INS_ID_V01_QCN6122, + .interface_modes =3D BIT(NL80211_IFTYPE_STATION) | + BIT(NL80211_IFTYPE_AP) | + BIT(NL80211_IFTYPE_MESH_POINT), + .spectral =3D { + .fft_sz =3D 2, + .fft_pad_sz =3D 0, + .summary_pad_sz =3D 16, + .fft_hdr_len =3D 24, + .max_fft_bins =3D 1024, + }, + .internal_sleep_clock =3D false, + .regs =3D &wcn6750_regs, + .credit_flow =3D false, + .max_tx_ring =3D 1, + .supports_monitor =3D true, + .supports_shadow_regs =3D false, + .idle_ps =3D false, + .supports_suspend =3D false, + .host_ce_config =3D ath11k_host_ce_config_qcn9074, + .ce_count =3D CE_CNT_5018, + .target_ce_config =3D ath11k_target_ce_config_wlan_ipq5018, + .target_ce_count =3D TARGET_CE_CNT_5018, + .svc_to_ce_map =3D ath11k_target_service_to_ce_map_wlan_ipq5018, + .svc_to_ce_map_len =3D SVC_CE_MAP_LEN_5018, + .single_pdev_only =3D false, + .rxdma1_enable =3D true, + .num_rxdma_per_pdev =3D RXDMA_PER_PDEV_5018, + .rx_mac_buf_ring =3D false, + .vdev_start_delay =3D false, + .htt_peer_map_v2 =3D true, + .coldboot_cal_mm =3D false, + .coldboot_cal_ftm =3D false, + .cbcal_restart_fw =3D true, + .fix_l1ss =3D true, + .alloc_cacheable_memory =3D true, + .m3_fw_support =3D false, + .fixed_bdf_addr =3D true, + .fixed_mem_region =3D true, + .static_window_map =3D true, + .hybrid_bus_type =3D true, + .fw_mem_mode =3D 1, + .supports_sta_ps =3D false, + .dbr_debug_support =3D true, + .bios_sar_capa =3D NULL, + .fixed_fw_mem =3D false, + .support_off_channel_tx =3D false, + .tcl_ring_retry =3D true, + .tx_ring_size =3D DP_TCL_DATA_RING_SIZE, + .smp2p_wow_exit =3D false, + .support_fw_mac_sequence =3D false, + .support_dual_stations =3D false, + .pdev_suspend =3D false, + }, }; =20 static const struct dmi_system_id ath11k_pm_quirk_table[] =3D { diff --git a/drivers/net/wireless/ath/ath11k/core.h b/drivers/net/wireless/= ath/ath11k/core.h index e8780b05ce11e39bdd93dd02d39812be90689b40..afc591f9608f48506bf19851169= 828c519661d72 100644 --- a/drivers/net/wireless/ath/ath11k/core.h +++ b/drivers/net/wireless/ath/ath11k/core.h @@ -152,6 +152,7 @@ enum ath11k_hw_rev { ATH11K_HW_IPQ5018_HW10, ATH11K_HW_QCA2066_HW21, ATH11K_HW_QCA6698AQ_HW21, + ATH11K_HW_QCN6122_HW10, }; =20 enum ath11k_firmware_mode { diff --git a/drivers/net/wireless/ath/ath11k/qmi.h b/drivers/net/wireless/a= th/ath11k/qmi.h index 7968ab122b65dc28a44eca7b34904f55f717f586..f6014b9662dbe5f4cfc6a2af701= 0938cad454267 100644 --- a/drivers/net/wireless/ath/ath11k/qmi.h +++ b/drivers/net/wireless/ath/ath11k/qmi.h @@ -22,10 +22,11 @@ #define ATH11K_QMI_WLFW_SERVICE_INS_ID_V01_IPQ8074 0x02 #define ATH11K_QMI_WLFW_SERVICE_INS_ID_V01_QCN9074 0x07 #define ATH11K_QMI_WLFW_SERVICE_INS_ID_V01_WCN6750 0x03 +#define ATH11K_QMI_WLFW_SERVICE_INS_ID_V01_QCN6122 0x40 #define ATH11K_QMI_WLANFW_MAX_TIMESTAMP_LEN_V01 32 #define ATH11K_QMI_RESP_LEN_MAX 8192 #define ATH11K_QMI_WLANFW_MAX_NUM_MEM_SEG_V01 52 -#define ATH11K_QMI_CALDB_SIZE 0x480000 +#define ATH11K_QMI_CALDB_SIZE 0x500000 #define ATH11K_QMI_BDF_EXT_STR_LENGTH 0x20 #define ATH11K_QMI_FW_MEM_REQ_SEGMENT_CNT 5 =20 --=20 2.51.1