# PowerQUICC QE Time-slot assigner (TSA) controller

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Soc bindings / fsl / cpm_qe_

> Device-tree binding reference for PowerQUICC QE Time-slot assigner (TSA) 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;soc&#47;fsl&#47;cpm&#95;qe&#47;fsl&#44;qe&#45;tsa&#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;Herve Codina &#60;herve&#46;codina&#64;bootlin&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The TSA is the time-slot assigner that can be found on some PowerQUICC SoC. Its purpose is to route some TDM time-slots to other internal serial controllers.</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-cc3709943397035582d2"></a>

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

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;fsl&#44;mpc8321&#45;tsa&#34;</code></span>

<a id="dt-0891c69625632ea817fd"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-f1f862a3cfab3ac620c8"><code>&#34;fsl&#44;qe&#45;tsa&#34;</code></span>

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

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

<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">SI (Serial Interface) register base</p>
> </div>

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

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">SI RAM base</p>
> </div>

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

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

<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;si&#95;regs&#34;</code></span>

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

**Item 2**

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

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

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

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

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

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

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

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

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

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

### <code>&#94;tdm&#64;&#91;0&#45;3&#93;&#36;</code> — name matches this regular expression

<div id="dt-da80ce8f31b49a03d277">
<p style="white-space: pre-wrap">The TDM managed by this controller</p>
</div>

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

<a id="dt-491908553c00a95db4cc"></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-2afd1c372455190b5738"></a>

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

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

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

**Minimum value (<code>minimum</code>):** <span id="dt-f8d218acd8bb911ee4b1"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-bcd7f18d533bb9b380ce"><code>3</code></span>

<div id="dt-64af10b5e2d063c7e4be">
<p style="white-space: pre-wrap">The TDM number for this TDM, 0 for TDMa, 1 for TDMb, 2 for TDMc and 3 for TDMd.</p>
</div>

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

**<code>fsl&#44;common&#45;rxtx&#45;pins</code> — not listed as required here**

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

<div id="dt-cda23f58b629922b8407">
<p style="white-space: pre-wrap">The hardware can use four dedicated pins for Tx clock, Tx sync, Rx clock and Rx sync or use only two pins, Tx/Rx clock and Tx/Rx sync. Without the 'fsl,common-rxtx-pins' property, the four pins are used. With the 'fsl,common-rxtx-pins' property, two pins are used.</p>
</div>

<a id="dt-2901119551d5522af79f"></a>

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

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

<a id="dt-64371deb69b89353fdc6"></a>

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

<a id="dt-226e6fd302990ad6fa07"></a>

**Item 1**

> <div id="dt-bb4a7e50c234c9cd5c8c">
> <p style="white-space: pre-wrap">Receive sync clock</p>
> </div>

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

**Item 2**

> <div id="dt-c161ab54ab497d155aa2">
> <p style="white-space: pre-wrap">Receive data clock</p>
> </div>

<a id="dt-53e96eb992707d7a75dd"></a>

**Item 3**

> <div id="dt-19b366dbd76d457b4e7f">
> <p style="white-space: pre-wrap">Transmit sync clock</p>
> </div>

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

**Item 4**

> <div id="dt-1b115d47e71983af540f">
> <p style="white-space: pre-wrap">Transmit data clock</p>
> </div>

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

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

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

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

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

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

**Item 1**

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

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

**Item 2**

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

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

**Item 3**

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

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

**Item 4**

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

<a id="dt-26e5884361c612f3b11b"></a>

**<code>fsl&#44;rx&#45;frame&#45;sync&#45;delay&#45;bits</code> — not listed as required here**

**Allowed values (<code>enum</code>):** <a id="dt-88861479e5e905f2d255"></a> <span id="dt-186291f0622273417477"><code>0</code></span>, <span id="dt-3f3a869a2a005521bde3"><code>1</code></span>, <span id="dt-1d5028a829d013fc0d04"><code>2</code></span>, <span id="dt-42315276407f820797a8"><code>3</code></span>

**Default value (<code>default</code>):** <span id="dt-7ab4aa33a57cd44f27c5"><code>0</code></span>

