Skip to content

Commit d462740

Browse files
Richard Zhubjorn-helgaas
authored andcommitted
dt-bindings: PCI: fsl,imx6q-pcie: Add Refclk for i.MX95 RC
Previous Refclk of i.MX95 PCIe RC is on when system boot to kernel. But boot firmware change the behavior, it is off when boot. So it must be turned on when it is used. Also it needs be turned off/on for suspend and resume. Add one Refclk for i.MX95 PCIe RC. Increase clocks' maxItems to 5 and keep the same restriction with other compatible string. Link: https://lore.kernel.org/r/20241126075702.4099164-2-hongxing.zhu@nxp.com Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent 687aedb commit d462740

3 files changed

Lines changed: 24 additions & 6 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ description:
1717
properties:
1818
clocks:
1919
minItems: 3
20-
maxItems: 4
20+
maxItems: 5
2121

2222
clock-names:
2323
minItems: 3
24-
maxItems: 4
24+
maxItems: 5
2525

2626
num-lanes:
2727
const: 1

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ allOf:
118118
properties:
119119
clocks:
120120
minItems: 4
121+
maxItems: 4
121122
clock-names:
122123
items:
123124
- const: pcie

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

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ properties:
4040
- description: PCIe PHY clock.
4141
- description: Additional required clock entry for imx6sx-pcie,
4242
imx6sx-pcie-ep, imx8mq-pcie, imx8mq-pcie-ep.
43+
- description: PCIe reference clock.
4344

4445
clock-names:
4546
minItems: 3
46-
maxItems: 4
47+
maxItems: 5
4748

4849
interrupts:
4950
items:
@@ -127,7 +128,7 @@ allOf:
127128
then:
128129
properties:
129130
clocks:
130-
minItems: 4
131+
maxItems: 4
131132
clock-names:
132133
items:
133134
- const: pcie
@@ -140,11 +141,10 @@ allOf:
140141
compatible:
141142
enum:
142143
- fsl,imx8mq-pcie
143-
- fsl,imx95-pcie
144144
then:
145145
properties:
146146
clocks:
147-
minItems: 4
147+
maxItems: 4
148148
clock-names:
149149
items:
150150
- const: pcie
@@ -200,6 +200,23 @@ allOf:
200200
- const: mstr
201201
- const: slv
202202

203+
- if:
204+
properties:
205+
compatible:
206+
enum:
207+
- fsl,imx95-pcie
208+
then:
209+
properties:
210+
clocks:
211+
maxItems: 5
212+
clock-names:
213+
items:
214+
- const: pcie
215+
- const: pcie_bus
216+
- const: pcie_phy
217+
- const: pcie_aux
218+
- const: ref
219+
203220
unevaluatedProperties: false
204221

205222
examples:

0 commit comments

Comments
 (0)