Commit 93b415b2 authored by Janne Grunau's avatar Janne Grunau Committed by Hector Martin
Browse files

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: default avatarMarc Zyngier <maz@kernel.org>
Signed-off-by: default avatarJanne Grunau <j@jannau.net>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarHector Martin <marcan@marcan.st>
parent 355d090e
Loading
Loading
Loading
Loading
+19 −3
Original line number Diff line number Diff line
@@ -31,19 +31,22 @@ description: |
properties:
  compatible:
    items:
      - const: apple,t6000-aic
      - enum:
          - apple,t8112-aic
          - apple,t6000-aic
      - const: apple,aic2

  interrupt-controller: true

  '#interrupt-cells':
    const: 4
    minimum: 3
    maximum: 4
    description: |
      The 1st cell contains the interrupt type:
        - 0: Hardware IRQ
        - 1: FIQ

      The 2nd cell contains the die ID.
      The 2nd cell contains the die ID (only present on apple,t6000-aic).

      The next cell contains the interrupt number.
        - HW IRQs: interrupt number
@@ -109,6 +112,19 @@ additionalProperties: false

allOf:
  - $ref: /schemas/interrupt-controller.yaml#
  - if:
      properties:
        compatible:
          contains:
            const: apple,t8112-aic
    then:
      properties:
        '#interrupt-cells':
          const: 3
    else:
      properties:
        '#interrupt-cells':
          const: 4

examples:
  - |