# ARM Generic Interrupt Controller, version 5

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

> Device-tree binding reference for ARM Generic Interrupt Controller, version 5.

<!-- 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;arm&#44;gic&#45;v5&#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;Lorenzo Pieralisi &#60;lpieralisi&#64;kernel&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Marc Zyngier &#60;maz&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The GICv5 architecture defines the guidelines to implement GICv5
compliant interrupt controllers for AArch64 systems.</p>
<p style="white-space: pre-wrap">The GICv5 specification can be found at
https://developer.arm.com/documentation/aes0070</p>
<pre><code>The GICv5 architecture is composed of multiple components:
  - one or more IRS (Interrupt Routing Service)
  - zero or more ITS (Interrupt Translation Service)</code></pre>
<pre><code>The architecture defines:
  - PE-Private Peripheral Interrupts (PPI)
  - Shared Peripheral Interrupts (SPI)
  - Logical Peripheral Interrupts (LPI)</code></pre>
</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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;arm&#44;gic&#45;v5&#34;</code></span>

<a id="dt-2efe70314a961a652abe"></a>

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

**Allowed values (<code>enum</code>):** <a id="dt-01d9ce7fc56f712455be"></a> <span id="dt-94d3735d14e27e2d7df1"><code>1</code></span>, <span id="dt-0dda607ef98de398e3f7"><code>2</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-11f8fcdf7ed0ce5274ad"></a> <span id="dt-1df5884131042d9f2b35"><code>1</code></span>, <span id="dt-0d778c9f0ef0966b501c"><code>2</code></span>

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

### <code>ranges</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

<div id="dt-0cc2c51365b6879fba3b">
<p style="white-space: pre-wrap">The 1st cell corresponds to the INTID.Type field in the INTID; 1 for PPI,
3 for SPI. LPI interrupts must not be described in the bindings since
they are allocated dynamically by the software component managing them.</p>
<p style="white-space: pre-wrap">The 2nd cell contains the interrupt INTID.ID field.</p>
<p style="white-space: pre-wrap">The 3rd cell is the flags, encoded as follows:
bits[3:0] trigger type and level flags.</p>
<pre><code>  1 = low-to-high edge triggered
  2 = high-to-low edge triggered
  4 = active high level-sensitive
  8 = active low level-sensitive</code></pre>
</div>

**Exact value (<code>const</code>):** <span id="dt-317bbf786489389e8233"><code>3</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-c2de09e7f7fd211b679d"></a>

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">The VGIC maintenance interrupt.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b7823fb65b2f27642d26"><code>1</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;address&#45;cells&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;&#35;size&#45;cells&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;ranges&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;&#35;interrupt&#45;cells&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;interrupt&#45;controller&#34;</code></span>

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

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

<a id="dt-4b003b16462e28eb6032"></a>

### <code>&#94;irs&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

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

<div id="dt-f9831cc012223e13e23e">
<p style="white-space: pre-wrap">GICv5 has one or more Interrupt Routing Services (IRS) that are responsible for handling IRQ state and routing.</p>
</div>

<a id="dt-5e9805dbb6048769a638"></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-6b26c01886444edddd78"></a>

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

<a id="dt-329e5e0a6baa0e350625"></a>

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

**Exact value (<code>const</code>):** <span id="dt-e805de47dbf256648f3b"><code>&#34;arm&#44;gic&#45;v5&#45;irs&#34;</code></span>

<a id="dt-80dd5e9af9fd7548ded5"></a>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-9a791a9d32f9060c4c8b"><code>1</code></span>

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

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

<a id="dt-4bf0322e06774e29a62d"></a>

**Item 1**

> <div id="dt-4e4a946225a06d4a53f6">
> <p style="white-space: pre-wrap">IRS config frames</p>
> </div>

<a id="dt-138da9e3cc6a47ca1da9"></a>

**Item 2**

> <div id="dt-4177cc23501f8138e1de">
> <p style="white-space: pre-wrap">IRS setlpi frames</p>
> </div>

<a id="dt-8aad698d250c211a5eca"></a>

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

<div id="dt-b3768498fa76deac60c1">
<p style="white-space: pre-wrap">Describe config and setlpi frames that are present. "ns-" stands for non-secure, "s-" for secure, "realm-" for realm and "el3-" for EL3.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-15ba84460f4fb10b2249"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-5974917b112899a68b5a"><code>8</code></span>

<a id="dt-6bdb9b50bec3da1852dd"></a>

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

> **Allowed values (<code>enum</code>):** <a id="dt-89ac03298392c7218570"></a> <span id="dt-a88e313d0d5277200749"><code>&#34;ns&#45;config&#34;</code></span>, <span id="dt-8df98bf0a35413e5f8f6"><code>&#34;s&#45;config&#34;</code></span>, <span id="dt-02ec7a5fd055682cca44"><code>&#34;realm&#45;config&#34;</code></span>, <span id="dt-2b972d35dd8572b12ef3"><code>&#34;el3&#45;config&#34;</code></span>, <span id="dt-e2b7d4ca84e888be1599"><code>&#34;ns&#45;setlpi&#34;</code></span>, <span id="dt-f97dfa2925e4b3a60594"><code>&#34;s&#45;setlpi&#34;</code></span>, <span id="dt-045d488586ab05caca3d"><code>&#34;realm&#45;setlpi&#34;</code></span>, <span id="dt-361ff659bef6663e49ca"><code>&#34;el3&#45;setlpi&#34;</code></span>

