1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/pci/qcom,pcie-common.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm PCI Express Root Complex Common Properties
8
9maintainers:
10  - Bjorn Andersson <andersson@kernel.org>
11  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
12
13properties:
14  reg:
15    minItems: 4
16    maxItems: 6
17
18  reg-names:
19    minItems: 4
20    maxItems: 6
21
22  interrupts:
23    minItems: 1
24    maxItems: 9
25
26  interrupt-names:
27    minItems: 1
28    maxItems: 9
29
30  iommu-map:
31    minItems: 1
32    maxItems: 16
33
34  clocks:
35    minItems: 3
36    maxItems: 13
37
38  clock-names:
39    minItems: 3
40    maxItems: 13
41
42  dma-coherent: true
43
44  interconnects:
45    maxItems: 2
46
47  interconnect-names:
48    items:
49      - const: pcie-mem
50      - const: cpu-pcie
51
52  phys:
53    maxItems: 1
54    deprecated: true
55    description:
56      This property is deprecated, instead of referencing this property from
57      the host bridge node, use the property from the PCIe root port node.
58
59  phy-names:
60    items:
61      - const: pciephy
62    deprecated: true
63    description:
64      Phandle to the register map node. This property is deprecated, and not
65      required to add in the root port also, as the root port has only one phy.
66
67  power-domains:
68    maxItems: 1
69
70  required-opps:
71    maxItems: 1
72
73  resets:
74    minItems: 1
75    maxItems: 12
76
77  reset-names:
78    minItems: 1
79    maxItems: 12
80
81  perst-gpios:
82    description: GPIO controlled connection to PERST# signal. This property is
83      deprecated, instead of referencing this property from the host bridge node,
84      use the reset-gpios property from the root port node.
85    maxItems: 1
86    deprecated: true
87
88  wake-gpios:
89    description: GPIO controlled connection to WAKE# signal. This property is
90      deprecated, instead of referencing this property from the host bridge node,
91      use the property from the PCIe root port node.
92    maxItems: 1
93    deprecated: true
94
95  vddpe-3v3-supply:
96    description: PCIe endpoint power supply
97
98  operating-points-v2: true
99  opp-table:
100    type: object
101
102patternProperties:
103  "^pcie@":
104    type: object
105    $ref: /schemas/pci/pci-pci-bridge.yaml#
106
107    properties:
108      reg:
109        maxItems: 1
110
111      phys:
112        maxItems: 1
113
114    unevaluatedProperties: false
115
116required:
117  - reg
118  - reg-names
119  - interrupt-map-mask
120  - interrupt-map
121  - clocks
122  - clock-names
123
124anyOf:
125  - required:
126      - interrupts
127      - interrupt-names
128      - "#interrupt-cells"
129  - required:
130      - msi-map
131
132allOf:
133  - $ref: /schemas/pci/pci-host-bridge.yaml#
134
135additionalProperties: true
136