Message ID | 20250326-ipq5018-pcie-v7-0-e1828fef06c9@outlook.com |
---|---|
Headers | show
Return-Path: <linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3EC51C36012 for <linux-phy@archiver.kernel.org>; Wed, 26 Mar 2025 08:18:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id :Date:Subject:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=qphOrJ1sd4KbmbZ6i7v6n9T/BbGzK9vHt1i32kWs8FA=; b=dHXQcp63nQ6j5j PW67RG6SN3attGP8TNX9nGl8Qe4BeD1FgXZVPJKO2w8U2ORAuogP8GhyHll31xwxGbqrDhCNbVQXS NbI8B8dGYpJwYdb6CdMlKJHqyxfyMOPw6jp9MZYSnbnRFoRiuP+rPPl6pBDWqGMgi+2NKDHq0JyQ4 rM327Uxxk89QDxQDWpLqd1shcmgLlQ+1XK9Y0cH8sL2GzCWg3ZeDilrq3e1THX0gof7nJDtm002Ec X2o05z9vNcgHcUMSaRAsUSU1K7+MQ+5ti4AaJU2X/K14BX6baDc/qVvkoytZKx0aB+ta5CDqfH9sv 78Hs2SfsKgIVRZnAO71g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1txLxk-00000007u7l-3rkp; Wed, 26 Mar 2025 08:18:12 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1txLqr-00000007so6-0xXM for linux-phy@lists.infradead.org; Wed, 26 Mar 2025 08:11:07 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id F0FCCA40D1B; Wed, 26 Mar 2025 08:05:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 8DC34C4CEE2; Wed, 26 Mar 2025 08:11:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742976663; bh=Na7jEYdslPCYkUpJBoxusypjZQ5gijCuIbwMSR8fY50=; h=From:Subject:Date:To:Cc:Reply-To:From; b=e+ChHUPMS2pu2mACzAfjC6f/Uv1stEsb4AfVx3S/JUOs8met5PDPZeXQwJnLNCFXJ Y7kIfPv6tuHDlHQoZ7rXKLs2odGKQ/D5BCGbk24JuvxDSg4tsu+R6NhP16e/f29Tjw gcqv8G8nUtw6A1KJM8MXkWh6zWwiEqEflBwVLcvJfR4RRlEyOKkg/o+GoyTdNHajRY Y3RfFSHROXZ6fC8lSmSzzX7suWIqHWZ8X9M051xlkUr38acDEACAFh/VXGDycLFajp yrgKmGO2hiIj1WV/NYtur1l9GxmUCsXTF+AyVck9t7vPESL5HAEVjU47K0Sut0qcRc 4ShVzh9m5s+JQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80EB0C36008; Wed, 26 Mar 2025 08:11:03 +0000 (UTC) Subject: [PATCH v7 0/6] Enable IPQ5018 PCI support Date: Wed, 26 Mar 2025 12:10:54 +0400 Message-Id: <20250326-ipq5018-pcie-v7-0-e1828fef06c9@outlook.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAI6242cC/32Ry07DMBREf6XyGkd+xLFdIZSWwA4JwRIhdOMHt SCPOmkEqvrvOOmqArHzXPmM74yPaHAxuAGtV0cU3RSG0LVJyKsVMjto3x0ONmnECBOEM4pDvxe EKtyb4DC1eQ61J455gRLSR+fD12L38pr0LgxjF78X94nOU1Q9y8cnqh+2Sil+zwRXm42sSC7vK L+lhG11VTFWXlzLWmj6aKnO+tjZrDuMn133kZmuQfMrk1ic/15xEphgAMcMAPU5VeUvvPgPLxJ eS1sIDbJgRFzip3Po6PaHVN14To4aNwywVLdeXZ99qaSEEKYzpShTBaY4EeZtgggWyvkcWjN73 sw91jA4nEQTxvQXVjoJwnMBhhPpc1EbXWvP05ClTMQW2hfGpG1OPzrYooPQAQAA X-Change-ID: 20250321-ipq5018-pcie-1d44abf0e2f5 To: Vinod Koul <vkoul@kernel.org>, Kishon Vijay Abraham I <kishon@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Nitheesh Sekar <quic_nsekar@quicinc.com>, Varadarajan Narayanan <quic_varada@quicinc.com>, Bjorn Helgaas <bhelgaas@google.com>, Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= <kw@linux.com>, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konradybcio@kernel.org>, Praveenkumar I <quic_ipkumar@quicinc.com> Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, George Moussalem <george.moussalem@outlook.com>, 20250317100029.881286-1-quic_varada@quicinc.com, 20250317100029.881286-2-quic_varada@quicinc.com, Sricharan Ramabadhran <quic_srichara@quicinc.com>, Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1742976660; l=5673; i=george.moussalem@outlook.com; s=20250321; h=from:subject:message-id; bh=Na7jEYdslPCYkUpJBoxusypjZQ5gijCuIbwMSR8fY50=; b=WzD26guUijM8mavL4SByuKdXHFbWjYgiLgxCy+41pdRnRQ5a+UewE/GEOaaqMAjPK+pc00K6R ILSJKaYYB0BDC4qvCIZ3x+OKiI/2z1y6u7wWiNni+mArE6BdGyCvoLD X-Developer-Key: i=george.moussalem@outlook.com; a=ed25519; pk=/PuRTSI9iYiHwcc6Nrde8qF4ZDhJBlUgpHdhsIjnqIk= X-Endpoint-Received: by B4 Relay for george.moussalem@outlook.com/20250321 with auth_id=364 X-Original-From: George Moussalem <george.moussalem@outlook.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250326_011105_436978_53FC3764 X-CRM114-Status: GOOD ( 12.34 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list <linux-phy.lists.infradead.org> List-Unsubscribe: <https://lists.infradead.org/mailman/options/linux-phy>, <mailto:linux-phy-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-phy/> List-Post: <mailto:linux-phy@lists.infradead.org> List-Help: <mailto:linux-phy-request@lists.infradead.org?subject=help> List-Subscribe: <https://lists.infradead.org/mailman/listinfo/linux-phy>, <mailto:linux-phy-request@lists.infradead.org?subject=subscribe> Reply-To: george.moussalem@outlook.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" <linux-phy-bounces@lists.infradead.org> Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: George Moussalem <george.moussalem@outlook.com> |
Series |
Enable IPQ5018 PCI support
|
expand
|
This patch series adds the relevant phy and controller DT configurations for enabling PCI gen2 support on IPQ5018. IPQ5018 has two phys and two controllers, one dual-lane and one single-lane. Last patch series (v3) submitted dates back to August 30, 2024. As I've worked to add IPQ5018 platform support in OpenWrt, I'm continuing the efforts to add Linux kernel support. Signed-off-by: George Moussalem <george.moussalem@outlook.com> --- Changes in v7: - Updated commit log and added comment in dtsi to explain why max-link-speed is set: IPQ5018 PCIe controllers supports gen3, yet the PHYs support gen2 only. - Carried over Ack and RB-tags - Added dependency with b4 prep on below series which adds the MHI register space (patch 1) which fixes issues reported by Rob's bot: Depends-on: <20250317100029.881286-1-quic_varada@quicinc.com> - Link to v6: https://lore.kernel.org/r/20250321-ipq5018-pcie-v6-0-b7d659a76205@outlook.com Changes in v6: - Fixed issues reported by 'make dt_bindings_check' as per Rob's bot - Removed Krzysztof's Ack-tag on: dt-bindings: phy: qcom: uniphy-pcie: Add ipq5018 compatible - Link to v5: https://lore.kernel.org/r/20250321-ipq5018-pcie-v5-0-aae2caa1f418@outlook.com Changes in v5: - Re-ordered reg and reg-names in dt-bindings and dts to align with other IPQ SoCs - Corrected nr of interrupts in dt-bindings: phy: qcom: Add IPQ5018 SoC - Corrected ranges property of pcie controller nodes - Removed newlines between cells properties in pcie phy nodes - Modified dt bindings to add descriptions and separate conditions for ipq5018 and ipq5332 as they have different nr of clocks and resets As such, also removed Krzysztof's RB tag for validation - Ran dtbs_check and fixed: interrupt-map property in pcie nodes: /soc@0/pcie@80000000:interrupt-map: Cell 13 is not a phandle(0) /soc@0/pcie@a0000000:interrupt-map: Cell 13 is not a phandle(0) - Added missing gpio header file to ipq5018-rdp432-c2.dts - Added MHI register requirement to bindings and to PCIe nodes as per: Depends-on: <20250317100029.881286-2-quic_varada@quicinc.com> - Link to v4: https://lore.kernel.org/all/DS7PR19MB8883F2538AA7D047E13C102B9DD22@DS7PR19MB8883.namprd19.prod.outlook.com/ Changes in v4: - removed dependency as the following have been applied: dt-bindings: phy: qcom,uniphy-pcie: Document PCIe uniphy phy: qcom: Introduce PCIe UNIPHY 28LP driver dt-bindings: PCI: qcom: Document the IPQ5332 PCIe controller Link: https://lore.kernel.org/all/20250313080600.1719505-1-quic_varada@quicinc.com/ - added Mani's RB tag to: PCI: qcom: Add support for IPQ5018 - Removed power-domains property requirement in dt-bindings for IPQ5018 and removed Krzysztof's RB tag from: dt-bindings: PCI: qcom: Add IPQ5018 SoC - fixed author chain and retained Sricharan Ramabadhran in SoB tags and kept Nitheesh Sekar as the original author - Removed comments as per Konrad's comment in: arm64: dts: qcom: ipq5018: Add PCIe related nodes - Link to v3 submitted by Sricharan Ramabadhran: Link: https://lore.kernel.org/all/20240830081132.4016860-1-quic_srichara@quicinc.com/ - Link to v3, incorrectly versioned: Link: https://lore.kernel.org/all/DS7PR19MB8883BC190797BECAA78EC50F9DCB2@DS7PR19MB8883.namprd19.prod.outlook.com/ Changes in v3 (incorrectly versioned): - Depends on Link: https://patchwork.kernel.org/project/linux-arm-msm/cover/20250220094251.230936-1-quic_varada@quicinc.com/ - Added 8 MSI SPI and 1 global interrupts (Thanks Mani for confirming) - Added hw revision (internal/synopsys) and nr of lanes in patch 4 commit msg - Sorted reg addresses and moved PCIe nodes accordingly - Moved to GIC based interrupts - Added rootport node in controller nodes - Tested on Linksys devices (MX5500/SPNMX56) - Link to v2: https://lore.kernel.org/all/20240827045757.1101194-1-quic_srichara com/ Changes in v3: - Added Reviewed-by tag for patch#1. - Fixed dev_err_probe usage in patch#3. - Added pinctrl/wak pins for pcie1 in patch#6. Changes in v2: - Fixed all review comments from Krzysztof, Robert Marko, Dmitry Baryshkov, Manivannan Sadhasivam, Konrad Dybcio. - Updated the respective patches for their changes. - Link to v1: https://lore.kernel.org/lkml/32389b66-48f3-8ee8-e2f1-1613feed3cc7@gmail.com/T/ --- Nitheesh Sekar (6): dt-bindings: phy: qcom: uniphy-pcie: Add ipq5018 compatible phy: qualcomm: qcom-uniphy-pcie 28LP add support for IPQ5018 dt-bindings: PCI: qcom: Add IPQ5018 SoC PCI: qcom: Add support for IPQ5018 arm64: dts: qcom: ipq5018: Add PCIe related nodes arm64: dts: qcom: ipq5018: Enable PCIe .../devicetree/bindings/pci/qcom,pcie.yaml | 50 +++++ .../bindings/phy/qcom,ipq5332-uniphy-pcie-phy.yaml | 49 +++- arch/arm64/boot/dts/qcom/ipq5018-rdp432-c2.dts | 40 ++++ arch/arm64/boot/dts/qcom/ipq5018.dtsi | 246 ++++++++++++++++++++- drivers/pci/controller/dwc/pcie-qcom.c | 1 + drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c | 45 ++++ 6 files changed, 421 insertions(+), 10 deletions(-) --- base-commit: 7d7e7a5f35ac307f45bc9b9f37a52a1f0d69f6cc change-id: 20250321-ipq5018-pcie-1d44abf0e2f5 prerequisite-message-id: <20250317100029.881286-1-quic_varada@quicinc.com> prerequisite-patch-id: 210bd857b2a3ce208c6c66389d2845616dafae60 prerequisite-patch-id: 27a1070861e75cf1dcb03f1e440618bd77b32043 prerequisite-patch-id: 4dfad74bedd5e7b3b628ead0b23baed7de8b88f7 prerequisite-patch-id: 79ded164c537cfe947447c920602570626eddb3d Best regards,