From patchwork Thu Sep 5 12:03:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomas Paukrt X-Patchwork-Id: 825890 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 7693D1991B0 for ; Thu, 5 Sep 2024 12:05:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=77.75.78.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725537931; cv=none; b=GS3NZpai56i1M0guOSzSwoVwWu2Mcc2lsn71YzwJq0yoNQ9Urh/5PcwpPLP9HbLxNQKfEjMRunR7dxLPDyIy0qmzNlwopSpNE3yKmdW7Kr/Wuq7JFYmVZ1H0kBZUZsHblXZX+T2tL6naepKmDoH1Z8jstHpaIJ5DCaHkJe8ZIs4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725537931; c=relaxed/simple; bh=OT6rQ4ajoJhbQLwuHd0zXwykg9wjWRnN6xyDbWW7zUI=; h=From:To:Cc:Subject:Date:Message-Id:Mime-Version:Content-Type; b=Q5op7frAOA4jdDMHfGsJ/TaM8CjR3p48vjamNoaSqHz3U7L0HCMxJOg3ilkicbVpDknNysuo5z5CMD99TjyV7CxmBUU/PybTLlEAsm+3OeDdp/bi26dguavLajQq9PCD/vWuDYQT/0/hN1idAnKXos7SjCqFQsvFNUSroLXfWdI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=email.cz; spf=pass smtp.mailfrom=email.cz; dkim=pass (2048-bit key) header.d=email.cz header.i=@email.cz header.b=ANa+UOff; arc=none smtp.client-ip=77.75.78.34 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="ANa+UOff" Received: from email.seznam.cz by smtpc-mxe-7df5484c66-k4bzx (smtpc-mxe-7df5484c66-k4bzx [2a02:598:64:8a00::1000:ad2]) id 76a754988853e6327629da80; Thu, 05 Sep 2024 14:05:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=email.cz; s=szn20221014; t=1725537925; bh=2Gu2NyeDCYj06j54dTeLW+R2cmUPtkfhps4/Gm0KUr8=; h=Received:From:To:Cc:Subject:Date:Message-Id:Mime-Version:X-Mailer: Content-Type:Content-Transfer-Encoding; b=ANa+UOffxyhHplIrYttAPAHBrHS7j9wentL5+8ZbGZ0PytDdLHDdq0HeIi8ISFNYo HNcLDqgtDKP2LriifMVaxqIJ/96THV5RMab7e1X/B1E0Lr7Urn0xVZBHGYL0HcbO0J wl6kgpcNJbhcyNm3cC4l7xLIKprpHzHjyqyw6PiAQ1ryyDJX06WlKB8ShhxUqVtoaO LTDjPw6XESAD9NaEra6qjKyFzfpCdFQ3YNCUoo1wBE0PrdyviI1X8EJcruRLdvulLv gZLhVaCQH7JsGKPhEQ8ssgLfpAffrYrHfpkyWvtdHCpnIpwxs1o+i9guOsdrnNC9VD qdPKUnkvNcoaA== Received: from 215-143.ktuo.cz (215-143.ktuo.cz [82.144.143.215]) by email.seznam.cz (szn-UNKNOWN-unknown) with HTTP; Thu, 05 Sep 2024 14:03:35 +0200 (CEST) From: "Tomas Paukrt" To: Cc: Subject: [PATCH] wifi: ath10k: add hw_params for Atheros QCA9377-7 Date: Thu, 05 Sep 2024 14:03:35 +0200 (CEST) Message-Id: <5b0.ZbQt.6HOR0C2EfXi.1csPuN@seznam.cz> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (szn-mime-2.1.61) X-Mailer: szn-UNKNOWN-unknown Add hw_params for modules based on Atheros QCA9377-7 chipset like 8devices BLUE bean or SparkLAN WUBQ-159ACN. Tested-on: QCA9377 hw1.1 USB 0.0.0.111 Signed-off-by: Tomas Paukrt --- drivers/net/wireless/ath/ath10k/core.c | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index b329428..e2ababf 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -629,6 +629,48 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = { }, { .id = QCA9377_HW_1_1_DEV_VERSION, + .dev_id = 0x9378, + .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_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, + .mcast_frame_registration = false, + }, + { + .id = QCA9377_HW_1_1_DEV_VERSION, .dev_id = QCA9377_1_0_DEVICE_ID, .bus = ATH10K_BUS_SDIO, .name = "qca9377 hw1.1 sdio",