# NXP TDA1997x HDMI receiver

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Media bindings / i2c_

> Device-tree binding reference for NXP TDA1997x HDMI receiver.

<!-- 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;media&#47;i2c&#47;nxp&#44;tda19971&#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;Frank Li &#60;Frank&#46;Li&#64;nxp&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The TDA19971/73 are HDMI video receivers.</p>
<p style="white-space: pre-wrap">The TDA19971 Video port output pins can be used as follows:
 - RGB 8bit per color (24 bits total): R[11:4] B[11:4] G[11:4]
 - YUV444 8bit per color (24 bits total): Y[11:4] Cr[11:4] Cb[11:4]
 - YUV422 semi-planar 8bit per component (16 bits total): Y[11:4] CbCr[11:4]
 - YUV422 semi-planar 10bit per component (20 bits total): Y[11:2] CbCr[11:2]
 - YUV422 semi-planar 12bit per component (24 bits total): - Y[11:0] CbCr[11:0]
 - YUV422 BT656 8bit per component (8 bits total): YCbCr[11:4] (2-cycles)
 - YUV422 BT656 10bit per component (10 bits total): YCbCr[11:2] (2-cycles)
 - YUV422 BT656 12bit per component (12 bits total): YCbCr[11:0] (2-cycles)</p>
<p style="white-space: pre-wrap">The TDA19973 Video port output pins can be used as follows:
 - RGB 12bit per color (36 bits total): R[11:0] B[11:0] G[11:0]
 - YUV444 12bit per color (36 bits total): Y[11:0] Cb[11:0] Cr[11:0]
 - YUV422 semi-planar 12bit per component (24 bits total): Y[11:0] CbCr[11:0]
 - YUV422 BT656 12bit per component (12 bits total): YCbCr[11:0] (2-cycles)</p>
<p style="white-space: pre-wrap">The Video port output pins are mapped via 4-bit 'pin groups' allowing
for a variety of connection possibilities including swapping pin order within
pin groups. The video_portcfg device-tree property consists of register mapping
pairs which map a chip-specific VP output register to a 4-bit pin group. If
the pin group needs to be bit-swapped you can use the *_S pin-group defines.</p>
</div>

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

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

<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;nxp&#44;tda19971&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;nxp&#44;tda19973&#34;</code></span>

<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

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

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

### <code>DOVDD&#45;supply</code> — required here

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

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

### <code>DVDD&#45;supply</code> — required here

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

<a id="dt-108e4e3fba989bd6d0af"></a>

### <code>AVDD&#45;supply</code> — required here

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

<a id="dt-4a22cdb1eade348ac0d4"></a>

### <code>&#35;sound&#45;dai&#45;cells</code> — not listed as required here

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

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

### <code>port</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1ed24d3512fbe8ce2017">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;&#36;defs&#47;port&#45;base</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-61dbefbf4cdd7cc4556a>)</span>

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

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

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

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4d56cb4bb8332929f9b4">[<code>&#47;schemas&#47;media&#47;video&#45;interfaces&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-media/video-interfaces.md#dt-root>)</span>

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

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)**

<code>false</code>

Not allowed by this rule.

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

### <code>nxp&#44;vidout&#45;portcfg</code> — not listed as required here

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-80240f0107c493ee0e17"><code>4</code></span>

<a id="dt-1490492e1973a6976a13"></a>

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

> <a id="dt-b5d277ba3474c372e83d"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-9533ac8308bf2fa952a3"></a>
>
> **Item 1**
>
> > <div id="dt-3bad738a8e90b49e5257">
> > <p style="white-space: pre-wrap">Video Port control registers index.</p>
> > </div>
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-8f3da63217bcf12febb0"><code>8</code></span>
> >
> > **Minimum value (<code>minimum</code>):** <span id="dt-98c842885fa4d64fb2e7"><code>0</code></span>
>
> <a id="dt-3fae4cf8d77de7b1ff3e"></a>
>
> **Item 2**
>
> > <div id="dt-c9e12ca3828c7503ee7b">
> > <p style="white-space: pre-wrap">pin(pinswapped) groups</p>
> > </div>

<div id="dt-9e6c3f133906a1056bcd">
<p style="white-space: pre-wrap">array of pairs mapping VP output pins to pin groups.</p>
</div>

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

### <code>nxp&#44;audout&#45;format</code> — not listed as required here

