# Microchip's LCDC Display

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

> Device-tree binding reference for Microchip's LCDC Display.

<!-- SPDX-License-Identifier: (GPL-2.0 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;atmel&#44;lcdc&#45;display&#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;Nicolas Ferre &#60;nicolas&#46;ferre&#64;microchip&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Dharma Balasubiramani &#60;dharma&#46;b&#64;microchip&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The LCD Controller (LCDC) consists of logic for transferring LCD image data from an external display buffer to a TFT LCD panel. The LCDC has one display input buffer per layer that fetches pixels through the single bus host interface and a look-up table to allow palletized display configurations. The LCDC is programmable on a per layer basis, and supports different LCD resolutions, window sizes, image formats and pixel depths.</p>
</div>

<a id="dt-865ef19e891fb9fe7b15"></a>

## Automatic schema selection (<code>select</code>)

> <a id="dt-dff73b75195f2859c26d"></a>
>
> ### At least one of these rules must match (<code>anyOf</code>)
>
> <a id="dt-1f26a5b7c60825363a68"></a>
>
> #### Rule 1
>
> > **Required in this object (<code>required</code>):** <a id="dt-31d50f29ab7c38e41b93"></a> <span id="dt-baf9b5c51116bcc82268"><code>&#34;atmel&#44;dmacon&#34;</code></span>
>
> <a id="dt-974c41ac981574aea151"></a>
>
> #### Rule 2
>
> > **Required in this object (<code>required</code>):** <a id="dt-cc0174d006ef3c5e35bb"></a> <span id="dt-e3f3f12db06431503a53"><code>&#34;atmel&#44;lcdcon2&#34;</code></span>
>
> <a id="dt-ca12a4cfa3f7831c4595"></a>
>
> #### Rule 3
>
> > **Required in this object (<code>required</code>):** <a id="dt-1349b2551764b54134c9"></a> <span id="dt-86a34594af6001a89039"><code>&#34;atmel&#44;guard&#45;time&#34;</code></span>

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

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

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

### <code>atmel&#44;dmacon</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e7d1f3c534a5cbe742fc">[<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-da8b9349517b2c4cc613">
<p style="white-space: pre-wrap">dma controller configuration</p>
</div>

<a id="dt-218d74f2fad617cb9aef"></a>

### <code>atmel&#44;lcdcon2</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-855f3d135b1729ab6152">[<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-aa5d9aa1091e26c733bf">
<p style="white-space: pre-wrap">lcd controller configuration</p>
</div>

<a id="dt-123be762474169f6b3a5"></a>

### <code>atmel&#44;guard&#45;time</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-aa276f347b2d67a2bdd4">[<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-bc0d26d3842a856dc1a1">
<p style="white-space: pre-wrap">lcd guard time (Delay in frame periods)</p>
</div>

**Maximum value (<code>maximum</code>):** <span id="dt-2f8fcc880b8e425d37e0"><code>127</code></span>

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

### <code>bits&#45;per&#45;pixel</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-221f4baa45c1fe4f2f0a">[<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-cc408a8c21ef1bc691c9">
<p style="white-space: pre-wrap">lcd panel bit-depth.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-ef682684544c46982fb6"></a> <span id="dt-3b31acd98341d731aa6f"><code>1</code></span>, <span id="dt-ef34097dbed55c75b668"><code>2</code></span>, <span id="dt-744b79a25bc60da00e7b"><code>4</code></span>, <span id="dt-73166b0b2b7749abbf76"><code>8</code></span>, <span id="dt-454e9fb104269d3e3abf"><code>16</code></span>, <span id="dt-4e7ce84dfb8c072f9768"><code>24</code></span>, <span id="dt-007b022faaf7d54de9f5"><code>32</code></span>

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

### <code>atmel&#44;lcdcon&#45;backlight</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-744b8f8e332646560889">[<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-f34493afc7ee353b6569">
<p style="white-space: pre-wrap">enable backlight</p>
</div>

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

### <code>atmel&#44;lcdcon&#45;backlight&#45;inverted</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b37c9188bc4d0ab1f80f">[<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-d305c46e36f80ed668d8">
<p style="white-space: pre-wrap">invert backlight PWM polarity</p>
</div>

<a id="dt-8ed362840b115e1ef198"></a>

### <code>atmel&#44;lcd&#45;wiring&#45;mode</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fce3b0ee62f6764bada4">[<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-e7004ef208302c67fa84">
<p style="white-space: pre-wrap">lcd wiring mode "RGB" or "BRG"</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-7e2a3c5fbe3349bb6be6"></a> <span id="dt-fa158726d9fbb72de2b2"><code>&#34;RGB&#34;</code></span>, <span id="dt-c33a68bf9c6f320f8024"><code>&#34;BRG&#34;</code></span>

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

### <code>atmel&#44;power&#45;control&#45;gpio</code> — not listed as required here

<div id="dt-4723f9734e7381231ac5">
<p style="white-space: pre-wrap">gpio to power on or off the LCD (as many as needed)</p>
</div>

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

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

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

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

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;atmel&#44;dmacon&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;atmel&#44;lcdcon2&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;atmel&#44;guard&#45;time&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;bits&#45;per&#45;pixel&#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">display: panel {
  bits-per-pixel = &lt;32&gt;;
  atmel,lcdcon-backlight;
  atmel,dmacon = &lt;0x1&gt;;
  atmel,lcdcon2 = &lt;0x80008002&gt;;
  atmel,guard-time = &lt;9&gt;;
  atmel,lcd-wiring-mode = "RGB";

  display-timings {
    native-mode = &lt;&amp;timing0&gt;;
    timing0: timing0 {
      clock-frequency = &lt;9000000&gt;;
      hactive = &lt;480&gt;;
      vactive = &lt;272&gt;;
      hback-porch = &lt;1&gt;;
      hfront-porch = &lt;1&gt;;
      vback-porch = &lt;40&gt;;
      vfront-porch = &lt;1&gt;;
      hsync-len = &lt;45&gt;;
      vsync-len = &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 OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 21:</strong> <span> We need a select here since this schema is applicable only for nodes with the</span></p>

<p id="dt-comment-2"><strong>Line 22:</strong> <span> following properties</span></p>

</details>
