Skip to content

Commit 1a2cead

Browse files
Marek Vasutrobherring
authored andcommitted
dt-bindings: imx6q-pcie: Handle more resets on legacy platforms
The i.MX6 and i.MX7D does not use block controller to toggle PCIe reset, hence the PCIe DT description contains three reset entries on these older SoCs. Add this exception into the 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 8b8161e commit 1a2cead

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

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

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,14 @@ properties:
8484
- const: pcie_phy
8585

8686
resets:
87+
minItems: 2
8788
maxItems: 3
8889
description: Phandles to PCIe-related reset lines exposed by SRC
8990
IP block. Additional required by imx7d-pcie and imx8mq-pcie.
9091

9192
reset-names:
92-
items:
93-
- const: pciephy
94-
- const: apps
95-
- const: turnoff
93+
minItems: 2
94+
maxItems: 3
9695

9796
fsl,tx-deemph-gen1:
9897
description: Gen1 De-emphasis value (optional required).
@@ -276,6 +275,34 @@ allOf:
276275
maxItems: 1
277276
power-domain-names: false
278277

278+
- if:
279+
properties:
280+
compatible:
281+
contains:
282+
enum:
283+
- fsl,imx6q-pcie
284+
- fsl,imx6sx-pcie
285+
- fsl,imx6qp-pcie
286+
- fsl,imx7d-pcie
287+
- fsl,imx8mq-pcie
288+
then:
289+
properties:
290+
resets:
291+
minItems: 3
292+
reset-names:
293+
items:
294+
- const: pciephy
295+
- const: apps
296+
- const: turnoff
297+
else:
298+
properties:
299+
resets:
300+
maxItems: 2
301+
reset-names:
302+
items:
303+
- const: apps
304+
- const: turnoff
305+
279306
unevaluatedProperties: false
280307

281308
examples:

0 commit comments

Comments
 (0)