Message ID | 20230308082424.140224-1-manivannan.sadhasivam@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp212118wrd; Wed, 8 Mar 2023 00:41:30 -0800 (PST) X-Google-Smtp-Source: AK7set/6W28mei017Lihm8yL0D2ZZkCpZ1PRb+JQRif2yUrIkkJjlcwUnjjTzSqlrjYZo0djxAgl X-Received: by 2002:a17:906:5206:b0:8b1:7fa:6588 with SMTP id g6-20020a170906520600b008b107fa6588mr16211950ejm.12.1678264890690; Wed, 08 Mar 2023 00:41:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678264890; cv=none; d=google.com; s=arc-20160816; b=0g5CNuv8jLr0xCAgtDEKGaDUwcRqI7Nm+AHwc6nKtb8Ysy039mNsaZjpwlu1ziNxvn H4zXqhH6KY20gAuOWEnrDPH/jbYaT+4wk44lF+MW2bmWqzTr2OPApuvOpUUZcIPtLqS6 1+AQxNiPY+a75T68eRLLAu5P03I3GNXeee/BHoihssZGDR67NE4Ju+5+xET0Q16KQ5LC BOAxCA9SmmE0eN1IFmqZnHyAB4JdWMragQ74ScF4oEYoVRQE+73D3Rm1ICo5SLvRJ+ic x7jD8vkDvWS/PyH1hFhpYFjUzBYbSKDPUMkwWYZwpl9IxgEtDV0BZuuFwBfBB8NlcUqb qjcQ== 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=osj1SKW6kZ1T93ajN37jlKR7h51v+fvQYy/hH2nwHc8=; b=hbjZcYg6ohDZBIGSSC3FOuCEZ9sGKzOF5zRtv1ZnHTsKOJ2ixuTJmvpoCN1HwlePg+ F/2KyBcTTJBASKUlAvsUgphxk4RzA+/c26KIvv5iFNsrXU1hr20Zp5YNIOVIl2ohhkzG ix9vvsWHItm42O3RYiwImAqohJETVp+h0UGfqNqypjl6oWA3iAIUwGTezUIgFqQDRv9E 081nvcCgZDtUoq5pnpmKIUYVSSCmZjj/fAYdBrA21PyZ2631FsbevvGvRL19mElbP6H0 2nWQmEJaZ2kmtzICMx/w3tNMH7IoLEwaUm1nIWNUn8b4Se7bP9LSSRmM1TjoKDUzMwX0 1Jpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VewtrsHj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a1709063b8f00b008d4aec3e62bsi365494ejf.233.2023.03.08.00.41.07; Wed, 08 Mar 2023 00:41:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@linaro.org header.s=google header.b=VewtrsHj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229627AbjCHIZN (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Wed, 8 Mar 2023 03:25:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbjCHIYx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Mar 2023 03:24:53 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FECD57D28 for <linux-kernel@vger.kernel.org>; Wed, 8 Mar 2023 00:24:32 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id x34so15881569pjj.0 for <linux-kernel@vger.kernel.org>; Wed, 08 Mar 2023 00:24:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678263872; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=osj1SKW6kZ1T93ajN37jlKR7h51v+fvQYy/hH2nwHc8=; b=VewtrsHjftHPXayimBaLVs/TwnICwIS7DwMkz3opd126q+y3jtCz4OhpG8/hHPqtEJ fH+moNKb5ymPsiGbzq8UAbk0n6vxE44/qghRFfCpi8/0ONfqmfXMj0x/2vC4RHiXu6Cj DJEuz44r4xTDmHlNVk81wcT8/A1QvUUYcQ25ZTCzboEfE4SQ5a25Pj3x5lhvY6b00cwJ nU+XPXPPMJJukvCQBdNav1ZSeWICeXBI/13uVYGwmmPvaad/iZJIQAYSYDfzPjYyMBaQ 3MQOcY+x/JIplYc4d62V2dgo0I00g+OQZZRa8ks0UurBKwYAdpxGesAba+qGWdqi4okh CWxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678263872; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=osj1SKW6kZ1T93ajN37jlKR7h51v+fvQYy/hH2nwHc8=; b=66/cvaGPUaWZFE1SWqlgzrSeLZvw32lac1jERcxJdFIfuRbpZj8MvA72L7RQN6PpEL cyVTtxwJsS8MsyisK7h5RPVEvRaduQKVMgRWwf/9lo3bVj2rk6vpEE70SJMq7j1cLdjh zg0+XctZeZxHA14H7xrNXeZlfyeh5GjoNzMfZ+90G80klRwN4jKnKs+nnaaw7C0kp0G6 jv6jqJOazR5dGtAO+FdtqajnQXST47Z1U5I0zrsC0AX0S7NfJmWu/P6X2sv3xMuGSY86 09WPUyk2Vi1gRS/PwA2x10jRx3pHm23NQmWjM5ZIyuVSgZH2CgrXfEQxJtFdCYsm6QQM qp3w== X-Gm-Message-State: AO0yUKVMKFz8BLCDB52d61Odzd7imTJ3AXeBuLJNCSPiLhHd68S6Ssl9 vtBy//l2OCAFLCK3dAekPdm4 X-Received: by 2002:a17:902:ab8e:b0:19d:1a9c:34dd with SMTP id f14-20020a170902ab8e00b0019d1a9c34ddmr13479566plr.17.1678263871779; Wed, 08 Mar 2023 00:24:31 -0800 (PST) Received: from localhost.localdomain ([59.97.52.140]) by smtp.gmail.com with ESMTPSA id s10-20020a170902ea0a00b0019aaab3f9d7sm9448086plg.113.2023.03.08.00.24.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 00:24:31 -0800 (PST) From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> To: andersson@kernel.org, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org Cc: konrad.dybcio@linaro.org, bhelgaas@google.com, kishon@kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Subject: [PATCH v3 00/13] Add PCIe RC support to Qcom SDX55 SoC Date: Wed, 8 Mar 2023 13:54:11 +0530 Message-Id: <20230308082424.140224-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759788286056548054?= X-GMAIL-MSGID: =?utf-8?q?1759788286056548054?= |
Series |
Add PCIe RC support to Qcom SDX55 SoC
|
|
Message
Manivannan Sadhasivam
March 8, 2023, 8:24 a.m. UTC
Hi, This series adds PCIe RC support to the Qcom SDX55 SoC. The PCIe controller in SDX55 can act as both Root Complex and Endpoint but only one mode at a time i.e., the mode cannot be switched during runtime. This series has been tested on Thundercomm T55 board having QCA6390 WLAN chipset connected to the PCIe controller. For powering up the WLAN chipset, an out-of-tree patch has been used since we do not have a proper driver in mainline to handle the power supplies. NOTE: Even with this series, I couldn't get network connectivity using QCA6390. But that's due to ath11k regression for which I've filed a bug report: https://bugzilla.kernel.org/show_bug.cgi?id=217070 Merging strategy ---------------- PCI and binding patches through PCI tree PHY patches through PHY tree Devicetree patches through Qcom tree Thanks, Mani Changes in v3: * Removed "iommus" property from binding and dtsi file * Fixed the PCIe I/O range * Rebased on top of v6.3-rc1 * Collected reviews Changes in v2: * Added patch to move status property down * Added patch to list property values vertically * Addressed comments from Konrad * Collected review tags * Fixed review tag for dts patch Manivannan Sadhasivam (13): dt-bindings: PCI: qcom: Update maintainers entry dt-bindings: PCI: qcom: Add iommu-map properties dt-bindings: PCI: qcom: Add SDX55 SoC dt-bindings: PCI: qcom-ep: Fix the unit address used in example ARM: dts: qcom: sdx55: Fix the unit address of PCIe EP node ARM: dts: qcom: sdx55: Rename pcie0_{phy/lane} to pcie_{phy/lane} ARM: dts: qcom: sdx55: Add support for PCIe RC controller ARM: dts: qcom: sdx55: List the property values vertically ARM: dts: qcom: sdx55-t55: Enable PCIe RC support ARM: dts: qcom: sdx55-t55: Move "status" property down phy: qcom-qmp-pcie: Split out EP related init sequence for SDX55 phy: qcom-qmp-pcie: Add RC init sequence for SDX55 PCI: qcom: Add support for SDX55 SoC .../devicetree/bindings/pci/qcom,pcie-ep.yaml | 2 +- .../devicetree/bindings/pci/qcom,pcie.yaml | 32 +++- arch/arm/boot/dts/qcom-sdx55-t55.dts | 50 ++++- .../boot/dts/qcom-sdx55-telit-fn980-tlb.dts | 2 +- arch/arm/boot/dts/qcom-sdx55.dtsi | 178 +++++++++++++----- drivers/pci/controller/dwc/pcie-qcom.c | 4 +- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 91 +++++++-- .../qualcomm/phy-qcom-qmp-pcs-pcie-v4_20.h | 2 + 8 files changed, 297 insertions(+), 64 deletions(-)
Comments
On Wed, 8 Mar 2023 13:54:11 +0530, Manivannan Sadhasivam wrote: > This series adds PCIe RC support to the Qcom SDX55 SoC. The PCIe controller > in SDX55 can act as both Root Complex and Endpoint but only one mode at a > time i.e., the mode cannot be switched during runtime. > > This series has been tested on Thundercomm T55 board having QCA6390 WLAN > chipset connected to the PCIe controller. For powering up the WLAN chipset, > an out-of-tree patch has been used since we do not have a proper driver in > mainline to handle the power supplies. > > [...] Applied, thanks! [05/13] ARM: dts: qcom: sdx55: Fix the unit address of PCIe EP node commit: 3b76b736cd9933ff88764ffec01cbd859c1475e7 [06/13] ARM: dts: qcom: sdx55: Rename pcie0_{phy/lane} to pcie_{phy/lane} commit: c9f30e3dd92ba779c9cb8bb694ed7a8e2c9f0bb3 [07/13] ARM: dts: qcom: sdx55: Add support for PCIe RC controller commit: 2b20437e67a4b74b990d19d3dbf55388e941f30f [08/13] ARM: dts: qcom: sdx55: List the property values vertically commit: f9364a7ced5e6e36904c359cafe23cbf03645884 [09/13] ARM: dts: qcom: sdx55-t55: Enable PCIe RC support commit: 046392390884c9dead1d3703fa60dff97f22857a [10/13] ARM: dts: qcom: sdx55-t55: Move "status" property down commit: 43743bfa36daed8f31860ad889a1413f239bb2f2 Best regards,
On Wed, 08 Mar 2023 13:54:11 +0530, Manivannan Sadhasivam wrote: > This series adds PCIe RC support to the Qcom SDX55 SoC. The PCIe controller > in SDX55 can act as both Root Complex and Endpoint but only one mode at a > time i.e., the mode cannot be switched during runtime. > > This series has been tested on Thundercomm T55 board having QCA6390 WLAN > chipset connected to the PCIe controller. For powering up the WLAN chipset, > an out-of-tree patch has been used since we do not have a proper driver in > mainline to handle the power supplies. > > [...] Applied to controller/qcom, thanks! [01/13] dt-bindings: PCI: qcom: Update maintainers entry https://git.kernel.org/pci/pci/c/2be28836b281 [02/13] dt-bindings: PCI: qcom: Add iommu-map properties https://git.kernel.org/pci/pci/c/3f5ec65040b1 [03/13] dt-bindings: PCI: qcom: Add SDX55 SoC https://git.kernel.org/pci/pci/c/e8ce1671127d [04/13] dt-bindings: PCI: qcom-ep: Fix the unit address used in example https://git.kernel.org/pci/pci/c/f6e7fbbe5bca [13/13] PCI: qcom: Add support for SDX55 SoC https://git.kernel.org/pci/pci/c/490789b12332 Thanks, Lorenzo