Skip to content

Commit 8b8161e

Browse files
Marek Vasutrobherring
authored andcommitted
dt-bindings: imx6q-pcie: Handle various PD configurations
The i.MX SoCs have various power domain configurations routed into the PCIe IP. MX6SX is the only one which contains 2 domains and also uses power-domain-names. MX6QDL do not use any domains. All the rest uses one domain and does not use power-domain-names anymore. Document all those configurations in the DT binding document. Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Marek Vasut <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 22c9f19 commit 8b8161e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ properties:
6969
required properties for imx7d-pcie and imx8mq-pcie.
7070

7171
power-domains:
72+
minItems: 1
7273
items:
7374
- description: The phandle pointing to the DISPLAY domain for
7475
imx6sx-pcie, to PCIE_PHY power domain for imx7d-pcie and
@@ -77,6 +78,7 @@ properties:
7778
for imx6sx-pcie.
7879

7980
power-domain-names:
81+
minItems: 1
8082
items:
8183
- const: pcie
8284
- const: pcie_phy
@@ -187,6 +189,10 @@ allOf:
187189
- {}
188190
- const: pcie_phy
189191
- const: pcie_inbound_axi
192+
power-domains:
193+
minItems: 2
194+
power-domain-names:
195+
minItems: 2
190196
- if:
191197
properties:
192198
compatible:
@@ -243,6 +249,32 @@ allOf:
243249
maxItems: 3
244250
contains:
245251
const: pcie_aux
252+
- if:
253+
properties:
254+
compatible:
255+
contains:
256+
enum:
257+
- fsl,imx6q-pcie
258+
- fsl,imx6qp-pcie
259+
then:
260+
properties:
261+
power-domains: false
262+
power-domain-names: false
263+
264+
- if:
265+
not:
266+
properties:
267+
compatible:
268+
contains:
269+
enum:
270+
- fsl,imx6sx-pcie
271+
- fsl,imx6q-pcie
272+
- fsl,imx6qp-pcie
273+
then:
274+
properties:
275+
power-domains:
276+
maxItems: 1
277+
power-domain-names: false
246278

247279
unevaluatedProperties: false
248280

0 commit comments

Comments
 (0)