<div id="dt-2910d238b9a6e158f3cd">
<p style="white-space: pre-wrap">Receive frame sync delay in number of bits.
Indicates the delay between the Rx sync and the first bit of the Rx
frame.</p>
</div>

<a id="dt-1065b7442744b3b19059"></a>

**<code>fsl&#44;tx&#45;frame&#45;sync&#45;delay&#45;bits</code> — not listed as required here**

**Allowed values (<code>enum</code>):** <a id="dt-dfafe6931f8d42e5d7ce"></a> <span id="dt-23987dda12e41ad6ac92"><code>0</code></span>, <span id="dt-46b2e3c85dfa4f3b68f3"><code>1</code></span>, <span id="dt-5108f96f2da43965f096"><code>2</code></span>, <span id="dt-71b07892ca124d793b64"><code>3</code></span>

**Default value (<code>default</code>):** <span id="dt-a7926bea7f7439b75fab"><code>0</code></span>

<div id="dt-51c6b1f7d627ff5ec076">
<p style="white-space: pre-wrap">Transmit frame sync delay in number of bits.
Indicates the delay between the Tx sync and the first bit of the Tx
frame.</p>
</div>

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

**<code>fsl&#44;clock&#45;falling&#45;edge</code> — not listed as required here**

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

<div id="dt-1367a4b8c796bb0fc2f7">
<p style="white-space: pre-wrap">Data is sent on falling edge of the clock (and received on the rising edge). If not present, data is sent on the rising edge (and received on the falling edge).</p>
</div>

<a id="dt-4054c89797c446ec2785"></a>

**<code>fsl&#44;fsync&#45;rising&#45;edge</code> — not listed as required here**

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

<div id="dt-b7c1d243d2df27bcf58d">
<p style="white-space: pre-wrap">Frame sync pulses are sampled with the rising edge of the channel clock. If not present, pulses are sampled with the falling edge.</p>
</div>

<a id="dt-06e319a2e7a6e324201f"></a>

**<code>fsl&#44;fsync&#45;active&#45;low</code> — not listed as required here**

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

<div id="dt-6eff514d928a657488b5">
<p style="white-space: pre-wrap">Frame sync signals are active on low logic level. If not present, sync signals are active on high level.</p>
</div>

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

**<code>fsl&#44;double&#45;speed&#45;clock</code> — not listed as required here**

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

<div id="dt-b50d5ca2c69b6253777e">
<p style="white-space: pre-wrap">The channel clock is twice the data rate.</p>
</div>

<a id="dt-1260ecf61e6dea2f537a"></a>

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

<a id="dt-6282869a1a515319968e"></a>

**<code>&#94;fsl&#44;&#91;rt&#93;x&#45;ts&#45;routes&#36;</code> — name matches this regular expression**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7ac9dfe36f831fd13493">[<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-436074462f928178c6a0">
<p style="white-space: pre-wrap">A list of tuple that indicates the Tx or Rx time-slots routes.</p>
</div>

<a id="dt-028140c5bf0c2f6b4514"></a>

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

> <a id="dt-5a9323fcef5f570e25b6"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-d9da0cb79c9ed10320f2"></a>
>
> **Item 1**
>
> > <div id="dt-779aa7eb5532a1fc4258">
> > <p style="white-space: pre-wrap">The number of time-slots</p>
> > </div>
> >
> > **Minimum value (<code>minimum</code>):** <span id="dt-1a0551c08438325b13e2"><code>1</code></span>
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-ab04c0a5bc41089667c0"><code>64</code></span>
>
> <a id="dt-432e6c972e44c53f52eb"></a>
>
> **Item 2**
>
> > <div id="dt-93496bf0a7cfa05ed89f">
> > <p style="white-space: pre-wrap">The source (Tx) or destination (Rx) serial interface
> > (dt-bindings/soc/qe-fsl,tsa.h defines these values)
> >  - 0: No destination
> >  - 1: UCC1
> >  - 2: UCC2
> >  - 3: UCC3
> >  - 4: UCC4
> >  - 5: UCC5</p>
> > </div>
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-fbea45697447c999047b"></a> <span id="dt-cb4cdbbb863732232f92"><code>0</code></span>, <span id="dt-c4a621e560ea0a88586e"><code>1</code></span>, <span id="dt-c26a50bd96078cb83021"><code>2</code></span>, <span id="dt-aae52b534d6f52301c3f"><code>3</code></span>, <span id="dt-fc4b776abf367cbb2b5b"><code>4</code></span>, <span id="dt-798fe796e4c67e0a48aa"><code>5</code></span>

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-1300d4858c4a27285098"><code>64</code></span>

