# Arm PrimeCell Color LCD Controller PL110/PL111

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

> Device-tree binding reference for Arm PrimeCell Color LCD Controller PL110/PL111.

<!-- 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;arm&#44;pl11x&#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;Liviu Dudau &#60;Liviu&#46;Dudau&#64;arm&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Andre Przywara &#60;andre&#46;przywara&#64;arm&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Arm Primcell PL010/PL111 is an LCD controller IP, than scans out a framebuffer region in system memory, and creates timed signals for a variety of LCD panels.</p>
</div>

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

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

> <a id="dt-54d143fae2406295c883"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-e3400bab629503b08322"></a>
>
> #### <code>compatible</code> — required here
>
> <a id="dt-2ae4f0f9580bb5b2e406"></a>
>
> **Rule for matching array elements (<code>contains</code>)**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-ce9b069a8031ff280c23"></a> <span id="dt-e79f31d4eec3cf736314"><code>&#34;arm&#44;pl110&#34;</code></span>, <span id="dt-b228f13d1a3291d89dd4"><code>&#34;arm&#44;pl111&#34;</code></span>
>
> **Required in this object (<code>required</code>):** <a id="dt-c7b135d3aebb6d627788"></a> <span id="dt-7b7a89ef483af1198868"><code>&#34;compatible&#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-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;arm&#44;pl110&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;arm&#44;pl111&#34;</code></span>

<a id="dt-0891c69625632ea817fd"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-f1f862a3cfab3ac620c8"><code>&#34;arm&#44;primecell&#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-8aa4fd7705c68de75d2b"></a>

### <code>interrupt&#45;names</code> — not listed as required here

<a id="dt-7c87f4c4d6ae5b67cb69"></a>

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

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-4fe9bab67ab55220851c"><code>&#34;combined&#34;</code></span>
>
> <div id="dt-63f7bcb74f50844b5360">
> <p style="white-space: pre-wrap">The IP provides four individual interrupt lines, but also one combined line. If the integration only connects this line to the interrupt controller, this single interrupt is noted here.</p>
> </div>

<a id="dt-49450ca309f7fa677720"></a>

**Rule 2**

> <a id="dt-3f5226d3358b9f7233cd"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-168695c518f0a2b5192f"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-219a5f51cbccd7444454"><code>&#34;mbe&#34;</code></span>
>
> <a id="dt-74dea7eca44399918292"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-94b431338a76fa9ae249"><code>&#34;vcomp&#34;</code></span>
>
> <a id="dt-c5cfc6a5b382577118b4"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-6c8a800bce3050ac216d"><code>&#34;lnbu&#34;</code></span>
>
> <a id="dt-49e904b35cf148fa04a1"></a>
>
> **Item 4**
>
> > **Exact value (<code>const</code>):** <span id="dt-4bf52f3885a7adec6bc2"><code>&#34;fuf&#34;</code></span>

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

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

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

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

<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;clcdclk&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;apb&#95;pclk&#34;</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">The CLCDCLK reference clock for the controller.</p>
> </div>

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

**Item 2**

> <div id="dt-6b79aebfd2287d4aeab8">
> <p style="white-space: pre-wrap">The HCLK AHB slave clock for the register access.</p>
> </div>

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

### <code>memory&#45;region</code> — not listed as required here

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

<div id="dt-b794f979757a4fadd5eb">
<p style="white-space: pre-wrap">Phandle to a node describing memory to be used for the framebuffer. If not present, the framebuffer may be located anywhere in memory.</p>
</div>

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

### <code>max&#45;memory&#45;bandwidth</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-21604d86ad7084083b72">[<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-b1ece47a581c0455c021">
<p style="white-space: pre-wrap">Maximum bandwidth in bytes per second that the cell's memory interface can handle. If not present, the memory interface is fast enough to handle all possible video modes.</p>
</div>

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

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

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

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

### <code>port</code> — 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-d89b2cd0e08760d504bf"></a>

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

<code>false</code>

Not allowed by this rule.

<div id="dt-0cd71b006a1fcbec8daa">
<p style="white-space: pre-wrap">Output endpoint of the controller, connecting the LCD panel signals.</p>
</div>

<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;graph&#46;yaml&#35;&#47;&#36;defs&#47;endpoint&#45;base</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-7415ffe8e57fb59e2968>)</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-379ad4ba4c48ef74875c"></a>

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

<a id="dt-1448ae3bc58f01a34f5e"></a>

