# Open PIC Interrupt Controller

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

> Device-tree binding reference for Open PIC 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;chrp&#44;open&#45;pic&#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;Rob Herring &#60;robh&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This binding specifies what properties must be available in the device tree representation of an Open PIC compliant interrupt controller.  This binding is based on the binding defined for Open PIC in [1] and is a superset of that binding.</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-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**
>
> > **Exact value (<code>const</code>):** <span id="dt-5deec2612224d8d915da"><code>&#34;fsl&#44;mpic&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;chrp&#44;open&#45;pic&#34;</code></span>

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

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;chrp&#44;open&#45;pic&#34;</code></span>

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

### <code>device&#95;type</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-7d192a958d67add1e4ef"><code>&#34;open&#45;pci&#34;</code></span>

**Deprecated (<code>deprecated</code>):** <span id="dt-ddb04a48694751e5161b"><code>true</code></span>

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

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

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

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

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

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

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

<div id="dt-0cc2c51365b6879fba3b">
<p style="white-space: pre-wrap">A value of 4 means that interrupt specifiers contain the interrupt-type or type-specific information cells.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-7147da448b17f2cabadf"></a> <span id="dt-720801f5b436f8a4de11"><code>2</code></span>, <span id="dt-3859424c9d8c30b1232c"><code>4</code></span>

<a id="dt-17295c3619c0e7d4d966"></a>

### <code>pic&#45;no&#45;reset</code> — not listed as required here

<div id="dt-6c118c9c078c1a711f2d">
<p style="white-space: pre-wrap">Indicates the PIC shall not be reset during runtime initialization.</p>
</div>

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

<a id="dt-344064c4bc87e6a64f0d"></a>

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

<div id="dt-d9d985f1156aeef2a5a2">
<p style="white-space: pre-wrap">If present, non-IPI interrupts will be routed to a single CPU at a time.</p>
</div>

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

<a id="dt-93353c05c25986e5e045"></a>

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

<div id="dt-705e6488f5980d74d3f6">
<p style="white-space: pre-wrap">Some MPICs do not correctly report the number of hardware sources in the global feature registers. This value, if specified, overrides the value read from MPIC_GREG_FEATURE_LAST_SRC.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-580a71700df7f2c4818d">[<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-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupt&#45;controller&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;&#35;interrupt&#45;cells&#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@40000 {
    compatible = "chrp,open-pic";
    reg = &lt;0x40000 0x40000&gt;;
    interrupt-controller;
    #address-cells = &lt;0&gt;;
    #interrupt-cells = &lt;2&gt;;
    pic-no-reset;
};
</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>
