From patchwork Tue Jan 2 17:30:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomas Paukrt X-Patchwork-Id: 760153 Received: from mxe.seznam.cz (mxe.seznam.cz [77.75.78.34]) (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 3305F156E0; Tue, 2 Jan 2024 17:31:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=email.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=email.cz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=email.cz header.i=@email.cz header.b="nmZbjt0X" Received: from email.seznam.cz by smtpc-mxe-54579945bb-pxvlm (smtpc-mxe-54579945bb-pxvlm [2a02:598:128:8a00::1000:527]) id 72f428d68c009a7c727aa6ce; Tue, 02 Jan 2024 18:31:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=email.cz; s=szn20221014; t=1704216700; bh=Xx0LeTeIW32q/hCd9KIFcqfXL/LqFY+MNCe/80cec9I=; h=Received:From:To:Subject:Date:Message-Id:Mime-Version:X-Mailer: Content-Type:Content-Transfer-Encoding; b=nmZbjt0XpO4vNUIGqkICThigSStuTvgWxkjB+SIraTiS+BJ7tzrxJ4aYUfcojHS8J Tg0c2J9jP+EJ9VHprk7Zzh2f5HT18Qd68T58R4ApyXsFBi2taJIeFARX/lAzlScXPR GDVCMy4rSDsX5vz3SD31AGyexc4IWDCieGtRD8IKxXrhB/FGRRo2n7vpaxJ7Vsk+Nq 7riL4Y3RCCiGFat7M61I5uUjDpY87tJw5oikArKQFgNAlbYF2P1Pgoycm3hGXTpfv4 WDpCL/KX1yCPax/5BgNEdWm/tAII1vtd/e5gCepdBadV5CrhpcQaawoHtcn88orHkI LTYG0oZvxdcpQ== Received: from 184-143.gtt-net.cz (184-143.gtt-net.cz [82.144.143.184]) by email.seznam.cz (szn-UNKNOWN-unknown) with HTTP; Tue, 02 Jan 2024 18:30:02 +0100 (CET) From: "Tomas Paukrt" To: "Kalle Valo" , "Jeff Johnson" , , , Subject: ath10k: add hw_params for Atheros QCA9377-7 Date: Tue, 02 Jan 2024 18:30:02 +0100 (CET) Message-Id: Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (szn-mime-2.1.33) X-Mailer: szn-UNKNOWN-unknown Add hw_params for modules based on Atheros QCA9377-7 chipset. Signed-off-by: Tomas Paukrt --- drivers/net/wireless/ath/ath10k/core.c | 42 ++++++++++++++++++++++++++++++++++ drivers/net/wireless/ath/ath10k/hw.h | 2 ++ 2 files changed, 44 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index 6cdb225..cb33c93 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -615,6 +615,48 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = { }, { .id = QCA9377_HW_1_1_DEV_VERSION, + .dev_id = QCA9377_1_1_DEVICE_ID, + .bus = ATH10K_BUS_USB, + .name = "qca9377 hw1.1 usb", + .patch_load_addr = QCA9377_HW_1_0_PATCH_LOAD_ADDR, + .uart_pin = 6, + .otp_exe_param = 0, + .channel_counters_freq_hz = 88000, + .max_probe_resp_desc_thres = 0, + .cal_data_len = 8124, + .fw = { + .dir = QCA9377_HW_1_0_FW_DIR, + .board = QCA9377_HW_1_0_BOARD_DATA_FILE_USB, + .board_size = QCA9377_BOARD_DATA_SZ, + .board_ext_size = QCA9377_BOARD_EXT_DATA_SZ, + }, + .rx_desc_ops = &qca988x_rx_desc_ops, + .hw_ops = &qca6174_ops, + .hw_clk = qca6174_clk, + .target_cpu_freq = 176000000, + .decap_align_bytes = 4, + .spectral_bin_discard = 0, + .spectral_bin_offset = 0, + .vht160_mcs_rx_highest = 0, + .vht160_mcs_tx_highest = 0, + .n_cipher_suites = 8, + .ast_skid_limit = 0x10, + .num_wds_entries = 0x20, + .target_64bit = false, + .rx_ring_fill_level = HTT_RX_RING_FILL_LEVEL, + .shadow_reg_support = false, + .rri_on_ddr = false, + .hw_filter_reset_required = true, + .fw_diag_ce_download = false, + .credit_size_workaround = false, + .tx_stats_over_pktlog = false, + .dynamic_sar_support = false, + .hw_restart_disconnect = false, + .use_fw_tx_credits = true, + .delay_unmap_buffer = false, + }, + { + .id = QCA9377_HW_1_1_DEV_VERSION, .dev_id = QCA9377_1_0_DEVICE_ID, .bus = ATH10K_BUS_SDIO, .name = "qca9377 hw1.1 sdio", diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h index 9643031..f5e6f8a 100644 --- a/drivers/net/wireless/ath/ath10k/hw.h +++ b/drivers/net/wireless/ath/ath10k/hw.h @@ -29,6 +29,7 @@ enum ath10k_bus { #define QCA9888_2_0_DEVICE_ID (0x0056) #define QCA9984_1_0_DEVICE_ID (0x0046) #define QCA9377_1_0_DEVICE_ID (0x0042) +#define QCA9377_1_1_DEVICE_ID (0x9378) #define QCA9887_1_0_DEVICE_ID (0x0050) /* QCA988X 1.0 definitions (unsupported) */ @@ -121,6 +122,7 @@ enum qca9377_chip_id_rev { /* QCA9377 1.0 definitions */ #define QCA9377_HW_1_0_FW_DIR ATH10K_FW_DIR "/QCA9377/hw1.0" #define QCA9377_HW_1_0_BOARD_DATA_FILE "board.bin" +#define QCA9377_HW_1_0_BOARD_DATA_FILE_USB "board-usb.bin" #define QCA9377_HW_1_0_PATCH_LOAD_ADDR 0x1234 /* QCA4019 1.0 definitions */