Skip to content

Commit 0387106

Browse files
tq-steinarobherring
authored andcommitted
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: f5419cb ("dt-bindings: lcdif: Add compatible for i.MX8MP") Signed-off-by: Alexander Stein <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 0bf99c1 commit 0387106

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

Documentation/devicetree/bindings/display/fsl,lcdif.yaml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ properties:
5252
interrupts:
5353
maxItems: 1
5454

55+
power-domains:
56+
maxItems: 1
57+
5558
port:
5659
$ref: /schemas/graph.yaml#/properties/port
5760
description: The LCDIF output port
@@ -81,7 +84,31 @@ allOf:
8184
maxItems: 3
8285
required:
8386
- clock-names
84-
else:
87+
- if:
88+
properties:
89+
compatible:
90+
contains:
91+
const: fsl,imx8mp-lcdif
92+
then:
93+
properties:
94+
clocks:
95+
minItems: 3
96+
maxItems: 3
97+
clock-names:
98+
minItems: 3
99+
maxItems: 3
100+
required:
101+
- clock-names
102+
- power-domains
103+
- if:
104+
not:
105+
properties:
106+
compatible:
107+
contains:
108+
enum:
109+
- fsl,imx6sx-lcdif
110+
- fsl,imx8mp-lcdif
111+
then:
85112
properties:
86113
clocks:
87114
maxItems: 1

0 commit comments

Comments
 (0)