Skip to content

Commit 899d548

Browse files
Thippeswamyhkwilczynski
authored andcommitted
dt-bindings: PCI: xilinx-xdma: Add schemas for Xilinx QDMA PCIe Root Port Bridge
Add YAML devicetree schemas for Xilinx QDMA Soft IP PCIe Root Port Bridge version 3.0. Link: https://lore.kernel.org/linux-pci/[email protected] Signed-off-by: Thippeswamy Havalige <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Acked-by: Conor Dooley <[email protected]>
1 parent 0b93267 commit 899d548

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

Documentation/devicetree/bindings/pci/xlnx,xdma-host.yaml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,21 @@ allOf:
1414

1515
properties:
1616
compatible:
17-
const: xlnx,xdma-host-3.00
17+
enum:
18+
- xlnx,xdma-host-3.00
19+
- xlnx,qdma-host-3.00
1820

1921
reg:
20-
maxItems: 1
22+
items:
23+
- description: configuration region and XDMA bridge register.
24+
- description: QDMA bridge register.
25+
minItems: 1
26+
27+
reg-names:
28+
items:
29+
- const: cfg
30+
- const: breg
31+
minItems: 1
2132

2233
ranges:
2334
maxItems: 2
@@ -76,6 +87,27 @@ required:
7687
- "#interrupt-cells"
7788
- interrupt-controller
7889

90+
if:
91+
properties:
92+
compatible:
93+
contains:
94+
enum:
95+
- xlnx,qdma-host-3.00
96+
then:
97+
properties:
98+
reg:
99+
minItems: 2
100+
reg-names:
101+
minItems: 2
102+
required:
103+
- reg-names
104+
else:
105+
properties:
106+
reg:
107+
maxItems: 1
108+
reg-names:
109+
maxItems: 1
110+
79111
unevaluatedProperties: false
80112

81113
examples:

0 commit comments

Comments
 (0)