Apple Interrupt Controller 2

Schema identifier ($id): "http://devicetree.org/schemas/interrupt-controller/apple,aic2.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Hector Martin <marcan@marcan.st>"

The Apple Interrupt Controller 2 is a simple interrupt controller present on Apple ARM SoC platforms starting with t600x (M1 Pro and Max).

It provides the following features:

- Level-triggered hardware IRQs wired to SoC blocks
  - Single mask bit per IRQ
  - Automatic masking on event delivery (auto-ack)
  - Software triggering (ORed with hw line)
- Automatic prioritization (single event/ack register per CPU, lower IRQs =
  higher priority)
- Automatic masking on ack
- Support for multiple dies

This device also represents the FIQ interrupt sources on platforms using AIC, which do not go through a discrete interrupt controller. It also handles FIQ-based Fast IPIs.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "apple,t8112-aic", "apple,t6000-aic", "apple,t6020-aic"

Item 2

Exact value (const): "apple,aic2"

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Minimum value (minimum): 3

Maximum value (maximum): 4

The 1st cell contains the interrupt type:
  - 0: Hardware IRQ
  - 1: FIQ

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

The next cell contains the interrupt number.
  - HW IRQs: interrupt number
  - FIQs:
    - 0: physical HV timer
    - 1: virtual HV timer
    - 2: physical guest timer
    - 3: virtual guest timer

The last cell contains the interrupt flags. This is normally IRQ_TYPE_LEVEL_HIGH (4).

reg — required here #

Array item rules (items) #

Item 1

Address and size of the main AIC2 registers.

Item 2

Address and size of the AIC2 Event register.

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "event"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

affinities — not listed as required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

FIQ affinity can be expressed as a single "affinities" node, containing a set of sub-nodes, one per FIQ with a non-default affinity.

Properties matching a name pattern (patternProperties) #

^.+-affinity$ — name matches this regular expression

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

apple,fiq-index — required here

The interrupt number specified as a FIQ, and for which the affinity is not the default.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 5

cpus — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Should be a list of phandles to CPU nodes (as described in Documentation/devicetree/bindings/arm/cpus.yaml).

Required in this object (required): "apple,fiq-index", "cpus"

Required in this object (required): "compatible", "#interrupt-cells", "interrupt-controller", "reg", "reg-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/interrupt-controller.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "apple,t8112-aic"

When the condition matches (then) #

Properties and child nodes (properties)

#interrupt-cells — not listed as required here

Exact value (const): 3

When the condition does not match (else) #

Properties and child nodes (properties)

#interrupt-cells — not listed as required here

Exact value (const): 4

Examples (examples) #

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    aic: interrupt-controller@28e100000 {
        compatible = "apple,t6000-aic", "apple,aic2";
        #interrupt-cells = <4>;
        interrupt-controller;
        reg = <0x2 0x8e100000 0x0 0xc000>,
              <0x2 0x8e10c000 0x0 0x4>;
        reg-names = "core", "event";
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page