# PowerQUICC QE QUICC Multichannel Controller (QMC)

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

> Device-tree binding reference for PowerQUICC QE QUICC Multichannel Controller (QMC).

<!-- 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;ucc&#45;qmc&#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 QMC (QUICC Multichannel Controller) emulates up to 64 channels within one serial controller using the same TDM physical interface routed from TSA.</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;ucc&#45;qmc&#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;ucc&#45;qmc&#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">UCC (Unified communication controller) register base</p>
> </div>

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

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">Dual port 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;ucc&#95;regs&#34;</code></span>

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

**Item 2**

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

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

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">UCC interrupt line in the QE interrupt controller</p>
</div>

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

### <code>fsl&#44;tsa&#45;serial</code> — required here

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

<a id="dt-68d7ad308e187df7b799"></a>

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

<a id="dt-5247b36899d9f288a75e"></a>

**Item 1**

> <a id="dt-9526b8308a5c3ec97f7f"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-e43b32c75cc6b0872058"></a>
>
> **Item 1**
>
> > <div id="dt-0f5e7d27f681ed5d0d70">
> > <p style="white-space: pre-wrap">phandle to TSA node</p>
> > </div>
>
> <a id="dt-7ff48a4389d92fb6938e"></a>
>
> **Item 2**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-f8704e58eab41baaf505"></a> <span id="dt-031972a2f60558b5d0e8"><code>1</code></span>, <span id="dt-ecb484155bc5bf1be8f5"><code>2</code></span>, <span id="dt-2eae330994347f402842"><code>3</code></span>, <span id="dt-dc364740c5ac3a72d124"><code>4</code></span>, <span id="dt-c825f5468dd47b16606a"><code>5</code></span>
> >
> > <div id="dt-4d2b72d3dd66ed58f7e2">
> > <p style="white-space: pre-wrap">TSA serial interface (dt-bindings/soc/qe-fsl,tsa.h defines these
> > values)
> >  - 1: UCC1
> >  - 2: UCC2
> >  - 3: UCC3
> >  - 4: UCC4
> >  - 5: UCC5</p>
> > </div>

<div id="dt-b88bb512e6902d4f16c0">
<p style="white-space: pre-wrap">Should be a phandle/number pair. The phandle to TSA node and the TSA serial interface to use.</p>
</div>

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

### <code>fsl&#44;soft&#45;qmc</code> — not listed as required here

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

<div id="dt-e480cfad617dfcc36194">
<p style="white-space: pre-wrap">Soft QMC firmware name to load. If this property is omitted, no firmware are used.</p>
</div>

<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-0ef311bf01f96e547d4a"></a>

### <code>&#94;channel&#64;&#40;&#91;0&#45;9&#93;&#124;&#91;1&#45;5&#93;&#91;0&#45;9&#93;&#124;6&#91;0&#45;3&#93;&#41;&#36;</code> — name matches this regular expression

<div id="dt-2cfc7d172c37d00f6993">
<p style="white-space: pre-wrap">A channel managed by this controller</p>
</div>

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

<a id="dt-842bbca04746e6caecd6"></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-037237917039060d0e40"></a>

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

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

**<code>compatible</code> — not listed as required here**

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

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

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-4ea82ee15bd1c9433a8c"></a> <span id="dt-6431a8ff986a0af86c11"><code>&#34;fsl&#44;mpc8321&#45;ucc&#45;qmc&#45;hdlc&#34;</code></span>

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

**Item 2**

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

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

**Item 3**

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

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

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-5cc96affbbd52af29008"><code>63</code></span>

<div id="dt-f8d76582d9009797afc6">
<p style="white-space: pre-wrap">The channel number</p>
</div>

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

**<code>fsl&#44;operational&#45;mode</code> — not listed as required here**

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

**Allowed values (<code>enum</code>):** <a id="dt-e59ddee45201bf21c6d0"></a> <span id="dt-f817362e77865c77ddfe"><code>&#34;transparent&#34;</code></span>, <span id="dt-df41ad75ac59258ce83d"><code>&#34;hdlc&#34;</code></span>

**Default value (<code>default</code>):** <span id="dt-a39b31365fbc2b5c9f9f"><code>&#34;transparent&#34;</code></span>

<div id="dt-488abb6f54753ad42686">
<pre><code>The channel operational mode
  - hdlc: The channel handles HDLC frames
  - transparent: The channel handles raw data without any processing</code></pre>
</div>

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

