# Freescale i.MX8qm/qxp LVDS Display Bridge

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Display bindings / bridge_

> Device-tree binding reference for Freescale i.MX8qm/qxp LVDS Display Bridge.

<!-- 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;display&#47;bridge&#47;fsl&#44;imx8qxp&#45;ldb&#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;Liu Ying &#60;victor&#46;liu&#64;nxp&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Freescale i.MX8qm/qxp LVDS Display Bridge(LDB) has two channels.</p>
<p style="white-space: pre-wrap">The i.MX8qm/qxp LDB is controlled by Control and Status Registers(CSR) module.
The CSR module, as a system controller, contains the LDB's configuration
registers.</p>
<p style="white-space: pre-wrap">For i.MX8qxp LDB, each channel supports up to 24bpp parallel input color
format and can map the input to VESA or JEIDA standards.  The two channels
cannot be used simultaneously, that is to say, the user should pick one of
them to use.  Two LDB channels from two LDB instances can work together in
LDB split mode to support a dual link LVDS display.  The channel indexes
have to be different.  Channel0 outputs odd pixels and channel1 outputs
even pixels.</p>
<p style="white-space: pre-wrap">For i.MX8qm LDB, each channel additionally supports up to 30bpp parallel
input color format.  The two channels can be used simultaneously, either
in dual mode or split mode.  In dual mode, the two channels output identical
data.  In split mode, channel0 outputs odd pixels and channel1 outputs even
pixels.</p>
<p style="white-space: pre-wrap">A side note is that i.MX8qm/qxp LDB is officially called pixel mapper in
the SoC reference manuals.  The pixel mapper uses logic of LDBs embedded in
i.MX6qdl/sx SoCs, i.e., it is essentially based on them.  To keep the naming
consistency, this binding calls it LDB.</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;fsl&#44;imx8qm&#45;ldb&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;fsl&#44;imx8qxp&#45;ldb&#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-4e9a371963ac013ad39d"></a>

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

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

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

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

**Item 1**

> <div id="dt-4cfd4c1642ba13c357d6">
> <p style="white-space: pre-wrap">pixel clock</p>
> </div>

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

**Item 2**

> <div id="dt-6b79aebfd2287d4aeab8">
> <p style="white-space: pre-wrap">bypass clock</p>
> </div>

<a id="dt-041d7cd76b652a5de06a"></a>

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

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

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

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

**Item 1**

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

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

**Item 2**

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

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — required here

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-5f3f250448e427f857d4">[<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-a4cbd13b6d60245fbe76">
<p style="white-space: pre-wrap">A phandle which points to companion LDB which is used in LDB split mode.</p>
</div>

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

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

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

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

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

<div id="dt-325cebc73df85510b5f8">
<p style="white-space: pre-wrap">Represents a channel of LDB.</p>
</div>

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

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

<a id="dt-7785c1dea56086a61f0b"></a>

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

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

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

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

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

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

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

<div id="dt-511c82eec091c2905b68">
<p style="white-space: pre-wrap">The channel index.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-1fd2a41f31687389e8fd"></a> <span id="dt-0b4a63e34ffcbcd13fea"><code>0</code></span>, <span id="dt-653f20f0479dd2c379da"><code>1</code></span>

<a id="dt-9707c9373b4abe4db14f"></a>

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

<div id="dt-504b7f471f869f4497e6">
<p style="white-space: pre-wrap">A phandle to the phy module representing the LVDS PHY.</p>
</div>

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

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

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

**Exact value (<code>const</code>):** <span id="dt-9189acc75b745bfe63cd"><code>&#34;lvds&#95;phy&#34;</code></span>

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

**<code>port&#64;0</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1792fa4031bcd9395060">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;properties&#47;port</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-1d845f0617b4072cef77>)</span>

<div id="dt-1ed4c487480c666cd6cd">
<p style="white-space: pre-wrap">Input port of the channel.</p>
</div>

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

**<code>port&#64;1</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-997093e655e6e9d90445">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;properties&#47;port</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-1d845f0617b4072cef77>)</span>

<div id="dt-9426461ae0377a578f99">
<p style="white-space: pre-wrap">Output port of the channel.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-0d1f4ad905b6325378fe"></a> <span id="dt-1d8b7937e2819686bb4c"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-a54528d3a1603038f345"><code>&#34;&#35;size&#45;cells&#34;</code></span>, <span id="dt-676ad7f3e3da9892878a"><code>&#34;reg&#34;</code></span>, <span id="dt-d3140a2fdf188141bfaf"><code>&#34;phys&#34;</code></span>, <span id="dt-2f88d507464de2d93b69"><code>&#34;phy&#45;names&#34;</code></span>

<a id="dt-84da8ee5eca694d83c16"></a>

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

**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;address&#45;cells&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;&#35;size&#45;cells&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clocks&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;power&#45;domains&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;channel&#64;0&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;channel&#64;1&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

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

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-ebe43a424f4497a78746"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8997992e7087b5549d86"><code>&#34;fsl&#44;imx8qm&#45;ldb&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-b212c2ef78c22fab2e20"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-b605840c58a2520a6f4e"></a>
> >
> > **<code>fsl&#44;companion&#45;ldb</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<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/firmware/imx/rsrc.h&gt;
ldb {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    compatible = "fsl,imx8qxp-ldb";
    clocks = &lt;&amp;clk IMX_SC_R_LVDS_0 IMX_SC_PM_CLK_MISC2&gt;,
             &lt;&amp;clk IMX_SC_R_LVDS_0 IMX_SC_PM_CLK_BYPASS&gt;;
    clock-names = "pixel", "bypass";
    power-domains = &lt;&amp;pd IMX_SC_R_LVDS_0&gt;;

    channel@0 {
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;
        reg = &lt;0&gt;;
        phys = &lt;&amp;mipi_lvds_0_phy&gt;;
        phy-names = "lvds_phy";

        port@0 {
            reg = &lt;0&gt;;

            mipi_lvds_0_ldb_ch0_mipi_lvds_0_pxl2dpi: endpoint {
                remote-endpoint = &lt;&amp;mipi_lvds_0_pxl2dpi_mipi_lvds_0_ldb_ch0&gt;;
            };
        };
    };

    channel@1 {
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;
        reg = &lt;1&gt;;
        phys = &lt;&amp;mipi_lvds_0_phy&gt;;
        phy-names = "lvds_phy";

        port@0 {
            reg = &lt;0&gt;;

            mipi_lvds_0_ldb_ch1_mipi_lvds_0_pxl2dpi: endpoint {
                remote-endpoint = &lt;&amp;mipi_lvds_0_pxl2dpi_mipi_lvds_0_ldb_ch1&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>