<a id="dt-69321983192471e7d53a"></a>

#### All of these rules must match (<code>allOf</code>)

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

**Rule 1**

> <a id="dt-b2ef6682f2cda843789c"></a>
>
> **Condition (<code>if</code>)**
>
> > **Required in this object (<code>required</code>):** <a id="dt-544db361e77f6da88b48"></a> <span id="dt-1e10508a323a80850bba"><code>&#34;fsl&#44;common&#45;rxtx&#45;pins&#34;</code></span>
>
> <a id="dt-1eeaf45de494cca3b7bc"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-468013d42711060c4ba2"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-da0f41c9e6f3255f7661"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > **Maximum number of items (<code>maxItems</code>):** <span id="dt-f90e1f7c2fc4648006f2"><code>2</code></span>
> >
> > <a id="dt-3d51ae3504cf1a8c8d7e"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > **Maximum number of items (<code>maxItems</code>):** <span id="dt-76e52c3b340c768dcb2a"><code>2</code></span>
>
> <a id="dt-b6db03a7f1cb528050a8"></a>
>
> **When the condition does not match (<code>else</code>)**
>
> > <a id="dt-1e7136c0a3f3d581e036"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-f37622cc2bce02e4b84d"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > **Minimum number of items (<code>minItems</code>):** <span id="dt-56788995ef4d29fb7533"><code>4</code></span>
> >
> > <a id="dt-be75a5f1cd8504eea05e"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > **Minimum number of items (<code>minItems</code>):** <span id="dt-b6a6c5703cbc75616b35"><code>4</code></span>

**Required in this object (<code>required</code>):** <a id="dt-edde312fe391a7ba202f"></a> <span id="dt-012ce439887e7b96a6e2"><code>&#34;reg&#34;</code></span>, <span id="dt-b257819a86f809d1a919"><code>&#34;clocks&#34;</code></span>, <span id="dt-263b0783a2ff7a1b5aed"><code>&#34;clock&#45;names&#34;</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>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;reg&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;&#35;size&#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">#include &lt;dt-bindings/soc/qe-fsl,tsa.h&gt;

tsa@ae0 {
    compatible = "fsl,mpc8321-tsa", "fsl,qe-tsa";
    reg = &lt;0xae0 0x10&gt;,
          &lt;0xc00 0x200&gt;;
    reg-names = "si_regs", "si_ram";

    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    tdm@0 {
        /* TDMa */
        reg = &lt;0&gt;;

        clocks = &lt;&amp;clk_l1rsynca&gt;, &lt;&amp;clk_l1rclka&gt;;
        clock-names = "rsync", "rclk";

        fsl,common-rxtx-pins;
        fsl,fsync-rising-edge;

        fsl,tx-ts-routes = &lt;2 0&gt;,             /* TS 0..1 */
                       &lt;24 FSL_QE_TSA_UCC4&gt;, /* TS 2..25 */
                       &lt;1 0&gt;,                 /* TS 26 */
                       &lt;5 FSL_QE_TSA_UCC3&gt;;  /* TS 27..31 */

        fsl,rx-ts-routes = &lt;2 0&gt;,             /* TS 0..1 */
                       &lt;24 FSL_QE_TSA_UCC4&gt;, /* 2..25 */
                       &lt;1 0&gt;,                 /* TS 26 */
                       &lt;5 FSL_QE_TSA_UCC3&gt;;  /* TS 27..31 */
    };
};
</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 145:</strong> <span> If fsl,common-rxtx-pins is present, only 2 clocks are needed.</span></p>

<p id="dt-comment-2"><strong>Line 146:</strong> <span> Else, the 4 clocks must be present.</span></p>

</details>
