# ARM Generic Interrupt Controller v1 and v2

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

> Device-tree binding reference for ARM Generic Interrupt Controller v1 and v2.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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&#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;Marc Zyngier &#60;marc&#46;zyngier&#64;arm&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">ARM SMP cores are often associated with a GIC, providing per processor
interrupts (PPI), shared processor interrupts (SPI) and software
generated interrupts (SGI).</p>
<p style="white-space: pre-wrap">Primary GIC is attached directly to the CPU and typically has PPIs and SGIs.
Secondary GICs are cascaded into the upward interrupt controller and do not
have PPIs or SGIs.</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-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;arm&#44;arm11mp&#45;gic&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;arm&#44;cortex&#45;a15&#45;gic&#34;</code></span>, <span id="dt-b7d19de74fd35364d49f"><code>&#34;arm&#44;cortex&#45;a7&#45;gic&#34;</code></span>, <span id="dt-6cbdeefc52e7132bc62c"><code>&#34;arm&#44;cortex&#45;a5&#45;gic&#34;</code></span>, <span id="dt-fd88adda17227ca32776"><code>&#34;arm&#44;cortex&#45;a9&#45;gic&#34;</code></span>, <span id="dt-f0dfbb755d86acc4c265"><code>&#34;arm&#44;eb11mp&#45;gic&#34;</code></span>, <span id="dt-fd90c4a6b4c12fdce245"><code>&#34;arm&#44;gic&#45;400&#34;</code></span>, <span id="dt-e2dcb0e367ca5c3b7bca"><code>&#34;arm&#44;pl390&#34;</code></span>, <span id="dt-8f172ba5f5ba57694b17"><code>&#34;arm&#44;tc11mp&#45;gic&#34;</code></span>, <span id="dt-818bfc86902057a0cfa5"><code>&#34;qcom&#44;msm&#45;8660&#45;qgic&#34;</code></span>, <span id="dt-40cc8e0354bd3c46c2b0"><code>&#34;qcom&#44;msm&#45;qgic2&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;arm&#44;gic&#45;400&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-a400b9f7a23cd39bfbe8"></a> <span id="dt-150639d9ec5a95647f02"><code>&#34;arm&#44;cortex&#45;a15&#45;gic&#34;</code></span>, <span id="dt-1d85ec3bb3f930ba81fc"><code>&#34;arm&#44;cortex&#45;a7&#45;gic&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> <a id="dt-e626d61e9d5d76cc48f9"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-6b46935eab08de6d1f0a"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-b4cf31a5f463012e1429"><code>&#34;arm&#44;arm1176jzf&#45;devchip&#45;gic&#34;</code></span>
>
> <a id="dt-5ea82ea034747ba6da29"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-e9c55cb91230c7ee5a28"><code>&#34;arm&#44;arm11mp&#45;gic&#34;</code></span>

<a id="dt-61219c29f99de6d21702"></a>

**Rule 4**

> <a id="dt-a1b1c435b08c85ff96c7"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-4758c8f9c99bfa28b10c"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-4c3894ced8f7125f7050"><code>&#34;brcm&#44;brahma&#45;b15&#45;gic&#34;</code></span>
>
> <a id="dt-c99d921c49bf15e79633"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-9e0f2ef968dd632f09b7"><code>&#34;arm&#44;cortex&#45;a15&#45;gic&#34;</code></span>

<a id="dt-6932ba24e194ea67730d"></a>

**Rule 5**

> <a id="dt-60b05687bf538cc49bfe"></a>
>
> **Exactly one of these rules must match (<code>oneOf</code>)**
>
> <a id="dt-fe37ad31d1bc8776d9da"></a>
>
> **Rule 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-061720e245c1f6ea3fe7"><code>&#34;nvidia&#44;tegra210&#45;agic&#34;</code></span>
>
> <a id="dt-5a8d25e0f3709aac957c"></a>
>
> **Rule 2**
>
> > <a id="dt-4243f76467fcc898b839"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-4d261c2bd48dbe4604b3"></a>
> >
> > **Item 1**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-511dd41c43e042c4bcbe"></a> <span id="dt-2bbb0736ceb5bf03a3c7"><code>&#34;nvidia&#44;tegra186&#45;agic&#34;</code></span>, <span id="dt-561c1bbdeac4adb9ee5a"><code>&#34;nvidia&#44;tegra194&#45;agic&#34;</code></span>, <span id="dt-03409a1938d45dfbaf20"><code>&#34;nvidia&#44;tegra234&#45;agic&#34;</code></span>, <span id="dt-3e1eeaa0c205812ba8f3"><code>&#34;nvidia&#44;tegra264&#45;agic&#34;</code></span>
> >
> > <a id="dt-6c62cd8448b04b4b88b0"></a>
> >
> > **Item 2**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-ed7ebd530ceab0524cc3"><code>&#34;nvidia&#44;tegra210&#45;agic&#34;</code></span>

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

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

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

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

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

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

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

