Commit d4627402 authored by Richard Zhu's avatar Richard Zhu Committed by Bjorn Helgaas
Browse files

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: default avatarRichard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: default avatarKrzysztof Wilczyński <kwilczynski@kernel.org>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent 687aedb7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -17,11 +17,11 @@ description:
properties:
  clocks:
    minItems: 3
    maxItems: 4
    maxItems: 5

  clock-names:
    minItems: 3
    maxItems: 4
    maxItems: 5

  num-lanes:
    const: 1
+1 −0
Original line number Diff line number Diff line
@@ -118,6 +118,7 @@ allOf:
      properties:
        clocks:
          minItems: 4
          maxItems: 4
        clock-names:
          items:
            - const: pcie
+21 −4
Original line number Diff line number Diff line
@@ -40,10 +40,11 @@ properties:
      - description: PCIe PHY clock.
      - description: Additional required clock entry for imx6sx-pcie,
           imx6sx-pcie-ep, imx8mq-pcie, imx8mq-pcie-ep.
      - description: PCIe reference clock.

  clock-names:
    minItems: 3
    maxItems: 4
    maxItems: 5

  interrupts:
    items:
@@ -127,7 +128,7 @@ allOf:
    then:
      properties:
        clocks:
          minItems: 4
          maxItems: 4
        clock-names:
          items:
            - const: pcie
@@ -140,11 +141,10 @@ allOf:
        compatible:
          enum:
            - fsl,imx8mq-pcie
            - fsl,imx95-pcie
    then:
      properties:
        clocks:
          minItems: 4
          maxItems: 4
        clock-names:
          items:
            - const: pcie
@@ -200,6 +200,23 @@ allOf:
            - const: mstr
            - const: slv

  - if:
      properties:
        compatible:
          enum:
            - fsl,imx95-pcie
    then:
      properties:
        clocks:
          maxItems: 5
        clock-names:
          items:
            - const: pcie
            - const: pcie_bus
            - const: pcie_phy
            - const: pcie_aux
            - const: ref

unevaluatedProperties: false

examples: