[PATCH v2 2/3] dt-bindings: PCI: xilinx-pcie: Add reset-gpios for PERST#
From: Mike Looijmans
Date: Tue Mar 25 2025 - 03:20:31 EST
Introduce optional `reset-gpios` property to enable GPIO-based control
of the PCIe root port PERST# signal, as described in pci.txt.
Signed-off-by: Mike Looijmans <mike.looijmans@xxxxxxxx>
---
Changes in v2:
Add binding for reset-gpios
.../devicetree/bindings/pci/xlnx,axi-pcie-host.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/pci/xlnx,axi-pcie-host.yaml b/Documentation/devicetree/bindings/pci/xlnx,axi-pcie-host.yaml
index fb87b960a250..2b0fabdd5e16 100644
--- a/Documentation/devicetree/bindings/pci/xlnx,axi-pcie-host.yaml
+++ b/Documentation/devicetree/bindings/pci/xlnx,axi-pcie-host.yaml
@@ -28,6 +28,9 @@ properties:
ranges for the PCI memory regions (I/O space region is not
supported by hardware)
+ reset-gpios:
+ maxItems: 1
+
"#interrupt-cells":
const: 1
@@ -63,6 +66,7 @@ unevaluatedProperties: false
examples:
- |
+ #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
@@ -80,6 +84,7 @@ examples:
<0 0 0 3 &pcie_intc 3>,
<0 0 0 4 &pcie_intc 4>;
ranges = <0x02000000 0 0x60000000 0x60000000 0 0x10000000>;
+ reset-gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
pcie_intc: interrupt-controller {
interrupt-controller;
#address-cells = <0>;
--
2.43.0
Met vriendelijke groet / kind regards,
Mike Looijmans
System Expert
TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands
T: +31 (0) 499 33 69 69
E: mike.looijmans@xxxxxxxx
W: www.topic.nl
Please consider the environment before printing this e-mail