<a id="dt-3bcc8291805237b6c9ae"></a>

**<code>&#35;address&#45;cells</code> — not listed as required here**

**Allowed values (<code>enum</code>):** <a id="dt-c3b887678ced46205679"></a> <span id="dt-d78e292213d56566f214"><code>1</code></span>, <span id="dt-809737b62ee12bba2220"><code>2</code></span>

<a id="dt-975b326be3c4346c657f"></a>

**<code>&#35;size&#45;cells</code> — not listed as required here**

**Allowed values (<code>enum</code>):** <a id="dt-2d715afc517d8ef4f716"></a> <span id="dt-14a8c582b94f56b380a8"><code>1</code></span>, <span id="dt-762a12889c84a0390d05"><code>2</code></span>

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

**<code>ranges</code> — not listed as required here**

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

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

**<code>dma&#45;noncoherent</code> — not listed as required here**

<div id="dt-a1e46513dd1e0c5290e2">
<p style="white-space: pre-wrap">Present if the GIC IRS permits programming shareability and cacheability attributes but is connected to a non-coherent downstream interconnect.</p>
</div>

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

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

<div id="dt-a2a63aa65a79a1c4b133">
<p style="white-space: pre-wrap">CPUs managed by the IRS.</p>
</div>

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

**<code>arm&#44;iaffids</code> — required here**

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

<div id="dt-113f9bcb0623d09c7693">
<p style="white-space: pre-wrap">Interrupt AFFinity ID (IAFFID) associated with the CPU whose CPU node phandle is at the same index in the cpus array.</p>
</div>

<a id="dt-3499a535c059522ac212"></a>

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

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

**<code>&#94;its&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression**

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

<div id="dt-34fe38ba619916d75032">
<p style="white-space: pre-wrap">GICv5 has zero or more Interrupt Translation Services (ITS) that are used to route Message Signalled Interrupts (MSI) to the CPUs. Each ITS is connected to an IRS.</p>
</div>

<a id="dt-99e4e5f3ff27f70a4608"></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-6a4a8b5076d643d2c0a0"></a>

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

<a id="dt-849912c619ddd3195c6d"></a>

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

**Exact value (<code>const</code>):** <span id="dt-67ec2b95597f4e9e9af8"><code>&#34;arm&#44;gic&#45;v5&#45;its&#34;</code></span>

<a id="dt-98d7344a7c16a3970630"></a>

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

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

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

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

**Item 1**

> <div id="dt-bfcd54f1755f5773ed61">
> <p style="white-space: pre-wrap">ITS config frames</p>
> </div>

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

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

<div id="dt-3dce699d9c79009ba04a">
<p style="white-space: pre-wrap">Describe config frames that are present. "ns-" stands for non-secure, "s-" for secure, "realm-" for realm and "el3-" for EL3.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-68b8e3b215b5540f9ef7"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c1af97d8639338a3c50f"><code>4</code></span>

<a id="dt-39885130553d49dcfbf5"></a>

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

> **Allowed values (<code>enum</code>):** <a id="dt-7efd1034b5a02eb29453"></a> <span id="dt-128fac0b2a7d5835ad85"><code>&#34;ns&#45;config&#34;</code></span>, <span id="dt-ff3e93903490dda10bc8"><code>&#34;s&#45;config&#34;</code></span>, <span id="dt-7aa14c37208bcfbaa0c1"><code>&#34;realm&#45;config&#34;</code></span>, <span id="dt-dffdf8866d0599aca233"><code>&#34;el3&#45;config&#34;</code></span>

<a id="dt-842d3abeee592e3f81a5"></a>

**<code>&#35;address&#45;cells</code> — not listed as required here**

**Allowed values (<code>enum</code>):** <a id="dt-f8fc8bb472ce0b11d784"></a> <span id="dt-964d643a86a217ea0313"><code>1</code></span>, <span id="dt-d502c70a27c83150bf8b"><code>2</code></span>

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

**<code>&#35;size&#45;cells</code> — not listed as required here**

**Allowed values (<code>enum</code>):** <a id="dt-9ec58042ea8125345f4f"></a> <span id="dt-52282a6fefaa50d2b3b1"><code>1</code></span>, <span id="dt-a7d932232524fdbd48a3"><code>2</code></span>

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

**<code>ranges</code> — not listed as required here**

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

<a id="dt-80ca2b7a88f5be81f0a4"></a>

**<code>dma&#45;noncoherent</code> — not listed as required here**

<div id="dt-ef997a91d516e7d20238">
<p style="white-space: pre-wrap">Present if the GIC ITS permits programming shareability and cacheability attributes but is connected to a non-coherent downstream interconnect.</p>
</div>

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

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

<a id="dt-2ce513317ab78d4d2ae5"></a>

