# Freescale LVDS Display Bridge (ldb)

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

> Device-tree binding reference for Freescale LVDS Display Bridge (ldb).

<!-- 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;imx&#47;fsl&#44;imx6q&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The LVDS Display Bridge device tree node contains up to two lvds-channel nodes describing each of the two LVDS encoder channels of the bridge.</p>
</div>

**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>

<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-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Allowed values (<code>enum</code>):** <a id="dt-617e1a2040e2496013d4"></a> <span id="dt-c31075c43df89b2793e3"><code>&#34;fsl&#44;imx53&#45;ldb&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;fsl&#44;imx6q&#45;ldb&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;fsl&#44;imx53&#45;ldb&#34;</code></span>

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

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

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

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

### <code>&#35;address&#45;cells</code> — not listed as 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> — not listed as required here

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-5739dfe2563065590127">[<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-1674a445bd4f234c2793">
<p style="white-space: pre-wrap">The phandle points to the iomuxc-gpr region containing the LVDS control register.</p>
</div>

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

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

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

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

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

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

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

#### Exactly one of these rules must match (<code>oneOf</code>)

<a id="dt-661af0885579a69ba337"></a>

**Rule 1**

> <a id="dt-027418c760db9276fcba"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-bf543c95e0c50d9cb8f7"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-22588558d3128a1ce650"><code>&#34;di0&#95;pll&#34;</code></span>
>
> <a id="dt-38d5e686f1ce154bdf61"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-78118bb2872ba1203b98"><code>&#34;di1&#95;pll&#34;</code></span>
>
> <a id="dt-9f64ae95829eda914772"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-5e9e0b8b16a458194c08"><code>&#34;di0&#95;sel&#34;</code></span>
>
> <a id="dt-ebe3d649940f830fce25"></a>
>
> **Item 4**
>
> > **Exact value (<code>const</code>):** <span id="dt-ea370f2acf4bd23c06bb"><code>&#34;di1&#95;sel&#34;</code></span>
>
> <a id="dt-fe01f7045794e6ea69a8"></a>
>
> **Item 5**
>
> > **Exact value (<code>const</code>):** <span id="dt-96101cef05df95422611"><code>&#34;di0&#34;</code></span>
>
> <a id="dt-ed1b003b6b2ca8929022"></a>
>
> **Item 6**
>
> > **Exact value (<code>const</code>):** <span id="dt-c691d19d5fc63bb506c7"><code>&#34;di1&#34;</code></span>

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

**Rule 2**

> <a id="dt-20fc6bfaeee95ba35790"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-f468ad1eba090a3de488"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-8c8dcde100c56b536a91"><code>&#34;di0&#95;pll&#34;</code></span>
>
> <a id="dt-b2245a46cbe503285ae3"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1e527555b977de836626"><code>&#34;di1&#95;pll&#34;</code></span>
>
> <a id="dt-6ccd29364ec41f23f771"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-bd383bf1f3b36abaaf17"><code>&#34;di0&#95;sel&#34;</code></span>
>
> <a id="dt-cb04f5a86c50007a4d45"></a>
>
> **Item 4**
>
> > **Exact value (<code>const</code>):** <span id="dt-cfb28df4c9e03e56d0ba"><code>&#34;di1&#95;sel&#34;</code></span>
>
> <a id="dt-a16c5809a95f6238c8e3"></a>
>
> **Item 5**
>
> > **Exact value (<code>const</code>):** <span id="dt-e8e5aa9daf455ae9b481"><code>&#34;di2&#95;sel&#34;</code></span>
>
> <a id="dt-30a0e48f9548e0fb8d93"></a>
>
> **Item 6**
>
> > **Exact value (<code>const</code>):** <span id="dt-68f3c1f3e20462afdd70"><code>&#34;di3&#95;sel&#34;</code></span>
>
> <a id="dt-8ff4f5068f0d6358961e"></a>
>
> **Item 7**
>
> > **Exact value (<code>const</code>):** <span id="dt-f9786caaef65cdd9fd09"><code>&#34;di0&#34;</code></span>
>
> <a id="dt-2e1a5bf301e91678c62d"></a>
>
> **Item 8**
>
> > **Exact value (<code>const</code>):** <span id="dt-df4940c29239997b924b"><code>&#34;di1&#34;</code></span>

