Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Janne Grunau and committed by
Hector Martin
93b415b2 355d090e

+19 -3
+19 -3
Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml
··· 31 31 properties: 32 32 compatible: 33 33 items: 34 - - const: apple,t6000-aic 34 + - enum: 35 + - apple,t8112-aic 36 + - apple,t6000-aic 35 37 - const: apple,aic2 36 38 37 39 interrupt-controller: true 38 40 39 41 '#interrupt-cells': 40 - const: 4 42 + minimum: 3 43 + maximum: 4 41 44 description: | 42 45 The 1st cell contains the interrupt type: 43 46 - 0: Hardware IRQ 44 47 - 1: FIQ 45 48 46 - The 2nd cell contains the die ID. 49 + The 2nd cell contains the die ID (only present on apple,t6000-aic). 47 50 48 51 The next cell contains the interrupt number. 49 52 - HW IRQs: interrupt number ··· 112 109 113 110 allOf: 114 111 - $ref: /schemas/interrupt-controller.yaml# 112 + - if: 113 + properties: 114 + compatible: 115 + contains: 116 + const: apple,t8112-aic 117 + then: 118 + properties: 119 + '#interrupt-cells': 120 + const: 3 121 + else: 122 + properties: 123 + '#interrupt-cells': 124 + const: 4 115 125 116 126 examples: 117 127 - |