**<code>fsl&#44;reverse&#45;data</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-bc3863cab0ace8c33691">[<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-9435caff8db19bb6ccb2">
<p style="white-space: pre-wrap">The bit order as seen on the channels is reversed, transmitting/receiving the MSB of each octet first. This flag is used only in 'transparent' mode.</p>
</div>

<a id="dt-41e4d335cb62ae9adc19"></a>

**<code>fsl&#44;tx&#45;ts&#45;mask</code> — required here**

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

<div id="dt-2634525f964fb87c71b7">
<p style="white-space: pre-wrap">Channel assigned Tx time-slots within the Tx time-slots routed by the TSA to this cell.</p>
</div>

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

**<code>fsl&#44;rx&#45;ts&#45;mask</code> — required here**

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

<div id="dt-fd9e09c6acb1e31d4a4c">
<p style="white-space: pre-wrap">Channel assigned Rx time-slots within the Rx time-slots routed by the TSA to this cell.</p>
</div>

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

**<code>fsl&#44;framer</code> — not listed as required here**

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

<div id="dt-da58b4626d7593b1ede0">
<p style="white-space: pre-wrap">phandle to the framer node. The framer is in charge of an E1/T1 line interface connected to the TDM bus. It can be used to get the E1/T1 line status such as link up/down.</p>
</div>

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

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

<a id="dt-901759ed844388d1dd34"></a>

**Rule 1**

> <a id="dt-21f4d8b019fe4cd59d1e"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-888b60718ade8e5dfd2b"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-078ad98a6dc704bae0c4"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-19d23de4f77a2b88b3cb"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > <a id="dt-c53cb7d632a5db44d8e2"></a>
> > >
> > > **Rule for matching array elements (<code>contains</code>)**
> > >
> > > > **Exact value (<code>const</code>):** <span id="dt-7545e0d8a7739962a74d"><code>&#34;fsl&#44;qmc&#45;hdlc&#34;</code></span>
>
> <a id="dt-a3dbad98d1d246ff8a64"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-c7f68fcdcec4b5b13d5f"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-adc2a5c3b7f2b7db7b00"></a>
> >
> > **<code>fsl&#44;framer</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

**Required in this object (<code>required</code>):** <a id="dt-d4cf5e0da657bbe2c7a8"></a> <span id="dt-030d90149289cf5b28e1"><code>&#34;reg&#34;</code></span>, <span id="dt-9032700daab97b1b3391"><code>&#34;fsl&#44;tx&#45;ts&#45;mask&#34;</code></span>, <span id="dt-7aedfea91757be5b60bd"><code>&#34;fsl&#44;rx&#45;ts&#45;mask&#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;interrupts&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;fsl&#44;tsa&#45;serial&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><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;

qmc@a60 {
    compatible = "fsl,mpc8321-ucc-qmc", "fsl,qe-ucc-qmc";
    reg = &lt;0x3200 0x200&gt;,
          &lt;0x10000 0x1000&gt;;
    reg-names = "ucc_regs", "dpram";
    interrupts = &lt;35&gt;;
    interrupt-parent = &lt;&amp;qeic&gt;;
    fsl,soft-qmc = "fsl_qe_ucode_qmc_8321_11.bin";

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

    fsl,tsa-serial = &lt;&amp;tsa FSL_QE_TSA_UCC4&gt;;

    channel@16 {
        /* Ch16 : First 4 even TS from all routed from TSA */
        reg = &lt;16&gt;;
        fsl,operational-mode = "transparent";
        fsl,reverse-data;
        fsl,tx-ts-mask = &lt;0x00000000 0x000000aa&gt;;
        fsl,rx-ts-mask = &lt;0x00000000 0x000000aa&gt;;
    };

    channel@17 {
        /* Ch17 : First 4 odd TS from all routed from TSA */
        reg = &lt;17&gt;;
        fsl,operational-mode = "transparent";
        fsl,reverse-data;
        fsl,tx-ts-mask = &lt;0x00000000 0x00000055&gt;;
        fsl,rx-ts-mask = &lt;0x00000000 0x00000055&gt;;
    };

    channel@19 {
        /* Ch19 : 8 TS (TS 8..15) from all routed from TSA */
        compatible = "fsl,mpc8321-ucc-qmc-hdlc",
                     "fsl,qe-ucc-qmc-hdlc",
                     "fsl,qmc-hdlc";
        reg = &lt;19&gt;;
        fsl,operational-mode = "hdlc";
        fsl,tx-ts-mask = &lt;0x00000000 0x0000ff00&gt;;
        fsl,rx-ts-mask = &lt;0x00000000 0x0000ff00&gt;;
        fsl,framer = &lt;&amp;framer&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-only OR BSD-2-Clause)</span></p>

</details>