<a id="dt-888fd2394831d61a9bd8"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-f60540b420ed098694da">[<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-d69fc6d6e69238e5b11e">
<p style="white-space: pre-wrap">if it exists, only LVDS channel 0 should be configured - one input will be distributed on both outputs in dual channel mode</p>
</div>

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

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

<a id="dt-40c8c54ff2f589c7d57e"></a>

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

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

<div id="dt-5f9bd82e57e6e75037a3">
<p style="white-space: pre-wrap">Each LVDS Channel has to contain either an of graph link to a panel device node or a display-timings node that describes the video timings for the connected LVDS display as well as the fsl,data-mapping and fsl,data-width properties.</p>
</div>

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

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

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

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

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

<a id="dt-5051ff30ffecffcbffd3"></a>

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

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

<a id="dt-92dbf8f5b8872a44b256"></a>

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

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

<a id="dt-12d436fae2d77704f884"></a>

**<code>display&#45;timings</code> — not listed as required here**

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-e5bdeb7f47202bad7685"></a> <span id="dt-d98a127c8257a7eef5c4"><code>&#34;spwg&#34;</code></span>, <span id="dt-cb85bb7738c37085d59f"><code>&#34;jeida&#34;</code></span>

<a id="dt-1108776095e5b072a7ca"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-6581291b2c0968882782">[<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-74604b3a996ccba1e583">
<p style="white-space: pre-wrap">should be &lt;18&gt; or &lt;24&gt;</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-caf309bd0f8aee8f4495"></a> <span id="dt-65f1c29a641f12242860"><code>18</code></span>, <span id="dt-5f856214114b9f0206ad"><code>24</code></span>

<a id="dt-5107707e0bb3b289292c"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-a5992292154033791e04">[<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-378037947211cab6bdb8">
<p style="white-space: pre-wrap">phandle to lcd panel</p>
</div>

<a id="dt-9011c7a53938014dff44"></a>

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b764dca6cbd0279f7888">[<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-bbc79a49f08093bdf781">
<p style="white-space: pre-wrap">On i.MX5, the internal two-input-multiplexer is used. Due to hardware limitations, only one input port (port@[0,1]) can be used for each channel (lvds-channel@[0,1], respectively). On i.MX6, there should be four input ports (port@[0-3]) that correspond to the four LVDS multiplexer inputs. A single output port (port@2 on i.MX5, port@4 on i.MX6) must be connected to a panel input port. Optionally, the output port can be left out if display-timings are used instead.</p>
</div>

<a id="dt-9459c9ba49db0407775c"></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;gpr&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#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/clock/imx5-clock.h&gt;

ldb@53fa8008 {
    compatible = "fsl,imx53-ldb";
    reg = &lt;0x53fa8008 0x4&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    gpr = &lt;&amp;gpr&gt;;
    clocks = &lt;&amp;clks IMX5_CLK_LDB_DI0_SEL&gt;,
             &lt;&amp;clks IMX5_CLK_LDB_DI1_SEL&gt;,
             &lt;&amp;clks IMX5_CLK_IPU_DI0_SEL&gt;,
             &lt;&amp;clks IMX5_CLK_IPU_DI1_SEL&gt;,
             &lt;&amp;clks IMX5_CLK_LDB_DI0_GATE&gt;,
             &lt;&amp;clks IMX5_CLK_LDB_DI1_GATE&gt;;
    clock-names = "di0_pll", "di1_pll",
                  "di0_sel", "di1_sel",
                  "di0", "di1";

    /* Using an of-graph endpoint link to connect the panel */
    lvds-channel@0 {
            reg = &lt;0&gt;;
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;0&gt;;

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

                endpoint {
                    remote-endpoint = &lt;&amp;ipu_di0_lvds0&gt;;
                };
            };

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

                endpoint {
                    remote-endpoint = &lt;&amp;panel_in&gt;;
                };
           };
    };

    /* Using display-timings and fsl,data-mapping/width instead */
    lvds-channel@1 {
            reg = &lt;1&gt;;
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;0&gt;;
            fsl,data-mapping = "spwg";
            fsl,data-width = &lt;24&gt;;

            display-timings {/* ... */
            };

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

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