Message ID | 20250425-ipq5018-pcie-v8-0-03ee75c776dc@outlook.com |
---|---|
Headers | show
Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6F60C241CB7; Fri, 25 Apr 2025 12:00:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745582408; cv=none; b=WvbW0F8rG1oPnMsSMkHmxtEZfixbkH1s4dB//1Hz2T8/otBvwRGezGdwzShpPSojrWqJEQgX7prDsdWpg9W9xXp+sLnI8ctvppFQ2gQEb5BJorBLoTKVZqFjuXO1XYVQLg3ax7q+rDGbj5gBF3mPxRWWdRssapn3OSVN1Of+Ge8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745582408; c=relaxed/simple; bh=uQTQNlNruX5nUxouSnDcP4UZDzWwueNa/w7micM+bg0=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=EQ3nWzndfVPEwNwuNBivDO8Ggxc08iPJ+lg8A+3yed+druErxRxUM9icI4wcVnZndndUQ/j0bW3ztSflEpV+0tYIZ6naAs9TpOIXnlXVipxeV7d20MokruxMRAJ3mbDFo1/FG+1keKelc9Fgc7vmzAvcqCoybKWcbmW4+5WCbl0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fymaH+MC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fymaH+MC" Received: by smtp.kernel.org (Postfix) with ESMTPS id DBBC3C4CEEB; Fri, 25 Apr 2025 12:00:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745582407; bh=uQTQNlNruX5nUxouSnDcP4UZDzWwueNa/w7micM+bg0=; h=From:Subject:Date:To:Cc:Reply-To:From; b=fymaH+MCI7bzRsIkK5pnb43yiooPJYicIEVrqEOBpP9Sx4LUj68qGlAk7nfxmjsN9 eggA/rdF5f/jYNhYTEMiD2h8oCiClGTC8Y1q9gUv0qsuYeKZenAIenElrCn9qq0om4 /+gxRJRR4oEpAfF/SaHBz5fUsIpkg7o8aF4utdId93MbnOJnT5fkmFMQJEGkw6u7l0 c77DahVbZiwMFgUdK5AeLFbAKn17PKUf0JagchdG8FgIHI8c08AHiQG4yZUNt5QUc6 oHNLLcNYrvKpsqvLOtPhd8gK17UCu/urIKfLvdLP5tfZhPZktmh+iMRTLbm0QZdMjL DvyaVAx1ADAqw== 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 CEB1EC369D1; Fri, 25 Apr 2025 12:00:07 +0000 (UTC) From: George Moussalem via B4 Relay <devnull+george.moussalem.outlook.com@kernel.org> Subject: [PATCH v8 0/2] Enable IPQ5018 PCI support Date: Fri, 25 Apr 2025 16:00:01 +0400 Message-Id: <20250425-ipq5018-pcie-v8-0-03ee75c776dc@outlook.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: <linux-arm-msm.vger.kernel.org> List-Subscribe: <mailto:linux-arm-msm+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-arm-msm+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAEF5C2gC/32RW0vDMBiG/8rItSlJ2pyGyDard4LopYh8zcEF7 WFpV5ThfzftbpwT7/J+5Hnz8eSAeheD69FycUDRjaEPbZOCulggs4Xm1eFgU0aMME5yRnHodpx QhTsTHKa2KKDyxDHPUUK66Hz4mOuenlPehn5o4+fcPtJpispHef9A9d1GKZXfMp6r9VqWpJA3N L+mhG10WTK2OrmWNVB30VKddbG1Wbsf3tv2LTNtjaZXRj43/73iyDHBAI4ZAOoLqlZnuPgPFwm vpBVcgxSM8HNc/sTFL1wm3FHFlHeeCKNP8a+js+h2+2R+OIpDtet7mM0vF5fHXiopIYTpTCnKl MAUJ8K8jBDBwmo6h8ZMnVfTN1TQO5xCHYblQlrpJHCfczA5kb7gldGV9nkasqSEWKG9MCZt8/U N/5MdUg8CAAA= 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 R <quic_srichara@quicinc.com>, Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>, Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1745582405; l=5612; i=george.moussalem@outlook.com; s=20250321; h=from:subject:message-id; bh=uQTQNlNruX5nUxouSnDcP4UZDzWwueNa/w7micM+bg0=; b=xGZhmB5bHUwBXALw3X4pNt0M88JMyagWENBO8UtqAdfBBooyTTgblB+BXJaFIGax+/v3lsdOu HwhcYTSM6R9Ar5eeze4aeiPQ8BodmW3XHgewrpyWaPyPMPc7cTSGSim 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> Reply-To: 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 by qcom 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 v8: - Updated comment in dtsi to remove superfluous reference to ipq5018 as pointed out by Mani - Corrected the size of the 2-lane phy's memory-mapped region as it should be 0x1000 (0x800 per lane). - Matched PCI domain to pcie controller instance (pcie0 -> PCI domain 0 and pcie1 to PCI domain 1) - Link to v7: https://lore.kernel.org/r/20250326-ipq5018-pcie-v7-0-e1828fef06c9@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/r/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 (2): arm64: dts: qcom: ipq5018: Add PCIe related nodes arm64: dts: qcom: ipq5018: Enable PCIe arch/arm64/boot/dts/qcom/ipq5018-rdp432-c2.dts | 40 ++++ arch/arm64/boot/dts/qcom/ipq5018.dtsi | 246 ++++++++++++++++++++++++- 2 files changed, 284 insertions(+), 2 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,