]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: ath12k: Add ath12k_hw_params for IPQ5424
authorSaravanakumar Duraisamy <quic_saradura@quicinc.com>
Tue, 7 Apr 2026 05:26:29 +0000 (10:56 +0530)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Wed, 8 Apr 2026 00:28:21 +0000 (17:28 -0700)
Add ath12k_hw_params for the ath12k AHB-based WiFi 7 device IPQ5424.
The WiFi device IPQ5424 is similar to IPQ5332. Most of the hardware
parameters like hw_ops, wmi_init, ring_mask, etc., are the same between
IPQ5424 and IPQ5332, hence use these same parameters for IPQ5424.
Some parameters are specific to IPQ5424; initially set these to
0 or NULL, and populate them in subsequent patches.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1
Tested-on: IPQ5332 hw1.0 AHB WLAN.WBE.1.6-01275-QCAHKSWPL_SILICONZ-1
Tested-on: IPQ5424 hw1.0 AHB WLAN.WBE.1.6-01275-QCAHKSWPL_SILICONZ-1

Signed-off-by: Saravanakumar Duraisamy <quic_saradura@quicinc.com>
Signed-off-by: Raj Kumar Bhagat <raj.bhagat@oss.qualcomm.com>
Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Reviewed-by: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
Link: https://patch.msgid.link/20260407-ath12k-ipq5424-v5-2-8e96aa660ec4@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/core.h
drivers/net/wireless/ath/ath12k/wifi7/hw.c

index 46cef973db6facbc85821eec98b2ac4122772e1f..8be435535a4e8b411168b3d8aa6e1c5aad2254a6 100644 (file)
@@ -157,6 +157,7 @@ enum ath12k_hw_rev {
        ATH12K_HW_WCN7850_HW20,
        ATH12K_HW_IPQ5332_HW10,
        ATH12K_HW_QCC2072_HW10,
+       ATH12K_HW_IPQ5424_HW10,
 };
 
 enum ath12k_firmware_mode {
index ec6dba96640bb511ead20eb25a9895e36efff7f2..2b5d1f7e9e04d7a283c02407d1a59a48efa34ed6 100644 (file)
@@ -753,6 +753,85 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {
 
                .dp_primary_link_only = false,
        },
+       {
+               .name = "ipq5424 hw1.0",
+               .hw_rev = ATH12K_HW_IPQ5424_HW10,
+               .fw = {
+                       .dir = "IPQ5424/hw1.0",
+                       .board_size = 256 * 1024,
+                       .cal_offset = 128 * 1024,
+                       .m3_loader = ath12k_m3_fw_loader_remoteproc,
+                       .download_aux_ucode = false,
+               },
+               .max_radios = 1,
+               .single_pdev_only = false,
+               .qmi_service_ins_id = ATH12K_QMI_WLFW_SERVICE_INS_ID_V01_IPQ5332,
+               .internal_sleep_clock = false,
+
+               .hw_ops = &qcn9274_ops,
+               .ring_mask = &ath12k_wifi7_hw_ring_mask_ipq5332,
+
+               .host_ce_config = ath12k_wifi7_host_ce_config_ipq5332,
+               .ce_count = 12,
+               .target_ce_config = ath12k_wifi7_target_ce_config_wlan_ipq5332,
+               .target_ce_count = 12,
+               .svc_to_ce_map =
+                       ath12k_wifi7_target_service_to_ce_map_wlan_ipq5332,
+               .svc_to_ce_map_len = 18,
+
+               .rxdma1_enable = true,
+               .num_rxdma_per_pdev = 1,
+               .num_rxdma_dst_ring = 0,
+               .rx_mac_buf_ring = false,
+               .vdev_start_delay = false,
+
+               .interface_modes = BIT(NL80211_IFTYPE_STATION) |
+                                  BIT(NL80211_IFTYPE_AP) |
+                                  BIT(NL80211_IFTYPE_MESH_POINT),
+               .supports_monitor = true,
+
+               .idle_ps = false,
+               .download_calib = true,
+               .supports_suspend = false,
+               .tcl_ring_retry = true,
+               .reoq_lut_support = false,
+               .supports_shadow_regs = false,
+
+               .num_tcl_banks = 48,
+               .max_tx_ring = 4,
+
+               .mhi_config = NULL,
+
+               .wmi_init = &ath12k_wifi7_wmi_init_qcn9274,
+
+               .qmi_cnss_feature_bitmap = BIT(CNSS_QDSS_CFG_MISS_V01),
+
+               .rfkill_pin = 0,
+               .rfkill_cfg = 0,
+               .rfkill_on_level = 0,
+
+               .rddm_size = 0,
+
+               .def_num_link = 0,
+               .max_mlo_peer = 256,
+
+               .otp_board_id_register = 0,
+
+               .supports_sta_ps = false,
+
+               .acpi_guid = NULL,
+               .supports_dynamic_smps_6ghz = false,
+               .iova_mask = 0,
+               .supports_aspm = false,
+
+               .ce_ie_addr = NULL,
+               .ce_remap = NULL,
+               .bdf_addr_offset = 0x940000,
+
+               .current_cc_support = false,
+
+               .dp_primary_link_only = true,
+       },
 };
 
 /* Note: called under rcu_read_lock() */