Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2183884rwl; Fri, 6 Jan 2023 03:07:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXuGw2kIiNFcjK0iVnI/gAqMB/hmYOQVnEDx4XxCMs4OBjuv4IntIP1+/DmTFvhrRShS6uvl X-Received: by 2002:a05:6a20:a027:b0:b4:9a94:af57 with SMTP id p39-20020a056a20a02700b000b49a94af57mr25789130pzj.0.1673003231346; Fri, 06 Jan 2023 03:07:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673003231; cv=none; d=google.com; s=arc-20160816; b=QQyh1YsdxjCAPBcDB9aDpBHIMzDqmwwK/QxKkeGedXBweSWNNXGYE9gyVNfRNOnNaa M0BGy0nbeEIv4z6AWIiFPBbLVdouLQ6XPzFfU63eoAKdpoLOcyL3wLZ5GgDIVnPL2k3d taSdSgBgqfy+l56MeXAJAqFsc0Whjy+50hZ7nXUFH85cpMjkWR462vccwiqVmXDYlwam Q/81Fe2QU7Lbsj+dOtJLBktxBM4vFmo3UPmqNKvIjJ8uA3IZLoUJ9axN9t/hUfFVvDXB iJh6Pm/VnuTxzBt/CHePyziR6i3vDjTMsECWltRQRLTV94yI4yyt5zfHH/jaCa3ECJ0U wYXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=czBvPkOaTKzYlrTp7htNRXp6MXEfNLCtJhGdaz9BVkI=; b=zorjwNf7D4A7C4EWNmV3WOmPII3ZJhaQKd/LuV1X5kp4nbOCMbpLv5/YW4q6/vf1ep YlxlXbctotQJWBgK2H/FHrQhshiEasDMmoCDwQX2bhVjHrTcp9SVh8diJv1JwkWUQ3tr vFxPVgXPr7Ckz19wUp6nEf8BD4C/leXAQ9pB7oAM/9icw7VXCuIOMSRrttMh0am5xCVe NtW47P+uGT5mIbkfE09DRL+bNM4YRzi1+tkfipZ1onXQFOytHpsfZQ6EDAHQNjdC0bPG hXvNwH5s00lU1x19Zi+JwbAsSeSLvS09R0pHnPdDLrJ9nm5VJr4BdQEIydy/3S92xVIE /BWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=hqYIyiL5; dkim=pass header.i=@tq-group.com header.s=key1 header.b=XQUigQXx; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k198-20020a633dcf000000b0049b36d5a275si1148155pga.400.2023.01.06.03.07.02; Fri, 06 Jan 2023 03:07:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=hqYIyiL5; dkim=pass header.i=@tq-group.com header.s=key1 header.b=XQUigQXx; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232478AbjAFK7h (ORCPT + 66 others); Fri, 6 Jan 2023 05:59:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232216AbjAFK7M (ORCPT ); Fri, 6 Jan 2023 05:59:12 -0500 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 944566CFF2; Fri, 6 Jan 2023 02:59:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1673002751; x=1704538751; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=czBvPkOaTKzYlrTp7htNRXp6MXEfNLCtJhGdaz9BVkI=; b=hqYIyiL5AZDuIt9pQBU8/A35HSGNkJZ7QxnVFleO85m0b7VwHAuam/Ka 3/zpqoU+hlNaFgRkv9XeMsWGvvDLtgA72GRxReKxn9RiYj5oZGw5hKluk kZ+Q2EdX84k5Ff0YXONIzUPtHm/wiy+ZuJcWNDigR+6jEcykdG/bXesn6 bIjHM85yB/mKkfxEM5AF30wZDjv8uAxUHEaICPallU0OYl1f0JuUENKIM jA+RfR8LY4A0u/qRQHTv8tgoU1IX4BaWG2SGSIyZ4beCBqpV6/zU+f1BC fRlC9RNv+dTCjJm6i55cwag3m7/woQI5MBhvWy/6P2rabB/J/RO6tJNLI w==; X-IronPort-AV: E=Sophos;i="5.96,305,1665439200"; d="scan'208";a="28272863" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 06 Jan 2023 11:59:05 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Fri, 06 Jan 2023 11:59:05 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Fri, 06 Jan 2023 11:59:05 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1673002745; x=1704538745; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=czBvPkOaTKzYlrTp7htNRXp6MXEfNLCtJhGdaz9BVkI=; b=XQUigQXxv5ynyoISP8af8eDnLner2u0CQtzUDJhYOK9/g/WW5WHGE1A8 N7cVpnVEkQANhC2ufX+wY/890u/y4Bx8A1qhNyNqXLaYoDrMf6Ju/WdzH sztBWbClcYRVVn/+iDjSeQpy+FYmcNbL1e6bXSUO9busdLSX23VBVz7y+ CHjf6dspRyHtSSXQcx5qU/xP2rjxEnoruUmsQMhUa/LdHsy5UHHM5RvWN PvWseUu1Ev09wrFJQreDFs793AiXF37sePP4G7EAaaAfrWJD7pGXsbntG xb3q3wy3hOil0vWhcKeicFWEy3gltW6H7tUmNb2FcWZ/f6i0yOf+PDBsc g==; X-IronPort-AV: E=Sophos;i="5.96,305,1665439200"; d="scan'208";a="28272861" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 06 Jan 2023 11:59:05 +0100 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 9FC58280056; Fri, 6 Jan 2023 11:59:05 +0100 (CET) From: Alexander Stein To: Kalle Valo , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Alexander Stein , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [RFC PATCH 2/2] ath10k: Add support for QCA9377 hw1.1 usb Date: Fri, 6 Jan 2023 11:58:53 +0100 Message-Id: <20230106105853.3484381-3-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230106105853.3484381-1-alexander.stein@ew.tq-group.com> References: <20230106105853.3484381-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This adds hw_param for QCA9377 hw1.1 usb device. Signed-off-by: Alexander Stein --- drivers/net/wireless/ath/ath10k/core.c | 28 ++++++++++++++++++++++++++ drivers/net/wireless/ath/ath10k/hw.h | 8 ++++++++ drivers/net/wireless/ath/ath10k/usb.c | 1 + 3 files changed, 37 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index f69dab55fa36..e67f1a852cd1 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -646,6 +646,34 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = { .use_fw_tx_credits = true, .delay_unmap_buffer = false, }, + { + .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_1_PATCH_LOAD_ADDR, + .uart_pin = 19, + .otp_exe_param = 0, + .channel_counters_freq_hz = 88000, + .max_probe_resp_desc_thres = 0, + .cal_data_len = 8124, + .fw = { + .dir = QCA9377_HW_1_1_FW_DIR, + .board = QCA9377_HW_1_1_USB_BOARD_DATA_FILE, + .board_size = QCA9377_BOARD_DATA_SZ, + .board_ext_size = QCA9377_BOARD_EXT_DATA_SZ, + }, + .hw_ops = &qca6174_ops, + .hw_clk = qca6174_clk, + .target_cpu_freq = 176000000, + .decap_align_bytes = 4, + .n_cipher_suites = 8, + .num_peers = TARGET_QCA9377_HL_NUM_PEERS, + .ast_skid_limit = 0x10, + .num_wds_entries = 0x20, + .uart_pin_workaround = true, + .start_once = true, + }, { .id = QCA4019_HW_1_0_DEV_VERSION, .dev_id = 0, diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h index ea3b5c5c6c9b..2e934d74d7cc 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) */ @@ -123,6 +124,13 @@ enum qca9377_chip_id_rev { #define QCA9377_HW_1_0_BOARD_DATA_FILE "board.bin" #define QCA9377_HW_1_0_PATCH_LOAD_ADDR 0x1234 +/* QCA9377 1.1 definitions */ +#define QCA9377_HW_1_1_FW_DIR ATH10K_FW_DIR "/QCA9377/hw1.1" +#define QCA9377_HW_1_1_BOARD_DATA_FILE "board.bin" +#define QCA9377_HW_1_1_SDIO_BOARD_DATA_FILE "board-sdio.bin" +#define QCA9377_HW_1_1_USB_BOARD_DATA_FILE "board-usb.bin" +#define QCA9377_HW_1_1_PATCH_LOAD_ADDR 0x1234 + /* QCA4019 1.0 definitions */ #define QCA4019_HW_1_0_DEV_VERSION 0x01000000 #define QCA4019_HW_1_0_FW_DIR ATH10K_FW_DIR "/QCA4019/hw1.0" diff --git a/drivers/net/wireless/ath/ath10k/usb.c b/drivers/net/wireless/ath/ath10k/usb.c index b0067af685b1..efb949158aa1 100644 --- a/drivers/net/wireless/ath/ath10k/usb.c +++ b/drivers/net/wireless/ath/ath10k/usb.c @@ -1107,6 +1107,7 @@ static int ath10k_usb_pm_resume(struct usb_interface *interface) /* table of devices that work with this driver */ static struct usb_device_id ath10k_usb_ids[] = { {USB_DEVICE(0x13b1, 0x0042)}, /* Linksys WUSB6100M */ + {USB_DEVICE(0x0CF3, 0x9378)}, /* Qualcomm QCA9377-7 */ { /* Terminating entry */ }, }; -- 2.34.1