**<code>arm&#44;pl11x&#44;tft&#45;r0g0b0&#45;pads</code> — not listed as required here**

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

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

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

<a id="dt-438fff8f7603c32a050d"></a>

**Item 1**

> <div id="dt-86fc903b7cd663f82b3e">
> <p style="white-space: pre-wrap">index of CLD pad used for first red bit (R0)</p>
> </div>

<a id="dt-113ece6ae414a432200e"></a>

**Item 2**

> <div id="dt-f78ccd76959ce88422b7">
> <p style="white-space: pre-wrap">index of CLD pad used for first green bit (G0)</p>
> </div>

<a id="dt-74a14e133f6b659fd2f1"></a>

**Item 3**

> <div id="dt-fdc93304d7a55785beed">
> <p style="white-space: pre-wrap">index of CLD pad used for first blue bit (G0)</p>
> </div>

**Deprecated (<code>deprecated</code>):** <span id="dt-6ebebf3c83effba13519"><code>true</code></span>

<div id="dt-ebd353c46996e143d19a">
<pre><code>DEPRECATED. An array of three 32-bit values, defining the way
CLD[23:0] pads are wired up.
The first value contains the index of the "CLD" external pin (pad)
used as R0 (first bit of the red component), the second value for
green, the third value for blue.
See also "LCD panel signal multiplexing details" paragraphs in the
PL110/PL111 Technical Reference Manuals.
This implicitly defines available color modes, for example:
- PL111 TFT 4:4:4 panel:
    arm,pl11x,tft-r0g0b0-pads = &lt;4 15 20&gt;;
- PL110 TFT (1:)5:5:5 panel:
    arm,pl11x,tft-r0g0b0-pads = &lt;1 7 13&gt;;
- PL111 TFT (1:)5:5:5 panel:
    arm,pl11x,tft-r0g0b0-pads = &lt;3 11 19&gt;;
- PL111 TFT 5:6:5 panel:
    arm,pl11x,tft-r0g0b0-pads = &lt;3 10 19&gt;;
- PL110 and PL111 TFT 8:8:8 panel:
    arm,pl11x,tft-r0g0b0-pads = &lt;0 8 16&gt;;
- PL110 and PL111 TFT 8:8:8 panel, R &amp; B components swapped:
    arm,pl11x,tft-r0g0b0-pads = &lt;16 8 0&gt;;</code></pre>
</div>

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

**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;clock&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clocks&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;port&#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-98d18bfe3ad183aae7ee"></a>
> >
> > **<code>interrupts</code> — required here**
> >
> > **Minimum number of items (<code>minItems</code>):** <span id="dt-2dc5367c5fc9af971a35"><code>2</code></span>
> >
> > **Required in this object (<code>required</code>):** <a id="dt-8562362a36ebdbb1ff2a"></a> <span id="dt-31d648f7705dc578c2d6"><code>&#34;interrupts&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-b0b2f2243ff9a854f151"></a> <span id="dt-4e9ead0e861b67997dec"><code>&#34;interrupt&#45;names&#34;</code></span>

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

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">clcd@10020000 {
    compatible = "arm,pl111", "arm,primecell";
    reg = &lt;0x10020000 0x1000&gt;;
    interrupt-names = "combined";
    interrupts = &lt;44&gt;;
    clocks = &lt;&amp;oscclk1&gt;, &lt;&amp;oscclk2&gt;;
    clock-names = "clcdclk", "apb_pclk";
    max-memory-bandwidth = &lt;94371840&gt;; /* Bps, 1024x768@60 16bpp */

    port {
        clcd_pads: endpoint {
            remote-endpoint = &lt;&amp;clcd_panel&gt;;
        };
    };
};

panel {
    compatible = "arm,rtsm-display";

    port {
        clcd_panel: endpoint {
            remote-endpoint = &lt;&amp;clcd_pads&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>

<p id="dt-comment-1"><strong>Line 18:</strong> <span> We need a select here so we don't match all nodes with 'arm,primecell'</span></p>

<p id="dt-comment-2"><strong>Line 48:</strong> <span> CLCDMBEINTR</span></p>

<p id="dt-comment-3"><strong>Line 49:</strong> <span> CLCDVCOMPINTR</span></p>

<p id="dt-comment-4"><strong>Line 50:</strong> <span> CLCDLNBUINTR</span></p>

<p id="dt-comment-5"><strong>Line 51:</strong> <span> CLCDFUFINTR</span></p>

</details>
