Skip to content

Commit b8ec9db

Browse files
nxpfranklivinodkoul
authored andcommitted
dt-bindings: fsl-qdma: fix interrupts 'if' check logic
All compatible string include 'fsl,ls1021a-qdma'. Previous if check are always true. if: properties: compatible: contains: enum: - fsl,ls1021a-qdma Change to check other compatible strings to get correct logic and fix below CHECK_DTB warnings. arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var1.dtb: dma-controller@8380000: interrupts: [[0, 43, 4], [0, 251, 4], [0, 252, 4], [0, 253, 4], [0, 254, 4]] is too long Signed-off-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20240701195717.1843041-1-Frank.Li@nxp.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 5bcf627 commit b8ec9db

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Documentation/devicetree/bindings/dma/fsl-qdma.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,16 @@ allOf:
8989
compatible:
9090
contains:
9191
enum:
92-
- fsl,ls1021a-qdma
92+
- fsl,ls1028a-qdma
93+
- fsl,ls1043a-qdma
94+
- fsl,ls1046a-qdma
9395
then:
96+
properties:
97+
interrupts:
98+
minItems: 5
99+
interrupt-names:
100+
minItems: 5
101+
else:
94102
properties:
95103
interrupts:
96104
maxItems: 3

0 commit comments

Comments
 (0)