# TPO TPG110 Panel

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

> Device-tree binding reference for TPO TPG110 Panel.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;panel&#47;tpo&#44;tpg110&#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;Linus Walleij &#60;linusw&#64;kernel&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Thierry Reding &#60;thierry&#46;reding&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This panel driver is a component that acts as an intermediary
between an RGB output and a variety of panels. The panel
driver is strapped up in electronics to the desired resolution
and other properties, and has a control interface over 3WIRE
SPI. By talking to the TPG110 over SPI, the strapped properties
can be discovered and the hardware is therefore mostly
self-describing.</p>
<pre><code>       +--------+
SPI -&gt; |  TPO   | -&gt; physical display
RGB -&gt; | TPG110 |
       +--------+</code></pre>
<p style="white-space: pre-wrap">If some electrical strap or alternate resolution is desired,
this can be set up by taking software control of the display
over the SPI interface. The interface can also adjust
for properties of the display such as gamma correction and
certain electrical driving levels.</p>
<p style="white-space: pre-wrap">The TPG110 does not know the physical dimensions of the panel
connected, so this needs to be specified in the device tree.</p>
<p style="white-space: pre-wrap">It requires a GPIO line for control of its reset line.</p>
<p style="white-space: pre-wrap">The serial protocol has line names that resemble I2C but the
protocol is not I2C but 3WIRE SPI.</p>
</div>

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

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

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

### Rule 1

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

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8549616abc3b04702c51">[<code>&#47;schemas&#47;spi&#47;spi&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-spi/spi-peripheral-props.md#dt-root>)</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**

> <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;ste&#44;nomadik&#45;nhk15&#45;display&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;tpo&#44;tpg110&#34;</code></span>

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

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;tpo&#44;tpg110&#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-d86b31a6cb16dc8fafa1"></a>

### <code>grestb&#45;gpios</code> — required here

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

<div id="dt-fd2f032c8a31821ef3be">
<p style="white-space: pre-wrap">panel reset GPIO</p>
</div>

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

### <code>spi&#45;3wire</code> — required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-03a3b4f56bf191dde680"></a>

### <code>spi&#45;max&#45;frequency</code> — required here

**Exact value (<code>const</code>):** <span id="dt-7c75e826b8c0ebcaaef4"><code>3000000</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;grestb&#45;gpios&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;width&#45;mm&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;height&#45;mm&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;spi&#45;3wire&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;spi&#45;max&#45;frequency&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;port&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">spi {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  panel: display@0 {
    compatible = "tpo,tpg110";
    reg = &lt;0&gt;;
    spi-3wire;
    /* 320 ns min period ~= 3 MHz */
    spi-max-frequency = &lt;3000000&gt;;
    /* Width and height from data sheet */
    width-mm = &lt;116&gt;;
    height-mm = &lt;87&gt;;
    grestb-gpios = &lt;&amp;foo_gpio 5 1&gt;;
    backlight = &lt;&amp;bl&gt;;

    port {
      nomadik_clcd_panel: endpoint {
        remote-endpoint = &lt;&amp;foo&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</span></p>

</details>
