Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3213126iob; Sun, 1 May 2022 09:50:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9AHJm61G5nYVuhE7pCPUxYuZDp+qNoTNwEk44yRmexNdYrYbClynCS8rHf0DsJlmw8P8v X-Received: by 2002:a2e:9bc5:0:b0:24f:b2c:6dc0 with SMTP id w5-20020a2e9bc5000000b0024f0b2c6dc0mr5685473ljj.280.1651423826831; Sun, 01 May 2022 09:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651423826; cv=none; d=google.com; s=arc-20160816; b=is9dt4qM/jw7/NxrAt263ZKYAz55LE2iHrAKQzX5q9NdbZ2Dxx2AtHom3NaIXHk8a0 s18bBR0iKzFh7REDH0UrTRQBEvJevrMGV2jLRlNQPuN0rZWL76KEjKxZpcZ5c9qr+L8M NKjY1rRHr6GtnW+JFfI0j4kulyuYGaYl2ehggvyAgySKgYwHBj4wNOO9up5POO4KxWLk +OyLlIcL5/QBDqrZQKXU7xdV/bBEcpygHJC8A8WwuAfTUiB6nB99nBvmddjy9Hm45uPa zV9HyzoJhkMlh9Sk4IZ9M/saPuJVLq/onZdwMR248+dXXGUN9cNxF6wjQmeEL19LKwdM 14lg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=4ARWYirKS/s1hqBNHV3+54sgJgHq1tuTOtfcH88au1k=; b=M8QgPD76Kl3+VoMn4QTafgA4SBdpvNF2D+igVbuLSh99JhhEduClTyd0tJ5k7WnBYp HkqzkwqRf+Vpa9SeNXgcyQOIa6crbCVNgB2MrZYYR+FaFWSg3Gwdu5VBlF0GFqkZjho5 PsCDZ34JtA/VR81jBRkWekIhiBB84JFkLi+PVzPekUYoZKrkeYuepfv2FaINJ91cvzkX n4+W0x5rq/1xdRwHNWdyqYZG7u2FvAWW7SjipwUFs1e8WFQEhT4nbOgxsR4CZdqgiAV4 ftcdLPG0ATMellJ7htmnD8sakyIG3PZm+69RhHByBwsBE+X9NQwBsRWeT4Tv26zRCLfC TSpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="Lw/GU2y9"; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f12-20020a0565123b0c00b004720b9c074bsi14903388lfv.550.2022.05.01.09.50.01; Sun, 01 May 2022 09:50:26 -0700 (PDT) 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=@quicinc.com header.s=qcdkim header.b="Lw/GU2y9"; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379420AbiD2RJe (ORCPT + 68 others); Fri, 29 Apr 2022 13:09:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379409AbiD2RJ3 (ORCPT ); Fri, 29 Apr 2022 13:09:29 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DCC181EF0; Fri, 29 Apr 2022 10:06:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651251969; x=1682787969; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=4ARWYirKS/s1hqBNHV3+54sgJgHq1tuTOtfcH88au1k=; b=Lw/GU2y9v0quz1dDM+iT1Ed5f3Wza7RWuS4mHrClLkh4iXFTObJWmoOC FldsZxjskjmeja5VzPzvGA51DuEVvCfIXMf7OjF2i3pJsUDsQlDXoFjTR mapzIATajOgV3FNQL+NH8b5aDefYifY/8egdI+DncJYxEIuh8kiAw9BBY I=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 29 Apr 2022 10:06:07 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2022 10:06:07 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 29 Apr 2022 10:05:27 -0700 Received: from mpubbise-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 29 Apr 2022 10:05:24 -0700 From: Manikanta Pubbisetty To: CC: , , , , Manikanta Pubbisetty Subject: [PATCH v7 0/9] add support for WCN6750 Date: Fri, 29 Apr 2022 22:34:53 +0530 Message-ID: <20220429170502.20080-1-quic_mpubbise@quicinc.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 WCN6750 is non-DBS 2x2 11AX chipset. Unlike QCA6390/WCN6855 which are DBS (dual band simultaneous) solutions (2 LMACs), WCN6750 has a single LMAC supporting 2G, 5G and 6G bands. It can be operated only on one band at any given point. WCN6750 is a PCIe device. Unlike other supported ATH11K PCIe devices which are directly attached to APSS (Application Processor SubSystem), WCN6750 is not attached to APSS, it is attached to the WPSS (Wireless Processor SubSystem) Q6 processor, the FW which runs on the Q6 processor will enumerate the PCIe device. Since APSS is unaware of such a device, it has to be registered as a platform device(AHB) to the kernel for device probing. Like other AHB devices, remoteproc APIs are used to boot up or shutdown of WCN6750. WCN6750 uses both AHB and PCIe ATH11K APIs for it's operation. It uses AHB APIs for device probe and booting of the remote processor. Once device is booted up, it uses ATH11K PCIe APIs for initialization and register access. Hence, it is referred as hybrid bus device in the rest of this series. Since the chip is enumerated by WPSS Q6, device information like BAR and BAR size is not known to the APSS processor. A new QMI message called device info QMI request will be sent to the target for fetching these details. STA and AP modes are supported; Basic connectivity and ping are verified in both the modes. An important point to note is that though WCN6750 is a PCIe device, it cannot be attached to any other platform except on Qualcomm Snapdragon SoCs due to the aforementioned reasons. Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1 Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1 Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1 Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00192-QCAHKSWPL_SILICONZ-1 Manikanta Pubbisetty (9): dt: bindings: net: add bindings of WCN6750 for ath11k ath11k: Move parameters in bus_params to hw_params ath11k: Add HW params for WCN6750 ath11k: Add register access logic for WCN6750 ath11k: Fetch device information via QMI for WCN6750 ath11k: Add QMI changes for WCN6750 ath11k: HAL changes to support WCN6750 ath11k: Datapath changes to support WCN6750 ath11k: Add support for WCN6750 device --- V7: - Moved bus_params to hw_params (ath11k: Move parameters in bus_params to hw_params) - Removed patch "ath11k: Add bus params for WCN6750" - Minor commit log changes - Rebased on ToT SHAID: cfd3557af835ad2ab2dc8d617ea69aae2067d411 V6: - Initialized the bus_params fields for AHB/PCI devices which were not previously initialized - Commit log changes in the patch "ath11k: Datapath changes to support WCN6750" - Rebased on ToT SHAID: 3637b73b8e805d011202e2bf10947f2d206695d4 V5: - Rebased on ToT SHAID: 01be26cde012478db958d9bde530877c46031e76 - Added Reviewed-by: tag to the DT binding patch V4: - Addressed comments on DT binding (Matthias Kaehlcke ) - Rebased on ToT SHAID: 607c3dc2750382befa0f3f20063943bd058a2bc1 V3: - Patch series with 19 patches is split in 2 patch series, this is the second one - Rebased on ToT SHAID: 7316a74e54318d0cd648242b18ea83cdef6dda96 - Addessed DT binding concerns - PCI common code is moved to ath11k.ko - Added a new HW param for WCN6750 which uses fixed firmware memory, this is needed to differentiate WCN6750 from other ATH11K chipsets - Modified the logic in patch "ath11k: Add support for WCN6750 device" based on the latest DT binding V2: - Rebased on ToT - Addressed comments on DT binding .../bindings/net/wireless/qcom,ath11k.yaml | 361 ++++++++++++------ drivers/net/wireless/ath/ath11k/Makefile | 5 +- drivers/net/wireless/ath/ath11k/ahb.c | 153 +++++++- drivers/net/wireless/ath/ath11k/core.c | 125 +++++- drivers/net/wireless/ath/ath11k/core.h | 14 +- drivers/net/wireless/ath/ath11k/hal.c | 15 +- drivers/net/wireless/ath/ath11k/hal.h | 15 +- drivers/net/wireless/ath/ath11k/hw.c | 166 ++++++++ drivers/net/wireless/ath/ath11k/hw.h | 18 + drivers/net/wireless/ath/ath11k/pci.c | 14 +- drivers/net/wireless/ath/ath11k/pcic.c | 77 ++-- drivers/net/wireless/ath/ath11k/qmi.c | 242 ++++++++++-- drivers/net/wireless/ath/ath11k/qmi.h | 26 +- 13 files changed, 984 insertions(+), 247 deletions(-) -- 2.35.1