Commit 03871060 authored by Alexander Stein's avatar Alexander Stein Committed by Rob Herring
Browse files

dt-bindings: lcdif: Fix constraints for imx8mp



i.MX8MP uses 3 clocks, so soften the restrictions for clocks & clock-names.
This SoC requires a power-domain for this peripheral to use. Add it as
a required property.

Fixes: f5419cb0 ("dt-bindings: lcdif: Add compatible for i.MX8MP")
Signed-off-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/20221208140840.3227035-1-alexander.stein@ew.tq-group.com


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 0bf99c1f
Loading
Loading
Loading
Loading
+28 −1
Original line number Diff line number Diff line
@@ -52,6 +52,9 @@ properties:
  interrupts:
    maxItems: 1

  power-domains:
    maxItems: 1

  port:
    $ref: /schemas/graph.yaml#/properties/port
    description: The LCDIF output port
@@ -81,7 +84,31 @@ allOf:
          maxItems: 3
      required:
        - clock-names
    else:
  - if:
      properties:
        compatible:
          contains:
            const: fsl,imx8mp-lcdif
    then:
      properties:
        clocks:
          minItems: 3
          maxItems: 3
        clock-names:
          minItems: 3
          maxItems: 3
      required:
        - clock-names
        - power-domains
  - if:
      not:
        properties:
          compatible:
            contains:
              enum:
                - fsl,imx6sx-lcdif
                - fsl,imx8mp-lcdif
    then:
      properties:
        clocks:
          maxItems: 1