Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms
@ 2026-12-01 12:54 Mrinmay Sarkar
  2026-12-01 12:54 ` [PATCH v2 1/2] dt-bindings: PCI: qcom,pcie-sa8255p: Document Nord firmware-managed PCIe Mrinmay Sarkar
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mrinmay Sarkar @ 2026-12-01 12:54 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Bjorn Helgaas, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Krzysztof Kozlowski, Conor Dooley,
	Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-pci, devicetree, Mrinmay Sarkar,
	Rama Krishna, Nitesh Gupta, Ayiluri Naga Rashmi,
	Krishna Chaitanya Chundru, Shazad Hussain

This series adds device-tree support for firmware-managed PCIe
host controllers on Qualcomm Nord systems.

The firmware-managed PCIe implementation is compatible with the
SA8255P PCIe controller and is accessed through an ECAM region.
Update the PCIe binding to describe the Nord-specific compatible and
the optional resources required by the firmware-managed configuration.

With the binding in place, enable the PCIe controllers for Nord
GearVM systems and expand the SoC address translation window to cover
PCIe host bridge resources.

Signed-off-by: Mrinmay Sarkar <mrinmay.sarkar@oss.qualcomm.com>
---
Changes in v2:
- nord-gearvm: Use PCI bus address 0x0 for the I/O space ranges of
  pcie0-3 instead of matching the CPU address (Sashiko AI review).
- Link to v1: https://patch.msgid.link/20261130-nord-pcie-fw-dt-v1-0-117d03dedb1c@oss.qualcomm.com

---
Mrinmay Sarkar (2):
      dt-bindings: PCI: qcom,pcie-sa8255p: Document Nord firmware-managed PCIe
      arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant

 .../devicetree/bindings/pci/qcom,pcie-sa8255p.yaml | 15 +++++--
 arch/arm64/boot/dts/qcom/nord-gearvm.dtsi          | 48 ++++++++++++++++++++++
 arch/arm64/boot/dts/qcom/nord-ride.dts             | 16 ++++++++
 arch/arm64/boot/dts/qcom/nord.dtsi                 |  4 +-
 4 files changed, 77 insertions(+), 6 deletions(-)
---
base-commit: e5aad2bdbbee783611d32599f89cea3f12f9593d
change-id: 20261130-nord-pcie-fw-dt-d8a18e684b42

Best regards,
--  
Mrinmay Sarkar <mrinmay.sarkar@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 1/2] dt-bindings: PCI: qcom,pcie-sa8255p: Document Nord firmware-managed PCIe
  2026-12-01 12:54 [PATCH v2 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms Mrinmay Sarkar
@ 2026-12-01 12:54 ` Mrinmay Sarkar
  2026-12-01 12:54 ` [PATCH v2 2/2] arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant Mrinmay Sarkar
  2026-12-01 13:05 ` [PATCH v2 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms sashiko-bot
  2 siblings, 0 replies; 4+ messages in thread
From: Mrinmay Sarkar @ 2026-12-01 12:54 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Bjorn Helgaas, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Krzysztof Kozlowski, Conor Dooley,
	Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-pci, devicetree, Mrinmay Sarkar,
	Rama Krishna, Nitesh Gupta, Ayiluri Naga Rashmi,
	Krishna Chaitanya Chundru, Shazad Hussain

Document the PCIe root complex on the Qualcomm Nord SoC when the
controller is managed by firmware and accessed through an ECAM region.

Nord's firmware-managed PCIe controller is compatible with the SA8255P
controller, so add "qcom,nord-pcie-fw" with "qcom,pcie-sa8255p" as a
fallback compatible and reuse the existing binding.

Nord exposes an I/O window in addition to the non-prefetchable and
prefetchable memory windows, so allow up to three "ranges" entries.
The controller also provides a "global" interrupt, so allow it as an
optional ninth interrupt after the MSI interrupts.

Signed-off-by: Mrinmay Sarkar <mrinmay.sarkar@oss.qualcomm.com>
---
 .../devicetree/bindings/pci/qcom,pcie-sa8255p.yaml        | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie-sa8255p.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie-sa8255p.yaml
index 1f2d098b8638..349099e300da 100644
--- a/Documentation/devicetree/bindings/pci/qcom,pcie-sa8255p.yaml
+++ b/Documentation/devicetree/bindings/pci/qcom,pcie-sa8255p.yaml
@@ -16,7 +16,12 @@ description:
 
 properties:
   compatible:
-    const: qcom,pcie-sa8255p
+    oneOf:
+      - const: qcom,pcie-sa8255p
+      - items:
+          - enum:
+              - qcom,nord-pcie-fw
+          - const: qcom,pcie-sa8255p
 
   reg:
     description:
@@ -30,15 +35,16 @@ properties:
     description:
       As described in IEEE Std 1275-1994, but must provide at least a
       definition of non-prefetchable memory. One or both of prefetchable Memory
-      may also be provided.
+      and IO Space may also be provided.
     minItems: 1
-    maxItems: 2
+    maxItems: 3
 
   interrupts:
     minItems: 8
-    maxItems: 8
+    maxItems: 9
 
   interrupt-names:
+    minItems: 8
     items:
       - const: msi0
       - const: msi1
@@ -48,6 +54,7 @@ properties:
       - const: msi5
       - const: msi6
       - const: msi7
+      - const: global
 
   power-domains:
     maxItems: 1

-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant
  2026-12-01 12:54 [PATCH v2 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms Mrinmay Sarkar
  2026-12-01 12:54 ` [PATCH v2 1/2] dt-bindings: PCI: qcom,pcie-sa8255p: Document Nord firmware-managed PCIe Mrinmay Sarkar
@ 2026-12-01 12:54 ` Mrinmay Sarkar
  2026-12-01 13:05 ` [PATCH v2 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms sashiko-bot
  2 siblings, 0 replies; 4+ messages in thread
From: Mrinmay Sarkar @ 2026-12-01 12:54 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Bjorn Helgaas, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Krzysztof Kozlowski, Conor Dooley,
	Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-pci, devicetree, Mrinmay Sarkar,
	Rama Krishna, Nitesh Gupta, Ayiluri Naga Rashmi,
	Krishna Chaitanya Chundru, Shazad Hussain

Add GearVM-specific overrides for the Nord PCIe controllers and enable
the required SCMI power-domain providers to support PCIe controller
enablement on GearVM platforms.

Expand the soc@0 identity translation range to accommodate PCIe host
bridge resources that reside outside the currently covered address
space.

Enable PCIe0 and PCIe1 on the Nord RIDE platform.

Signed-off-by: Mrinmay Sarkar <mrinmay.sarkar@oss.qualcomm.com>
---
Note: The GearVM PCIe nodes override the nord.dtsi nodes in place. The
node names keep the unit address of the PARF register base from
nord.dtsi, while "reg" is replaced with the firmware-managed ECAM base,
so they no longer match. This triggers W=1 dtc simple_bus_reg warnings,
which are known and acknowledged.
---
 arch/arm64/boot/dts/qcom/nord-gearvm.dtsi | 48 +++++++++++++++++++++++++++++++
 arch/arm64/boot/dts/qcom/nord-ride.dts    | 16 +++++++++++
 arch/arm64/boot/dts/qcom/nord.dtsi        |  4 +--
 3 files changed, 66 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi b/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi
index 5514f9a6f49f..77b1d98b23f3 100644
--- a/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi
+++ b/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi
@@ -2098,6 +2098,54 @@ &i2c20 {
 			     "perf";
 };
 
+&pcie0 {
+	/delete-property/ num-lanes;
+	/delete-property/ reg-names;
+
+	compatible = "qcom,nord-pcie-fw", "qcom,pcie-sa8255p";
+	reg = <0x50 0x00000000 0x0 0x10000000>;
+	ranges = <0x01000000 0x0 0x00000000 0x0 0x40000000 0x0 0x100000>,
+		 <0x02000000 0x0 0x40100000 0x0 0x40100000 0x0 0x7000000>,
+		 <0x43000000 0x50 0x10100000 0x50 0x10100000 0x8 0x00000000>;
+	power-domains = <&scmi5_pd 0>;
+};
+
+&pcie1 {
+	/delete-property/ num-lanes;
+	/delete-property/ reg-names;
+
+	compatible = "qcom,nord-pcie-fw", "qcom,pcie-sa8255p";
+	reg = <0x48 0x00000000 0x0 0x10000000>;
+	ranges = <0x01000000 0x0 0x00000000 0x0 0x50000000 0x0 0x100000>,
+		 <0x02000000 0x0 0x50100000 0x0 0x50100000 0x0 0x7000000>,
+		 <0x43000000 0x48 0x10100000 0x48 0x10100000 0x4 0x00000000>;
+	power-domains = <&scmi6_pd 0>;
+};
+
+&pcie2 {
+	/delete-property/ num-lanes;
+	/delete-property/ reg-names;
+
+	compatible = "qcom,nord-pcie-fw", "qcom,pcie-sa8255p";
+	reg = <0x40 0x00000000 0x0 0x10000000>;
+	ranges = <0x01000000 0x0 0x00000000 0x0 0x60000000 0x0 0x100000>,
+		 <0x02000000 0x0 0x60100000 0x0 0x60100000 0x0 0x7000000>,
+		 <0x43000000 0x40 0x10100000 0x40 0x10100000 0x4 0x00000000>;
+	power-domains = <&scmi32_pd 0>;
+};
+
+&pcie3 {
+	/delete-property/ num-lanes;
+	/delete-property/ reg-names;
+
+	compatible = "qcom,nord-pcie-fw", "qcom,pcie-sa8255p";
+	reg = <0x4 0x00000000 0x0 0x10000000>;
+	ranges = <0x01000000 0x0 0x00000000 0x0 0x70000000 0x0 0x100000>,
+		 <0x02000000 0x0 0x70100000 0x0 0x70100000 0x0 0x7000000>,
+		 <0x43000000 0x4 0x10100000 0x4 0x10100000 0x0 0x80000000>;
+	power-domains = <&scmi33_pd 0>;
+};
+
 &qupv3_0 {
 	compatible = "qcom,sa8797p-geni-se-qup",
 		     "qcom,sa8255p-geni-se-qup";
diff --git a/arch/arm64/boot/dts/qcom/nord-ride.dts b/arch/arm64/boot/dts/qcom/nord-ride.dts
index 1af4117d24d7..3892830cc58a 100644
--- a/arch/arm64/boot/dts/qcom/nord-ride.dts
+++ b/arch/arm64/boot/dts/qcom/nord-ride.dts
@@ -45,6 +45,14 @@ &scmi3 {
 	status = "okay";
 };
 
+&scmi5 {
+	status = "okay";
+};
+
+&scmi6 {
+	status = "okay";
+};
+
 &scmi9 {
 	status = "okay";
 };
@@ -241,6 +249,14 @@ trip1 {
 	};
 };
 
+&pcie0 {
+	status = "okay";
+};
+
+&pcie1 {
+	status = "okay";
+};
+
 &uart4 {
 	status = "okay";
 };
diff --git a/arch/arm64/boot/dts/qcom/nord.dtsi b/arch/arm64/boot/dts/qcom/nord.dtsi
index 56778dd444e4..1841cc651c63 100644
--- a/arch/arm64/boot/dts/qcom/nord.dtsi
+++ b/arch/arm64/boot/dts/qcom/nord.dtsi
@@ -1034,8 +1034,8 @@ soc: soc@0 {
 		compatible = "simple-bus";
 		#address-cells = <2>;
 		#size-cells = <2>;
-		dma-ranges = <0 0 0 0 0x10 0>;
-		ranges = <0 0 0 0 0x10 0>;
+		dma-ranges = <0 0 0 0 0x100 0>;
+		ranges = <0 0 0 0 0x100 0>;
 
 		gpi_dma2: dma-controller@800000 {
 			compatible = "qcom,nord-gpi-dma", "qcom,sm6350-gpi-dma";

-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms
  2026-12-01 12:54 [PATCH v2 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms Mrinmay Sarkar
  2026-12-01 12:54 ` [PATCH v2 1/2] dt-bindings: PCI: qcom,pcie-sa8255p: Document Nord firmware-managed PCIe Mrinmay Sarkar
  2026-12-01 12:54 ` [PATCH v2 2/2] arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant Mrinmay Sarkar
@ 2026-12-01 13:05 ` sashiko-bot
  2 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-12-01 13:05 UTC (permalink / raw)
  To: Mrinmay Sarkar; +Cc: linux-pci

Sashiko has reviewed this 2-patch series and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-nord-pcie-fw-dt-v2-0-fde9a08b1385@oss.qualcomm.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-01 13:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 12:54 [PATCH v2 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms Mrinmay Sarkar
2026-12-01 12:54 ` [PATCH v2 1/2] dt-bindings: PCI: qcom,pcie-sa8255p: Document Nord firmware-managed PCIe Mrinmay Sarkar
2026-12-01 12:54 ` [PATCH v2 2/2] arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant Mrinmay Sarkar
2026-12-01 13:05 ` [PATCH v2 0/2] arm64: dts: qcom: Add PCIe support for Nord GearVM platforms sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox