# Apple Interrupt Controller 2

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Interrupt controller bindings_

> Device-tree binding reference for Apple Interrupt Controller 2.

<!-- SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;interrupt&#45;controller&#47;apple&#44;aic2&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Hector Martin &#60;marcan&#64;marcan&#46;st&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Apple Interrupt Controller 2 is a simple interrupt controller present on
Apple ARM SoC platforms starting with t600x (M1 Pro and Max).</p>
<p style="white-space: pre-wrap">It provides the following features:</p>
<pre><code>- 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</code></pre>
<p style="white-space: pre-wrap">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.</p>
</div>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

<a id="dt-cc3709943397035582d2"></a>

#### Array item rules (<code>items</code>)

<a id="dt-fec97e71a4359503ae6e"></a>

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;apple&#44;t8112&#45;aic&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;apple&#44;t6000&#45;aic&#34;</code></span>, <span id="dt-9802844ed4869452d348"><code>&#34;apple&#44;t6020&#45;aic&#34;</code></span>

<a id="dt-0891c69625632ea817fd"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-f1f862a3cfab3ac620c8"><code>&#34;apple&#44;aic2&#34;</code></span>

<a id="dt-b98252f9c39642b1db8f"></a>

### <code>interrupt&#45;controller</code> — required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-8586fac2d9a71adf4795"></a>

### <code>&#35;interrupt&#45;cells</code> — required here

**Minimum value (<code>minimum</code>):** <span id="dt-fe7a3535b0b4ff80fddc"><code>3</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-4110b2f75c69576d9be3"><code>4</code></span>

<div id="dt-0cc2c51365b6879fba3b">
<pre><code>The 1st cell contains the interrupt type:
  - 0: Hardware IRQ
  - 1: FIQ</code></pre>
<p style="white-space: pre-wrap">The 2nd cell contains the die ID (only present on apple,t6000-aic).</p>
<pre><code>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</code></pre>
<p style="white-space: pre-wrap">The last cell contains the interrupt flags. This is normally
IRQ_TYPE_LEVEL_HIGH (4).</p>
</div>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

<a id="dt-b6190d107f3246c9804f"></a>

#### Array item rules (<code>items</code>)

<a id="dt-c90b61e446f8f3080e3c"></a>

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">Address and size of the main AIC2 registers.</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">Address and size of the AIC2 Event register.</p>
> </div>

<a id="dt-a25ee402afa562132bc5"></a>

### <code>reg&#45;names</code> — required here

<a id="dt-cb45e4d562022f44522c"></a>

#### Array item rules (<code>items</code>)

<a id="dt-ad0326e242afa18bd21a"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-69afd9f8af3b0c5757d2"><code>&#34;core&#34;</code></span>

<a id="dt-12013039402717d72b48"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;event&#34;</code></span>

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-74e4e6f1d3f2a860fdb9"><code>1</code></span>

<a id="dt-ea2a8da2c8be65edbabe"></a>

### <code>affinities</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-73a7c43b1976874e86fc"><code>&#34;object&#34;</code></span>

<a id="dt-99e6494d38fac17b7d4e"></a>

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<div id="dt-09ce71f3f9aa8f4a5c0e">
<p style="white-space: pre-wrap">FIQ affinity can be expressed as a single "affinities" node, containing a set of sub-nodes, one per FIQ with a non-default affinity.</p>
</div>

<a id="dt-5ca0ad04ab438c2f0129"></a>

#### Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-386e6d76484795b9ad0e"></a>

**<code>&#94;&#46;&#43;&#45;affinity&#36;</code> — name matches this regular expression**

**Value type (<code>type</code>):** <span id="dt-9d511c9b4250dec90b70"><code>&#34;object&#34;</code></span>

<a id="dt-f2cb65d7e493f4be9f48"></a>

**Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)**

<code>false</code>

Not allowed by this rule.

<a id="dt-9659b72dc01df24ea56c"></a>

**Properties and child nodes (<code>properties</code>)**

<a id="dt-2885a5f95a36ab03528a"></a>

**<code>apple&#44;fiq&#45;index</code> — required here**

<div id="dt-baeb3829e2af285a274a">
<p style="white-space: pre-wrap">The interrupt number specified as a FIQ, and for which the affinity is not the default.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1415c73569714179bfe4">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Maximum value (<code>maximum</code>):** <span id="dt-1bb1b126a096bf707666"><code>5</code></span>

<a id="dt-9bc071fe416844ca0a65"></a>

**<code>cpus</code> — required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-efd6f604a63006669488">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;phandle&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-8f5710c4314b4caa4970>)</span>

<div id="dt-c08571abe9c381e1b649">
<p style="white-space: pre-wrap">Should be a list of phandles to CPU nodes (as described in Documentation/devicetree/bindings/arm/cpus.yaml).</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-ac71b246b2756422de1b"></a> <span id="dt-b38f29a861b8b90e52f7"><code>&#34;apple&#44;fiq&#45;index&#34;</code></span>, <span id="dt-d33cb75b882892f6457b"><code>&#34;cpus&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;&#35;interrupt&#45;cells&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupt&#45;controller&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;reg&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;reg&#45;names&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

<a id="dt-d33de94ac1d3652cd22a"></a>

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>&#47;schemas&#47;interrupt&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-shared/interrupt-controller.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-9b74ad9882646c4a5116"><code>&#34;apple&#44;t8112&#45;aic&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-4999172dbdfce5396313"></a>
> >
> > **<code>&#35;interrupt&#45;cells</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-29b99d3ff40b0b3dc6c9"><code>3</code></span>
>
> <a id="dt-56ef1e95d4edd6e6f24c"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-f0255e6a88a00985d33b"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-59dccc8a3323d2142491"></a>
> >
> > **<code>&#35;interrupt&#45;cells</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-9b818c64717eaa318d0f"><code>4</code></span>

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">soc {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

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

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)</span></p>

</details>
