# Texas Instruments K3 NAVSS Unified DMA

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings / ti_

> Device-tree binding reference for Texas Instruments K3 NAVSS Unified DMA.

<!-- 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;dma&#47;ti&#47;k3&#45;udma&#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;Peter Ujfalusi &#60;peter&#46;ujfalusi&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The UDMA-P is intended to perform similar (but significantly upgraded)
functions as the packet-oriented DMA used on previous SoC devices. The UDMA-P
module supports the transmission and reception of various packet types.
The UDMA-P architecture facilitates the segmentation and reassembly of SoC DMA
data structure compliant packets to/from smaller data blocks that are natively
compatible with the specific requirements of each connected peripheral.
Multiple Tx and Rx channels are provided within the DMA which allow multiple
segmentation or reassembly operations to be ongoing. The DMA controller
maintains state information for each of the channels which allows packet
segmentation and reassembly operations to be time division multiplexed between
channels in order to share the underlying DMA hardware. An external DMA
scheduler is used to control the ordering and rate at which this multiplexing
occurs for Transmit operations. The ordering and rate of Receive operations
is indirectly controlled by the order in which blocks are pushed into the DMA
on the Rx PSI-L interface.</p>
<p style="white-space: pre-wrap">The UDMA-P also supports acting as both a UTC and UDMA-C for its internal
channels. Channels in the UDMA-P can be configured to be either Packet-Based
or Third-Party channels on a channel by channel basis.</p>
<p style="white-space: pre-wrap">All transfers within NAVSS is done between PSI-L source and destination
threads.
The peripherals serviced by UDMA can be PSI-L native (sa2ul, cpsw, etc) or
legacy, non PSI-L native peripherals. In the later case a special, small PDMA
is tasked to act as a bridge between the PSI-L fabric and the legacy
peripheral.</p>
<p style="white-space: pre-wrap">PDMAs can be configured via UDMAP peer registers to match with the
configuration of the legacy peripheral.</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>&#46;&#46;&#47;dma&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-dma/dma-controller.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8549616abc3b04702c51">[<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>

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

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

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

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

**Minimum value (<code>minimum</code>):** <span id="dt-8f8b83a64ec0d193780c"><code>1</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-6716015b16321833f453"><code>2</code></span>

<div id="dt-5c46628e19decc12e0c0">
<p style="white-space: pre-wrap">The cell is the PSI-L  thread ID of the remote (to UDMAP) end.
Valid ranges for thread ID depends on the data movement direction:
for source thread IDs (rx): 0 - 0x7fff
for destination thread IDs (tx): 0x8000 - 0xffff</p>
<p style="white-space: pre-wrap">Please refer to the device documentation for the PSI-L thread map and also
the PSI-L peripheral chapter for the correct thread ID.</p>
<p style="white-space: pre-wrap">When #dma-cells is 2, the second parameter is the channel ATYPE.</p>
</div>

<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;am654&#45;navss&#45;main&#45;udmap&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;am654&#45;navss&#45;mcu&#45;udmap&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ti&#44;j721e&#45;navss&#45;main&#45;udmap&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;ti&#44;j721e&#45;navss&#45;mcu&#45;udmap&#34;</code></span>

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

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

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

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">UDMA-P Control /Status Registers region</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">RX Channel Realtime Registers region</p>
> </div>

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

**Item 3**

> <div id="dt-5151e97c331b693ee0dd">
> <p style="white-space: pre-wrap">TX Channel Realtime Registers region</p>
> </div>

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

**Item 4**

> <div id="dt-e7b71b4619e949c538b1">
> <p style="white-space: pre-wrap">TX Configuration Registers region</p>
> </div>

<a id="dt-55b482bd3ef74ad8e49c"></a>

**Item 5**

> <div id="dt-9034b08616e8a84a1200">
> <p style="white-space: pre-wrap">RX Configuration Registers region</p>
> </div>

<a id="dt-7eb2e2ea414ce6daa055"></a>

**Item 6**

> <div id="dt-3ae17db5a7c599245517">
> <p style="white-space: pre-wrap">RX Flow Configuration Registers region</p>
> </div>

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

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

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-69afd9f8af3b0c5757d2"><code>&#34;gcfg&#34;</code></span>

<a id="dt-12013039402717d72b48"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;rchanrt&#34;</code></span>

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

**Item 3**

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

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

**Item 4**

> **Exact value (<code>const</code>):** <span id="dt-98e4b3caabf49b98c17d"><code>&#34;tchan&#34;</code></span>

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

**Item 5**

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

<a id="dt-6163748256066003777f"></a>

**Item 6**

> **Exact value (<code>const</code>):** <span id="dt-81567d5e5cafc8c025ce"><code>&#34;rflow&#34;</code></span>

<a id="dt-7f9784704b6acffabda3"></a>

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

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

<a id="dt-0b888057e96bd2cecf0d"></a>

### <code>ti&#44;ringacc</code> — required here

