# Texas Instruments K3 Interrupt Router

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

> Device-tree binding reference for Texas Instruments K3 Interrupt Router.

<!-- SPDX-License-Identifier: (GPL-2.0 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;sci&#45;intr&#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;Lokesh Vutla &#60;lokeshvutla&#64;ti&#46;com&#62;&#34;</code></span>

<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;arm&#47;keystone&#47;ti&#44;k3&#45;sci&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-arm/keystone/ti-k3-sci-common.md#dt-root>)</span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Interrupt Router (INTR) module provides a mechanism to mux M
interrupt inputs to N interrupt outputs, where all M inputs are selectable
to be driven per N output.</p>
<pre><code>                                 Interrupt Router
                             +----------------------+
                             |  Inputs     Outputs  |
        +-------+            | +------+    +-----+  |
        | GPIO  |-----------&gt;| | irq0 |    |  0  |  |       Host IRQ
        +-------+            | +------+    +-----+  |      controller
                             |    .           .     |      +-------+
        +-------+            |    .           .     |-----&gt;|  IRQ  |
        | INTA  |-----------&gt;|    .           .     |      +-------+
        +-------+            |    .        +-----+  |
                             | +------+    |  N  |  |
                             | | irqM |    +-----+  |
                             | +------+             |
                             |                      |
                             +----------------------+</code></pre>
<p style="white-space: pre-wrap">There is one register per output (MUXCNTL_N) that controls the selection.
Configuration of these MUXCNTL_N registers is done by a system controller
(like the Device Memory and Security Controller on K3 AM654 SoC). System
controller will keep track of the used and unused registers within the Router.
Driver should request the system controller to get the range of GIC IRQs
assigned to the requesting hosts. It is the drivers responsibility to keep
track of Host IRQs.</p>
<p style="white-space: pre-wrap">Communication between the host processor running an OS and the system
controller happens through a protocol called TI System Control Interface
(TISCI protocol).</p>
</div>

<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;ti&#44;sci&#45;intr&#34;</code></span>

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

### <code>ti&#44;intr&#45;trigger&#45;type</code> — not listed as required here

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

**Allowed values (<code>enum</code>):** <a id="dt-948203c6b5843f8e6f1e"></a> <span id="dt-1cfd6905c3c68d47b48d"><code>1</code></span>, <span id="dt-c62907f47ab54be522dc"><code>4</code></span>

<div id="dt-e3358c19731f445ddf03">
<pre><code>Should be one of the following.
  1 = If intr supports edge triggered interrupts.
  4 = If intr supports level triggered interrupts.</code></pre>
</div>

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

### <code>reg</code> — not listed as 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-8586fac2d9a71adf4795"></a>

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

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

<div id="dt-0cc2c51365b6879fba3b">
<pre><code>Number of cells in interrupt specifier. Depends on ti,intr-trigger-type:
- If ti,intr-trigger-type is present: must be 1
  The 1st cell should contain interrupt router input hw number.
- If ti,intr-trigger-type is absent: must be 2
  The 1st cell should contain interrupt router input hw number.
  The 2nd cell should contain interrupt trigger type (preserved by router).</code></pre>
</div>

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

### <code>ti&#44;interrupt&#45;ranges</code> — required here

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

<div id="dt-7c3fac4a8dd5e87ccdb5">
<p style="white-space: pre-wrap">Interrupt ranges that converts the INTR output hw irq numbers
to parents's input interrupt numbers.</p>
</div>

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

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

> <a id="dt-fc9d8abf96c8c5521a54"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-bbd93dc16d1b670b0079"></a>
>
> **Item 1**
>
> > <div id="dt-d33df672ff695a639a71">
> > <p style="white-space: pre-wrap">"output_irq" specifies the base for intr output irq</p>
> > </div>
>
> <a id="dt-ee8e0a85c805ca514d39"></a>
>
> **Item 2**
>
> > <div id="dt-39a02988d7bf241fdf7c">
> > <p style="white-space: pre-wrap">"parent's input irq" specifies the base for parent irq</p>
> > </div>
>
> <a id="dt-3f53faa1cf5e5b61f2ad"></a>
>
> **Item 3**
>
> > <div id="dt-3b3382c956a6eff3dee9">
> > <p style="white-space: pre-wrap">"limit" specifies the limit for translation</p>
> > </div>

<a id="dt-158e3f6339df9dc0e448"></a>

## Condition (<code>if</code>)

> **Required in this object (<code>required</code>):** <a id="dt-14e52113574fb38ea542"></a> <span id="dt-29f94e3578414110598d"><code>&#34;ti&#44;intr&#45;trigger&#45;type&#34;</code></span>

<a id="dt-94d3067a06aec87aad7f"></a>

## When the condition matches (<code>then</code>)

> <a id="dt-d3da345ec82b9041251c"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-37949ae8b6394c43abe0"></a>
>
> #### <code>&#35;interrupt&#45;cells</code> — not listed as required here
>
> **Exact value (<code>const</code>):** <span id="dt-dcd50b1350f33dcfec65"><code>1</code></span>
>
> <div id="dt-ef545cceb724fa0806b4">
> <p style="white-space: pre-wrap">Interrupt ID only. Interrupt type is specified globally</p>
> </div>

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

## When the condition does not match (<code>else</code>)

> <a id="dt-cf075a4b84ee9b101feb"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-01f57285a79c5f3b735d"></a>
>
> #### <code>&#35;interrupt&#45;cells</code> — not listed as required here
>
> **Exact value (<code>const</code>):** <span id="dt-ab0e3cc49dc6f140d45f"><code>2</code></span>
>
> <div id="dt-ed2d2390e6155c837f87">
> <p style="white-space: pre-wrap">Interrupt ID and corresponding interrupt type</p>
> </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;interrupt&#45;controller&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;&#35;interrupt&#45;cells&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;ti&#44;sci&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;ti&#44;sci&#45;dev&#45;id&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;ti&#44;interrupt&#45;ranges&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">main_gpio_intr: interrupt-controller0 {
    compatible = "ti,sci-intr";
    ti,intr-trigger-type = &lt;1&gt;;
    interrupt-controller;
    interrupt-parent = &lt;&amp;gic500&gt;;
    #interrupt-cells = &lt;1&gt;;
    ti,sci = &lt;&amp;dmsc&gt;;
    ti,sci-dev-id = &lt;131&gt;;
    ti,interrupt-ranges = &lt;0 360 32&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">interrupt-controller {
    compatible = "ti,sci-intr";
    interrupt-controller;
    interrupt-parent = &lt;&amp;gic500&gt;;
    #interrupt-cells = &lt;2&gt;;
    ti,sci = &lt;&amp;dmsc&gt;;
    ti,sci-dev-id = &lt;131&gt;;
    ti,interrupt-ranges = &lt;0 360 32&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 OR BSD-2-Clause)</span></p>

</details>
