Skip to content

Commit 0b9275e

Browse files
samushamMani-Sadhasivam
authored andcommitted
dt-bindings: PCI: amd-mdb: Add example usage of reset-gpios for PCIe RP PERST#
Update the device tree binding example to include usage of the `reset-gpios` property in PCIe Root Port (RP) bridge node for PERST# signal handling. Signed-off-by: Sai Krishna Musham <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 8f5ae30 commit 0b9275e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@ properties:
7171
- "#address-cells"
7272
- "#interrupt-cells"
7373

74+
patternProperties:
75+
'^pcie@[0-2],0$':
76+
type: object
77+
$ref: /schemas/pci/pci-pci-bridge.yaml#
78+
79+
properties:
80+
reg:
81+
maxItems: 1
82+
83+
unevaluatedProperties: false
84+
7485
required:
7586
- reg
7687
- reg-names
@@ -87,6 +98,7 @@ examples:
8798
- |
8899
#include <dt-bindings/interrupt-controller/arm-gic.h>
89100
#include <dt-bindings/interrupt-controller/irq.h>
101+
#include <dt-bindings/gpio/gpio.h>
90102
91103
soc {
92104
#address-cells = <2>;
@@ -112,6 +124,16 @@ examples:
112124
#size-cells = <2>;
113125
#interrupt-cells = <1>;
114126
device_type = "pci";
127+
128+
pcie@0,0 {
129+
device_type = "pci";
130+
reg = <0x0 0x0 0x0 0x0 0x0>;
131+
reset-gpios = <&tca6416_u37 7 GPIO_ACTIVE_LOW>;
132+
#address-cells = <3>;
133+
#size-cells = <2>;
134+
ranges;
135+
};
136+
115137
pcie_intc_0: interrupt-controller {
116138
#address-cells = <0>;
117139
#interrupt-cells = <1>;

0 commit comments

Comments
 (0)