### <code>&#35;size&#45;cells</code> — not listed as 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-8586fac2d9a71adf4795"></a>

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

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

<div id="dt-0cc2c51365b6879fba3b">
<p style="white-space: pre-wrap">The 1st cell is the interrupt type; 0 for SPI interrupts, 1 for PPI
interrupts.</p>
<p style="white-space: pre-wrap">The 2nd cell contains the interrupt number for the interrupt type.
SPI interrupts are in the range [0-987].  PPI interrupts are in the
range [0-15].</p>
<pre><code>The 3rd cell is the flags, encoded as follows:
  bits[3:0] trigger type and level flags.
    1 = low-to-high edge triggered
    2 = high-to-low edge triggered (invalid for SPIs)
    4 = active high level-sensitive
    8 = active low level-sensitive (invalid for SPIs).
  bits[15:8] PPI interrupt cpu mask.  Each bit corresponds to each of
  the 8 possible cpus attached to the GIC.  A bit set to '1' indicated
  the interrupt is wired to that CPU.  Only valid for PPI interrupts.
  Also note that the configurability of PPI interrupts is IMPLEMENTATION
  DEFINED and as such not guaranteed to be present (most SoC available
  in 2014 seem to ignore the setting of this flag and use the hardware
  default value).</code></pre>
</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(s) and size of the GIC registers. The
first region is the GIC distributor register base and size. The 2nd region
is the GIC cpu interface register base and size.</p>
<p style="white-space: pre-wrap">For GICv2 with virtualization extensions, additional regions are
required for specifying the base physical address and size of the VGIC
registers. The first additional region is the GIC virtual interface
control register base and size. The 2nd additional region is the GIC
virtual cpu interface register base and size.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-4b3e7791b11b96c3db87"><code>2</code></span>

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

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

### <code>ranges</code> — not listed as 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">Interrupt source of the parent interrupt controller on secondary GICs, or VGIC maintenance interrupt on primary GIC (see "GICv2 with virtualization extensions" paragraph in the "reg" property).</p>
</div>

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

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

### <code>cpu&#45;offset</code> — not listed as required here

<div id="dt-be1b3e066486cc739c9d">
<p style="white-space: pre-wrap">per-cpu offset within the distributor and cpu interface regions, used when the GIC doesn't have banked registers. The offset is cpu-offset * cpu-nr.</p>
</div>

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

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

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

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

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

<a id="dt-041d7cd76b652a5de06a"></a>

### <code>clock&#45;names</code> — not listed as required here

<div id="dt-d153c20aa0faf1618c41">
<p style="white-space: pre-wrap">List of names for the GIC clock input(s). Valid clock names depend on the GIC variant.</p>
</div>

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

#### Exactly one of these rules must match (<code>oneOf</code>)

<a id="dt-661af0885579a69ba337"></a>

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-af270e75bfa58b750c1f"><code>&#34;ic&#95;clk&#34;</code></span>

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

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-7e3b7c18998aafbf06f2"><code>&#34;PERIPHCLKEN&#34;</code></span>

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

**Rule 3**

> <a id="dt-bdcf7746c4c74f18256e"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-23df87d96ac6d9cb502e"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-9c758e9593fabdf5635d"><code>&#34;PERIPHCLK&#34;</code></span>
>
> <a id="dt-2869e9860c9b81bafcac"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-8902fa4b002c629652e2"><code>&#34;PERIPHCLKEN&#34;</code></span>

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

**Rule 4**

> **Exact value (<code>const</code>):** <span id="dt-3f0a7cbeaf10ab7566c3"><code>&#34;clk&#34;</code></span>

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

**Rule 5**

> **Exact value (<code>const</code>):** <span id="dt-af456848fa403987397a"><code>&#34;gclk&#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-df397b2b98a8cf834e89"></a>

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-86a6993fcd90367ac91d"><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;reg&#34;</code></span>

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

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

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

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

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