**<code>&#94;msi&#45;controller&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression**

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

<div id="dt-42b5d74d206cf8e26553">
<p style="white-space: pre-wrap">GICv5 ITS has one or more translate register frames.</p>
</div>

<a id="dt-bd14a1f5556f1f6e349a"></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-6d23bcfcb076ad68d2f9"></a>

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

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

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

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

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

<a id="dt-62027df9e054da3b6e81"></a>

**Item 1**

> <div id="dt-74d1c956ae0462c05935">
> <p style="white-space: pre-wrap">ITS translate frames</p>
> </div>

<a id="dt-07762f4cf4cb14b59ff1"></a>

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

<div id="dt-cce1b87ba2dade9ecf1d">
<p style="white-space: pre-wrap">Describe translate frames that are present. "ns-" stands for non-secure, "s-" for secure, "realm-" for realm and "el3-" for EL3.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-6e27b2cbbd9628fdf966"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-80c6d717a831bfe3c159"><code>4</code></span>

<a id="dt-2fab39b0c86a0cd3abad"></a>

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

> **Allowed values (<code>enum</code>):** <a id="dt-c3bf34fd9863361e419b"></a> <span id="dt-f08cb3a1da6bd75829a1"><code>&#34;ns&#45;translate&#34;</code></span>, <span id="dt-3ec71ccb1fbe39446651"><code>&#34;s&#45;translate&#34;</code></span>, <span id="dt-acd477c65dd31da90d02"><code>&#34;realm&#45;translate&#34;</code></span>, <span id="dt-fc16aa5869dcda1f8262"><code>&#34;el3&#45;translate&#34;</code></span>

<a id="dt-93fb93fba50174b90978"></a>

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

<div id="dt-41252a1bfbebe56fb280">
<p style="white-space: pre-wrap">The single msi-cell is the DeviceID of the device which will generate the MSI.</p>
</div>

**Exact value (<code>const</code>):** <span id="dt-f96a518231459fdb1a3a"><code>1</code></span>

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

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

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

**Required in this object (<code>required</code>):** <a id="dt-c45ef44b116f8af6f8ad"></a> <span id="dt-c92711d02ef54ee7d44f"><code>&#34;reg&#34;</code></span>, <span id="dt-31f2bfdb2bc4af8f2aa4"><code>&#34;reg&#45;names&#34;</code></span>, <span id="dt-137186dca2e8eef41041"><code>&#34;&#35;msi&#45;cells&#34;</code></span>, <span id="dt-bd6101579fa5eac36063"><code>&#34;msi&#45;controller&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-48902357c5cc87703517"></a> <span id="dt-8268faee3ec20e827dbe"><code>&#34;compatible&#34;</code></span>, <span id="dt-d65168d99e70c6084c35"><code>&#34;reg&#34;</code></span>, <span id="dt-1995ebf64f1ca57bc8b7"><code>&#34;reg&#45;names&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-f868c32e96f504bf4ce5"></a> <span id="dt-c93e7a8442a1e3ce24f2"><code>&#34;compatible&#34;</code></span>, <span id="dt-84e175858ea3ae9f281b"><code>&#34;reg&#34;</code></span>, <span id="dt-b22caedecfb5e611c4bf"><code>&#34;reg&#45;names&#34;</code></span>, <span id="dt-6e9157962d4223137e00"><code>&#34;cpus&#34;</code></span>, <span id="dt-bda88111647f91899f42"><code>&#34;arm&#44;iaffids&#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">interrupt-controller {
  compatible = "arm,gic-v5";

  #interrupt-cells = &lt;3&gt;;
  interrupt-controller;

  #address-cells = &lt;1&gt;;
  #size-cells = &lt;1&gt;;
  ranges;

  interrupts = &lt;1 25 4&gt;;

  irs@2f1a0000 {
    compatible = "arm,gic-v5-irs";
    reg = &lt;0x2f1a0000 0x10000&gt;;  // IRS_CONFIG_FRAME
    reg-names = "ns-config";

    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    ranges;

    cpus = &lt;&amp;cpu0&gt;, &lt;&amp;cpu1&gt;, &lt;&amp;cpu2&gt;, &lt;&amp;cpu3&gt;, &lt;&amp;cpu4&gt;, &lt;&amp;cpu5&gt;, &lt;&amp;cpu6&gt;, &lt;&amp;cpu7&gt;;
    arm,iaffids = /bits/ 16 &lt;0 1 2 3 4 5 6 7&gt;;

    its@2f120000 {
      compatible = "arm,gic-v5-its";
      reg = &lt;0x2f120000 0x10000&gt;;   // ITS_CONFIG_FRAME
      reg-names = "ns-config";

      #address-cells = &lt;1&gt;;
      #size-cells = &lt;1&gt;;
      ranges;

      msi-controller@2f130000 {
        reg = &lt;0x2f130000 0x10000&gt;;   // ITS_TRANSLATE_FRAME
        reg-names = "ns-translate";

        #msi-cells = &lt;1&gt;;
        msi-controller;
      };
    };
  };
};
</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>