<div id="dt-81b706d181f437883bfa">
<p style="white-space: pre-wrap">phandle to the ring accelerator node</p>
</div>

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

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

### <code>ti&#44;sci&#45;rm&#45;range&#45;tchan</code> — required here

<div id="dt-3369bdecb4cdac3cddad">
<p style="white-space: pre-wrap">Array of UDMA tchan resource subtypes for resource allocation for this
host</p>
</div>

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-1909e03a7e9422357b61"><code>255</code></span>

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

### <code>ti&#44;sci&#45;rm&#45;range&#45;rchan</code> — required here

<div id="dt-e1676fac5860f39eb5c5">
<p style="white-space: pre-wrap">Array of UDMA rchan resource subtypes for resource allocation for this
host</p>
</div>

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

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

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

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

### <code>ti&#44;sci&#45;rm&#45;range&#45;rflow</code> — required here

<div id="dt-47d55c8bf685ba550503">
<p style="white-space: pre-wrap">Array of UDMA rflow resource subtypes for resource allocation for this
host</p>
</div>

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-3bf43a0de0d5ddff73f5"><code>255</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;dma&#45;cells&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;reg&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;reg&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;msi&#45;parent&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;ti&#44;sci&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;ti&#44;sci&#45;dev&#45;id&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;ti&#44;ringacc&#34;</code></span>, <span id="dt-727c9b818c335e022c0e"><code>&#34;ti&#44;sci&#45;rm&#45;range&#45;tchan&#34;</code></span>, <span id="dt-1a79af41bdb7f37c802f"><code>&#34;ti&#44;sci&#45;rm&#45;range&#45;rchan&#34;</code></span>, <span id="dt-66579c0187208772d10e"><code>&#34;ti&#44;sci&#45;rm&#45;range&#45;rflow&#34;</code></span>

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

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

> <a id="dt-0c7b6d12024f922c1b96"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-59eaab5b4264fb7d7bf2"></a>
>
> #### <code>&#35;dma&#45;cells</code> — not listed as required here
>
> **Exact value (<code>const</code>):** <span id="dt-56a5d275a144d7c22eb1"><code>2</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-ea5e36f4eb30ed92bc4f"></a>
>
> #### <code>ti&#44;udma&#45;atype</code> — required here
>
> <div id="dt-32a22578d3397864c817">
> <p style="white-space: pre-wrap">ATYPE value which should be used by non slave channels</p>
> </div>
>
> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-cf47ba474489b178d7f7">[<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-824165741bab07e919e7"></a> <span id="dt-0be16f81402541b26aff"><code>&#34;ti&#44;udma&#45;atype&#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">cbass_main {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    cbass_main_navss: navss@30800000 {
        compatible = "simple-mfd";
        #address-cells = &lt;2&gt;;
        #size-cells = &lt;2&gt;;
        dma-coherent;
        dma-ranges;
        ranges = &lt;0x0 0x30800000 0x0 0x30800000 0x0 0x05000000&gt;;

        ti,sci-dev-id = &lt;118&gt;;

        main_udmap: dma-controller@31150000 {
            compatible = "ti,am654-navss-main-udmap";
            reg = &lt;0x0 0x31150000 0x0 0x100&gt;,
                  &lt;0x0 0x34000000 0x0 0x100000&gt;,
                  &lt;0x0 0x35000000 0x0 0x100000&gt;,
                  &lt;0x0 0x30b00000 0x0 0x20000&gt;,
                  &lt;0x0 0x30c00000 0x0 0x8000&gt;,
                  &lt;0x0 0x30d00000 0x0 0x4000&gt;;
            reg-names = "gcfg", "rchanrt", "tchanrt", "tchan", "rchan", "rflow";
            #dma-cells = &lt;1&gt;;

            ti,ringacc = &lt;&amp;ringacc&gt;;

            msi-parent = &lt;&amp;inta_main_udmass&gt;;

            ti,sci = &lt;&amp;dmsc&gt;;
            ti,sci-dev-id = &lt;188&gt;;

            ti,sci-rm-range-tchan = &lt;0x1&gt;, /* TX_HCHAN */
                                    &lt;0x2&gt;; /* TX_CHAN */
            ti,sci-rm-range-rchan = &lt;0x4&gt;, /* RX_HCHAN */
                                    &lt;0x5&gt;; /* RX_CHAN */
            ti,sci-rm-range-rflow = &lt;0x6&gt;; /* GP RFLOW */
        };
    };
};
</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>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright (C) 2019 Texas Instruments Incorporated</span></p>

<p id="dt-comment-2"><strong>Line 3:</strong> <span> Author: Peter Ujfalusi &lt;peter.ujfalusi@ti.com&gt;</span></p>

<p id="dt-comment-3"><strong>Line 103:</strong> <span> Should be enough</span></p>

<p id="dt-comment-4"><strong>Line 112:</strong> <span> Should be enough</span></p>

<p id="dt-comment-5"><strong>Line 121:</strong> <span> Should be enough</span></p>

</details>
