# Amlogic Meson Display Controller

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

> Device-tree binding reference for Amlogic Meson Display Controller.

<!-- 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;amlogic&#44;meson&#45;vpu&#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;Neil Armstrong &#60;neil&#46;armstrong&#64;linaro&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Amlogic Meson Display controller is composed of several components
that are going to be documented below</p>
<pre><code>DMC|---------------VPU (Video Processing Unit)----------------|------HHI------|
   | vd1   _______     _____________    _________________     |               |
D  |-------|      |----|            |   |                |    |   HDMI PLL    |
D  | vd2   | VIU  |    | Video Post |   | Video Encoders |&lt;---|-----VCLK      |
R  |-------|      |----| Processing |   |                |    |               |
   | osd2  |      |    |            |---| Enci ----------|----|-----VDAC------|
R  |-------| CSC  |----| Scalers    |   | Encp ----------|----|----HDMI-TX----|
A  | osd1  |      |    | Blenders   |   | Encl ----------|----|---------------|
M  |-------|______|----|____________|   |________________|    |               |
___|__________________________________________________________|_______________|</code></pre>
<p style="white-space: pre-wrap">VIU: Video Input Unit
---------------------</p>
<p style="white-space: pre-wrap">The Video Input Unit is in charge of the pixel scanout from the DDR memory.
It fetches the frames addresses, stride and parameters from the "Canvas" memory.
This part is also in charge of the CSC (Colorspace Conversion).
It can handle 2 OSD Planes and 2 Video Planes.</p>
<p style="white-space: pre-wrap">VPP: Video Post Processing
--------------------------</p>
<p style="white-space: pre-wrap">The Video Post Processing is in charge of the scaling and blending of the
various planes into a single pixel stream.
There is a special "pre-blending" used by the video planes with a dedicated
scaler and a "post-blending" to merge with the OSD Planes.
The OSD planes also have a dedicated scaler for one of the OSD.</p>
<p style="white-space: pre-wrap">VENC: Video Encoders
--------------------</p>
<p style="white-space: pre-wrap">The VENC is composed of the multiple pixel encoders
 - ENCI : Interlace Video encoder for CVBS and Interlace HDMI
 - ENCP : Progressive Video Encoder for HDMI
 - ENCL : LCD LVDS Encoder
The VENC Unit gets a Pixel Clocks (VCLK) from a dedicated HDMI PLL and clock
tree and provides the scanout clock to the VPP and VIU.
The ENCI is connected to a single VDAC for Composite Output.
The ENCI and ENCP are connected to an on-chip HDMI Transceiver.</p>
</div>

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

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;amlogic&#44;meson&#45;gxbb&#45;vpu&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;amlogic&#44;meson&#45;gxl&#45;vpu&#34;</code></span>, <span id="dt-b7d19de74fd35364d49f"><code>&#34;amlogic&#44;meson&#45;gxm&#45;vpu&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;amlogic&#44;meson&#45;gx&#45;vpu&#34;</code></span>

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

**Rule 2**

> **Allowed values (<code>enum</code>):** <a id="dt-ad5dbad5326d5a61ae46"></a> <span id="dt-af4759e2a8ab9583f63d"><code>&#34;amlogic&#44;meson&#45;g12a&#45;vpu&#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>2</code></span>

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

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-69afd9f8af3b0c5757d2"><code>&#34;vpu&#34;</code></span>

<a id="dt-12013039402717d72b48"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;hhi&#34;</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-aadef27666c6bc558ba5"></a>

### <code>amlogic&#44;canvas</code> — required here

<div id="dt-031378a146bb26241a38">
<p style="white-space: pre-wrap">should point to a canvas provider node</p>
</div>

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

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

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

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

<div id="dt-33c740e5969dba94b4e6">
<p style="white-space: pre-wrap">phandle to the associated power domain</p>
</div>

<a id="dt-56ea0118350e07c287bd"></a>

### <code>port&#64;0</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-276303634d08d4f6a9eb">[<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-2660b670d7052ad63e1c">
<p style="white-space: pre-wrap">A port node pointing to the CVBS VDAC port node.</p>
</div>

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

### <code>port&#64;1</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d3e59263b2f7ed520b7a">[<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-99b2cc6b4d54118a29ec">
<p style="white-space: pre-wrap">A port node pointing to the HDMI-TX port node.</p>
</div>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-3c0d4e97effe70cadd6c">[<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-82ccc52cdcafbe46755c">
<p style="white-space: pre-wrap">A port node pointing to the DPI port node (e.g. DSI or LVDS transceiver).</p>
</div>

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

**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;port&#64;0&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;port&#64;1&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;&#35;size&#45;cells&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;amlogic&#44;canvas&#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">vpu: vpu@d0100000 {
    compatible = "amlogic,meson-gxbb-vpu", "amlogic,meson-gx-vpu";
    reg = &lt;0xd0100000 0x100000&gt;, &lt;0xc883c000 0x1000&gt;;
    reg-names = "vpu", "hhi";
    interrupts = &lt;3&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    amlogic,canvas = &lt;&amp;canvas&gt;;

    /* CVBS VDAC output port */
    port@0 {
        reg = &lt;0&gt;;

        cvbs_vdac_out: endpoint {
            remote-endpoint = &lt;&amp;tv_connector_in&gt;;
        };
    };

    /* HDMI TX output port */
    port@1 {
        reg = &lt;1&gt;;

        hdmi_tx_out: endpoint {
            remote-endpoint = &lt;&amp;hdmi_tx_in&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 2:</strong> <span> Copyright 2019 BayLibre, SAS</span></p>

<p id="dt-comment-2"><strong>Line 62:</strong> <span> GXBB (S905)</span></p>

<p id="dt-comment-3"><strong>Line 63:</strong> <span> GXL (S905X, S905D)</span></p>

<p id="dt-comment-4"><strong>Line 64:</strong> <span> GXM (S912)</span></p>

<p id="dt-comment-5"><strong>Line 67:</strong> <span> G12A (S905X2, S905Y2, S905D2)</span></p>

</details>
