# Apple Interrupt Controller

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

> Device-tree binding reference for Apple Interrupt Controller.

<!-- 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;aic&#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 is a simple interrupt controller present on
Apple ARM SoC platforms, including various iPhone and iPad devices and the
"Apple Silicon" Macs.</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
  - Per-IRQ affinity setting
  - Automatic masking on event delivery (auto-ack)
  - Software triggering (ORed with hw line)
- 2 per-CPU IPIs (meant as "self" and "other", but they are interchangeable
  if not symmetric)
- Automatic prioritization (single event/ack register per CPU, lower IRQs =
  higher priority)
- Automatic masking on ack
- Default "this CPU" register view and explicit per-CPU views</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.</p>
<p style="white-space: pre-wrap">IPIs may be performed via MMIO registers on all variants of AIC. Starting
from A11, system registers may also be used for "fast" IPIs. Starting from
M1, even faster IPIs within the same cluster may be achieved by writing to
a "local" fast IPI register as opposed to using the "global" fast IPI
register.</p>
</div>

<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-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;s5l8960x&#45;aic&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;apple&#44;t7000&#45;aic&#34;</code></span>, <span id="dt-9802844ed4869452d348"><code>&#34;apple&#44;s8000&#45;aic&#34;</code></span>, <span id="dt-24a1253e29125294194d"><code>&#34;apple&#44;t8010&#45;aic&#34;</code></span>, <span id="dt-6eb9cf2b3f55b257fde4"><code>&#34;apple&#44;t8015&#45;aic&#34;</code></span>, <span id="dt-50ce8af78a6d0f3b7b82"><code>&#34;apple&#44;t8103&#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;aic&#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

**Exact value (<code>const</code>):** <span id="dt-317bbf786489389e8233"><code>3</code></span>

<div id="dt-0cc2c51365b6879fba3b">
<pre><code>The 1st cell contains the interrupt type:
  - 0: Hardware IRQ
  - 1: FIQ</code></pre>
<pre><code>The 2nd 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
    - 4: 'efficient' CPU PMU
    - 5: 'performance' CPU PMU</code></pre>
<p style="white-space: pre-wrap">The 3rd 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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">Specifies base physical address and size of the AIC registers.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>1</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**

<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>

<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-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@23b100000 {
        compatible = "apple,t8103-aic", "apple,aic";
        #interrupt-cells = &lt;3&gt;;
        interrupt-controller;
        reg = &lt;0x2 0x3b100000 0x0 0x8000&gt;;
    };
};
</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>