<div id="dt-4346c1deea601baacf17">
<p style="white-space: pre-wrap">* GICv2m extension for MSI/MSI-x support (Optional)</p>
<p style="white-space: pre-wrap">Certain revisions of GIC-400 supports MSI/MSI-x via V2M register frame(s).
This is enabled by specifying v2m sub-node(s).</p>
</div>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-2d0b57e3d7a2c59c2f33"><code>&#34;arm&#44;gic&#45;v2m&#45;frame&#34;</code></span>

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

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

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

<a id="dt-74f15068778f42e11fdb"></a>

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

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

<div id="dt-dddfb52d894b512020ca">
<p style="white-space: pre-wrap">GICv2m MSI interface register base and size</p>
</div>

<a id="dt-7969514ffb4058133f8f"></a>

**<code>arm&#44;msi&#45;base&#45;spi</code> — not listed as required here**

<div id="dt-65a5e382c6b32f14692b">
<p style="white-space: pre-wrap">When the MSI_TYPER register contains an incorrect value, this property should contain the SPI base of the MSI frame, overriding the HW value.</p>
</div>

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

<a id="dt-90ee099bd64ee523e008"></a>

**<code>arm&#44;msi&#45;num&#45;spis</code> — not listed as required here**

<div id="dt-ad59d2a771fc185114c9">
<p style="white-space: pre-wrap">When the MSI_TYPER register contains an incorrect value, this property should contain the number of SPIs assigned to the frame, overriding the HW value.</p>
</div>

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

**Required in this object (<code>required</code>):** <a id="dt-962f7b61c22a9b378058"></a> <span id="dt-96555031f037e82c35ff"><code>&#34;compatible&#34;</code></span>, <span id="dt-dcbbb4222648cf59df2e"><code>&#34;msi&#45;controller&#34;</code></span>, <span id="dt-ae38c31fee3ae2277508"><code>&#34;reg&#34;</code></span>

<a id="dt-8dbe0ef2285ce88923fd"></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-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">// GICv1
intc: interrupt-controller@fff11000 {
  compatible = "arm,cortex-a9-gic";
  #interrupt-cells = &lt;3&gt;;
  #address-cells = &lt;1&gt;;
  interrupt-controller;
  reg = &lt;0xfff11000 0x1000&gt;,
        &lt;0xfff10100 0x100&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">// GICv2
interrupt-controller@2c001000 {
  compatible = "arm,cortex-a15-gic";
  #interrupt-cells = &lt;3&gt;;
  interrupt-controller;
  reg = &lt;0x2c001000 0x1000&gt;,
        &lt;0x2c002000 0x2000&gt;,
        &lt;0x2c004000 0x2000&gt;,
        &lt;0x2c006000 0x2000&gt;;
  interrupts = &lt;1 9 0xf04&gt;;
};
</code></pre>

<pre id="dt-d0212a4cd671f89a0b40"><code class="language-dts">// GICv2m extension for MSI/MSI-x support
interrupt-controller@e1101000 {
  compatible = "arm,gic-400";
  #interrupt-cells = &lt;3&gt;;
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;1&gt;;
  interrupt-controller;
  interrupts = &lt;1 8 0xf04&gt;;
  ranges = &lt;0 0xe1100000 0x100000&gt;;
  reg = &lt;0xe1110000 0x01000&gt;,
        &lt;0xe112f000 0x02000&gt;,
        &lt;0xe1140000 0x10000&gt;,
        &lt;0xe1160000 0x10000&gt;;

  v2m0: v2m@80000 {
    compatible = "arm,gic-v2m-frame";
    msi-controller;
    reg = &lt;0x80000 0x1000&gt;;
  };

  //...

  v2mN: v2m@90000 {
    compatible = "arm,gic-v2m-frame";
    msi-controller;
    reg = &lt;0x90000 0x1000&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</span></p>

<p id="dt-comment-1"><strong>Line 132:</strong> <span> for "arm,arm11mp-gic"</span></p>

<p id="dt-comment-2"><strong>Line 133:</strong> <span> for "arm,cortex-a15-gic"</span></p>

<p id="dt-comment-3"><strong>Line 134:</strong> <span> for "arm,cortex-a9-gic"</span></p>

<p id="dt-comment-4"><strong>Line 137:</strong> <span> for "arm,gic-400" and "nvidia,tegra210"</span></p>

<p id="dt-comment-5"><strong>Line 138:</strong> <span> for "arm,pl390"</span></p>

</details>