**Allowed values (<code>enum</code>):** <a id="dt-af2bacb3ad9971d9070c"></a> <span id="dt-bb548866f5e59d6fc2fb"><code>&#34;i2s&#34;</code></span>, <span id="dt-049418b0473973462a17"><code>&#34;spdif&#34;</code></span>

<a id="dt-10f2df27183c19cab2a7"></a>

### <code>nxp&#44;audout&#45;width</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-587080388fbb8ae54c61">[<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-7096b30beaa9a935f713"></a> <span id="dt-fec2b00c3254f9bd44d6"><code>8</code></span>, <span id="dt-f2315f9b022f3570d6cc"><code>16</code></span>, <span id="dt-5e358158b9bdba65b531"><code>24</code></span>, <span id="dt-0f8afe590864cf7c526b"><code>32</code></span>

<div id="dt-ce7461ce56f57369ec5c">
<p style="white-space: pre-wrap">width of audio output data bus.</p>
</div>

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

### <code>nxp&#44;audout&#45;layout</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-913836c567378f5d8a5c">[<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-b53290ee7113c681335f"></a> <span id="dt-0d595411ad655bcfd9a7"><code>0</code></span>, <span id="dt-66a097fd15a5e315ed50"><code>1</code></span>

<div id="dt-0424292c8147918bf9a8">
<p style="white-space: pre-wrap">data layout (0=AP0 used, 1=AP0/AP1/AP2/AP3 used).</p>
</div>

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

### <code>nxp&#44;audout&#45;mclk&#45;fs</code> — not listed as required here

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

<div id="dt-4adc926c5a1c90a7d2c9">
<p style="white-space: pre-wrap">Multiplication factor between stream rate and codec mclk.</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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;DOVDD&#45;supply&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;AVDD&#45;supply&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;DVDD&#45;supply&#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/interrupt-controller/irq.h&gt;
#include &lt;dt-bindings/media/tda1997x.h&gt;

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

    hdmi-receiver@48 {
        compatible = "nxp,tda19971";
        reg = &lt;0x48&gt;;
        pinctrl-names = "default";
        pinctrl-0 = &lt;&amp;pinctrl_tda1997x&gt;;
        interrupt-parent = &lt;&amp;gpio1&gt;;
        interrupts = &lt;7 IRQ_TYPE_LEVEL_LOW&gt;;
        DOVDD-supply = &lt;&amp;reg_3p3v&gt;;
        AVDD-supply = &lt;&amp;reg_1p8v&gt;;
        DVDD-supply = &lt;&amp;reg_1p8v&gt;;
        /* audio */
        #sound-dai-cells = &lt;0&gt;;
        nxp,audout-format = "i2s";
        nxp,audout-layout = &lt;0&gt;;
        nxp,audout-width = &lt;16&gt;;
        nxp,audout-mclk-fs = &lt;128&gt;;
        /*
         * The 8bpp YUV422 semi-planar mode outputs CbCr[11:4]
         * and Y[11:4] across 16bits in the same pixclk cycle.
         */
        nxp,vidout-portcfg =
            /* Y[11:8]&lt;-&gt;VP[15:12]&lt;-&gt;CSI_DATA[19:16] */
            &lt; TDA1997X_VP24_V15_12 TDA1997X_G_Y_11_8 &gt;,
            /* Y[7:4]&lt;-&gt;VP[11:08]&lt;-&gt;CSI_DATA[15:12] */
            &lt; TDA1997X_VP24_V11_08 TDA1997X_G_Y_7_4 &gt;,
            /* CbCc[11:8]&lt;-&gt;VP[07:04]&lt;-&gt;CSI_DATA[11:8] */
            &lt; TDA1997X_VP24_V07_04 TDA1997X_R_CR_CBCR_11_8 &gt;,
            /* CbCr[7:4]&lt;-&gt;VP[03:00]&lt;-&gt;CSI_DATA[7:4] */
            &lt; TDA1997X_VP24_V03_00 TDA1997X_R_CR_CBCR_7_4 &gt;;

        port {
            endpoint {
                remote-endpoint = &lt;&amp;ipu1_csi0_mux_from_parallel_sensor&gt;;
                bus-width = &lt;16&gt;;
                hsync-active = &lt;1&gt;;
                vsync-active = &lt;1&gt;;
                data-active = &lt;1&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>
