Skip to content

Commit 6df1197

Browse files
nxpfranklirobherring
authored andcommitted
dt-bindings: interrupt-controller: fsl,ls-extirq: workaround wrong interrupt-map number
The driver(drivers/irqchip/irq-ls-extirq.c) have not use standard DT function to parser interrupt-map. So it doesn't consider '#address-size' in parent interrupt controller, such as GIC. When dt-binding verify interrupt-map, item data matrix is spitted at incorrect position. So cause below warning: arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dtb: interrupt-controller@14: interrupt-map: [[0, 0, 1, 0, 0, 4, 1, 0], [1, 0, 1, 4, 2, 0, 1, 0], ... is too short Remove interrupt-map restriction to workaround this warning for 'fsl,ls1088a-extirq', 'fsl,ls2080a-extirq' and fsl,lx2160a-extirq. Other keep the same restriction. Signed-off-by: Frank Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent e60099f commit 6df1197

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.yaml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ allOf:
8282
enum:
8383
- fsl,ls1043a-extirq
8484
- fsl,ls1046a-extirq
85-
- fsl,ls1088a-extirq
86-
- fsl,ls2080a-extirq
87-
- fsl,lx2160a-extirq
8885
then:
8986
properties:
9087
interrupt-map:
@@ -95,6 +92,29 @@ allOf:
9592
- const: 0xf
9693
- const: 0
9794

95+
- if:
96+
properties:
97+
compatible:
98+
contains:
99+
enum:
100+
- fsl,ls1088a-extirq
101+
- fsl,ls2080a-extirq
102+
- fsl,lx2160a-extirq
103+
# The driver(drivers/irqchip/irq-ls-extirq.c) have not use standard DT
104+
# function to parser interrupt-map. So it doesn't consider '#address-size'
105+
# in parent interrupt controller, such as GIC.
106+
#
107+
# When dt-binding verify interrupt-map, item data matrix is spitted at
108+
# incorrect position. Remove interrupt-map restriction because it always
109+
# wrong.
110+
111+
then:
112+
properties:
113+
interrupt-map-mask:
114+
items:
115+
- const: 0xf
116+
- const: 0
117+
98118
additionalProperties: false
99119

100120
examples:

0 commit comments

Comments
 (0)