# TI PRU-ICSS Local Interrupt Controller

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

> Device-tree binding reference for TI PRU-ICSS Local 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;ti&#44;pruss&#45;intc&#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;Suman Anna &#60;s&#45;anna&#64;ti&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Each PRU-ICSS has a single interrupt controller instance that is common
to all the PRU cores. Most interrupt controllers can route 64 input events
which are then mapped to 10 possible output interrupts through two levels
of mapping. The input events can be triggered by either the PRUs and/or
various other PRUSS internal and external peripherals. The first 2 output
interrupts (0, 1) are fed exclusively to the internal PRU cores, with the
remaining 8 (2 through 9) connected to external interrupt controllers
including the MPU and/or other PRUSS instances, DSPs or devices.</p>
<p style="white-space: pre-wrap">The property "ti,irqs-reserved" is used for denoting the connection
differences on the output interrupts 2 through 9. If this property is not
defined, it implies that all the PRUSS INTC output interrupts 2 through 9
(host_intr0 through host_intr7) are connected exclusively to the Arm interrupt
controller.</p>
<p style="white-space: pre-wrap">The K3 family of SoCs can handle 160 input events that can be mapped to 20
different possible output interrupts. The additional output interrupts (10
through 19) are connected to new sub-modules within the ICSSG instances.</p>
<p style="white-space: pre-wrap">This interrupt-controller node should be defined as a child node of the
corresponding PRUSS node. The node should be named "interrupt-controller".</p>
</div>

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

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

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;interrupt&#45;controller&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;&#34;</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;ti&#44;pruss&#45;intc&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;icssg&#45;intc&#34;</code></span>

<div id="dt-e84064a2d568e9bcb9c3">
<pre><code>Use "ti,pruss-intc" for OMAP-L13x/AM18x/DA850 SoCs,
                        AM335x family of SoCs,
                        AM437x family of SoCs,
                        AM57xx family of SoCs
                        66AK2G family of SoCs
Use "ti,icssg-intc" for K3 AM65x, J721E and AM64x family of SoCs</code></pre>
</div>

<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-c2de09e7f7fd211b679d"></a>

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

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">All the interrupts generated towards the main host processor in the SoC.
A shared interrupt can be skipped if the desired destination and usage is
by a different processor/device.</p>
</div>

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

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

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

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

<a id="dt-77e94e63ca0b20bb5ef1"></a>

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

> **String pattern (<code>pattern</code>):** <span id="dt-4e67ccfb4b8318ab13ce"><code>&#34;host&#95;intr&#91;0&#45;7&#93;&#34;</code></span>

<div id="dt-3c9c5232b17bbf88febb">
<p style="white-space: pre-wrap">Should use one of the above names for each valid host event interrupt
connected to Arm interrupt controller, the name should match the
corresponding host event interrupt number.</p>
</div>

<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">
<p style="white-space: pre-wrap">Client users shall use the PRU System event number (the interrupt source
that the client is interested in) [cell 1], PRU channel [cell 2] and PRU
host_event (target) [cell 3] as the value of the interrupts property in
their node.  The system events can be mapped to some output host
interrupts through 2 levels of many-to-one mapping i.e. events to channel
mapping and channels to host interrupts so through this property entire
mapping is provided.</p>
</div>

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

### <code>ti&#44;irqs&#45;reserved</code> — not listed as required here

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

<div id="dt-8bd36f888289a74de266">
<pre><code>Bitmask of host interrupts between 0 and 7 (corresponding to PRUSS INTC
output interrupts 2 through 9) that are not connected to the Arm interrupt
controller or are shared and used by other devices or processors in the
SoC. Define this property when any of 8 interrupts should not be handled
by Arm interrupt controller.
  Eg: - AM437x and 66AK2G SoCs do not have "host_intr5" interrupt
        connected to MPU
      - AM65x and J721E SoCs have "host_intr5", "host_intr6" and
        "host_intr7" interrupts connected to MPU, and other ICSSG
        instances.
      - AM64x SoCs have all the 8 host interrupts connected to various
        other SoC entities</code></pre>
</div>

**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;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;interrupt&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;interrupt&#45;controller&#34;</code></span>, <span id="dt-c127a87237cb22622910"><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">/* AM33xx PRU-ICSS */
pruss: pruss@0 {
    compatible = "ti,am3356-pruss";
    reg = &lt;0x0 0x80000&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    ranges;

    pruss_intc: interrupt-controller@20000 {
        compatible = "ti,pruss-intc";
        reg = &lt;0x20000 0x2000&gt;;
        interrupts = &lt;20 21 22 23 24 25 26 27&gt;;
        interrupt-names = "host_intr0", "host_intr1",
                          "host_intr2", "host_intr3",
                          "host_intr4", "host_intr5",
                          "host_intr6", "host_intr7";
        interrupt-controller;
        #interrupt-cells = &lt;3&gt;;
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">
/* AM4376 PRU-ICSS */
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
pruss@0 {
    compatible = "ti,am4376-pruss1";
    reg = &lt;0x0 0x40000&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    ranges;

    interrupt-controller@20000 {
        compatible = "ti,pruss-intc";
        reg = &lt;0x20000 0x2000&gt;;
        interrupt-controller;
        #interrupt-cells = &lt;3&gt;;
        interrupts = &lt;GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH&gt;,
               &lt;GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH&gt;,
               &lt;GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH&gt;,
               &lt;GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH&gt;,
               &lt;GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH&gt;,
               &lt;GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH&gt;,
               &lt;GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH&gt;;
        interrupt-names = "host_intr0", "host_intr1",
                          "host_intr2", "host_intr3",
                          "host_intr4",
                          "host_intr6", "host_intr7";
        ti,irqs-reserved = /bits/ 8 &lt;0x20&gt;; /* BIT(5) */
    };
};
</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>
