Skip to content

Commit b6c7ca4

Browse files
Fabio Estevamrobherring
authored andcommitted
dt-bindings: lcdif: Properly describe the i.MX23 interrupts
i.MX23 has two LCDIF interrupts instead of a single one like other i.MX devices. Take this into account for properly describing the i.MX23 LCDIF interrupts. This fixes the following dt-schema warning: imx23-olinuxino.dtb: lcdif@80030000: interrupts: [[46], [45]] is too long from schema $id: http://devicetree.org/schemas/display/fsl,lcdif.yaml# Signed-off-by: Fabio Estevam <festevam@denx.de> Reviewed-by: Marek Vasut <marex@denx.de> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20231206112337.2234849-1-festevam@gmail.com Signed-off-by: Rob Herring <robh@kernel.org>
1 parent c0a2755 commit b6c7ca4

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ properties:
5151
minItems: 1
5252

5353
interrupts:
54-
maxItems: 1
54+
items:
55+
- description: LCDIF DMA interrupt
56+
- description: LCDIF Error interrupt
57+
minItems: 1
5558

5659
power-domains:
5760
maxItems: 1
@@ -131,6 +134,21 @@ allOf:
131134
then:
132135
required:
133136
- power-domains
137+
- if:
138+
properties:
139+
compatible:
140+
contains:
141+
enum:
142+
- fsl,imx23-lcdif
143+
then:
144+
properties:
145+
interrupts:
146+
minItems: 2
147+
maxItems: 2
148+
else:
149+
properties:
150+
interrupts:
151+
maxItems: 1
134152

135153
examples:
136154
- |

0 commit comments

Comments
 (0)