Skip to content

Commit 93b415b

Browse files
jannaumarcan
authored andcommitted
dt-bindings: interrupt-controller: apple,aic2: Add apple,t8112-aic compatible
The Apple M2 SoC uses AICv2 and is compatible with the existing driver. Add its per-SoC compatible. Since multi-die versions of the M2 are not expected decrease '#interrupt-cells' to 3 for apple,t8112-aic. This is seamlessly handled inside the driver. Acked-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Janne Grunau <j@jannau.net> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent 355d090 commit 93b415b

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,22 @@ description: |
3131
properties:
3232
compatible:
3333
items:
34-
- const: apple,t6000-aic
34+
- enum:
35+
- apple,t8112-aic
36+
- apple,t6000-aic
3537
- const: apple,aic2
3638

3739
interrupt-controller: true
3840

3941
'#interrupt-cells':
40-
const: 4
42+
minimum: 3
43+
maximum: 4
4144
description: |
4245
The 1st cell contains the interrupt type:
4346
- 0: Hardware IRQ
4447
- 1: FIQ
4548
46-
The 2nd cell contains the die ID.
49+
The 2nd cell contains the die ID (only present on apple,t6000-aic).
4750
4851
The next cell contains the interrupt number.
4952
- HW IRQs: interrupt number
@@ -109,6 +112,19 @@ additionalProperties: false
109112

110113
allOf:
111114
- $ref: /schemas/interrupt-controller.yaml#
115+
- if:
116+
properties:
117+
compatible:
118+
contains:
119+
const: apple,t8112-aic
120+
then:
121+
properties:
122+
'#interrupt-cells':
123+
const: 3
124+
else:
125+
properties:
126+
'#interrupt-cells':
127+
const: 4
112128

113129
examples:
114130
- |

0 commit comments

Comments
 (0)