# Common Properties for Display Panels

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

> Device-tree binding reference for Common Properties for Display Panels.

<!-- 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;panel&#45;common&#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;Thierry Reding &#60;thierry&#46;reding&#64;gmail&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Laurent Pinchart &#60;laurent&#46;pinchart&#43;renesas&#64;ideasonboard&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This document defines device tree properties common to several classes of
display panels. It doesn't constitute a device tree binding specification by
itself but is meant to be referenced by device tree bindings.</p>
<p style="white-space: pre-wrap">When referenced from panel device tree bindings the properties defined in this
document are defined as follows. The panel device tree bindings are
responsible for defining whether each property is required or optional.</p>
</div>

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

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

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

### <code>width&#45;mm</code> — not listed as required here

<div id="dt-107eeb71f84ebc55e982">
<p style="white-space: pre-wrap">Specifies the width of the physical area where images are displayed. This property is expressed in millimeters and rounded to the closest unit.</p>
</div>

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

### <code>height&#45;mm</code> — not listed as required here

<div id="dt-66128b7c669911cfefee">
<p style="white-space: pre-wrap">Specifies the height of the physical area where images are displayed. This property is expressed in millimeters and rounded to the closest unit.</p>
</div>

<a id="dt-0c6076cd9d6f109c5cc6"></a>

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

<div id="dt-f7c1a813bb0d2e9dd066">
<p style="white-space: pre-wrap">The label property specifies a symbolic name for the panel as a
string suitable for use by humans. It typically contains a name inscribed
on the system (e.g. as an affixed label) or specified in the system's
documentation (e.g. in the user's manual).</p>
<p style="white-space: pre-wrap">If no such name exists, and unless the property is mandatory according to
device tree bindings, it shall rather be omitted than constructed of
non-descriptive information. For instance an LCD panel in a system that
contains a single panel shall not be labelled "LCD" if that name is not
inscribed on the system or used in a descriptive fashion in system
documentation.</p>
</div>

<a id="dt-88606ca5d1cd8f6c4522"></a>

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

<div id="dt-67b27ea36e947d83c9b6">
<p style="white-space: pre-wrap">Display rotation in degrees counter clockwise (0,90,180,270)</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-8d9d20bdfb7eaa7af619"></a> <span id="dt-5c0b14e955ad4fdb7a30"><code>0</code></span>, <span id="dt-78a5fc79a182d7c204e0"><code>90</code></span>, <span id="dt-284f5d8a985f6b235bbe"><code>180</code></span>, <span id="dt-47d0a2d8f7519db9677f"><code>270</code></span>

<a id="dt-358a1adebee72f83e7d4"></a>

### <code>flip&#45;horizontal</code> — not listed as required here

<div id="dt-085c323b619f4af1b3a8">
<p style="white-space: pre-wrap">boolean to flip image horizontally</p>
</div>

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

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

### <code>flip&#45;vertical</code> — not listed as required here

<div id="dt-752a0c84490edcd0e317">
<p style="white-space: pre-wrap">boolean to flip image vertically</p>
</div>

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

<a id="dt-28a419e1415213b9fb88"></a>

### <code>panel&#45;timing</code> — not listed as required here

<div id="dt-dcb0a13b59b99f5779ae">
<p style="white-space: pre-wrap">Most display panels are restricted to a single resolution and require specific display timings. The panel-timing subnode expresses those timings.</p>
</div>

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

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

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

<div id="dt-d7df64685a3b5717dcad">
<p style="white-space: pre-wrap">Some display panels support several resolutions with different timings. The display-timings bindings supports specifying several timings and optionally specifying which is the native mode.</p>
</div>

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1ed24d3512fbe8ce2017">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;properties&#47;port</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-1d845f0617b4072cef77>)</span>

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

### <code>ddc&#45;i2c&#45;bus</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b6a8daab68018785ea73">[<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-ba99f956321a9f3ee831">
<p style="white-space: pre-wrap">Some panels expose EDID information through an I2C-compatible bus such as DDC2 or E-DDC. For such panels the ddc-i2c-bus contains a phandle to the system I2C controller connected to that bus.</p>
</div>

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

### <code>no&#45;hpd</code> — not listed as required here

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

<div id="dt-4c8a757df8840354ec81">
<p style="white-space: pre-wrap">This panel is supposed to communicate that it's ready via HPD (hot plug detect) signal, but the signal isn't hooked up so we should hardcode the max delay from the panel spec when powering up the panel.</p>
</div>

<a id="dt-74069f9631ab1dfaa211"></a>

### <code>hpd&#45;gpios</code> — not listed as required here

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

<div id="dt-a438bf38218874ba264b">
<p style="white-space: pre-wrap">If Hot Plug Detect (HPD) is connected to a GPIO in the system rather than a dedicated HPD pin the pin can be specified here.</p>
</div>

<a id="dt-0d068058a6f4b36b1505"></a>

### <code>enable&#45;gpios</code> — not listed as required here

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

<div id="dt-2169b15d9fc9d03c1e0f">
<p style="white-space: pre-wrap">Specifier for a GPIO connected to the panel enable control signal. The
enable signal is active high and enables operation of the panel. This
property can also be used for panels implementing an active low power down
signal, which is a negated version of the enable signal. Active low enable
signals (or active high power down signals) can be supported by inverting
the GPIO specifier polarity flag.</p>
<p style="white-space: pre-wrap">Note that the enable signal control panel operation only and must not be
confused with a backlight enable signal.</p>
</div>

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

### <code>reset&#45;gpios</code> — not listed as required here

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

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">Specifier for a GPIO connected to the panel reset control signal. The reset signal is active low and resets the panel internal logic while active. Active high reset signals can be supported by inverting the GPIO specifier polarity flag.</p>
</div>

<a id="dt-20906d8f98ce44223d07"></a>

### <code>te&#45;gpios</code> — not listed as required here

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

<div id="dt-3e7a7a5043ded5771ae3">
<p style="white-space: pre-wrap">GPIO spec for the tearing effect synchronization signal. The tearing effect signal is active high. Active low signals can be supported by inverting the GPIO specifier polarity flag.</p>
</div>

<a id="dt-01d05f1311938ca96abb"></a>

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

<div id="dt-c5b2942452eb66576e7d">
<p style="white-space: pre-wrap">Display panels require power to be supplied. While several panels need more than one power supply with panel-specific constraints governing the order and timings of the power supplies, in many cases a single power supply is sufficient, either because the panel has a single power rail, or because all its power rails can be driven by the same supply. In that case the power-supply property specifies the supply powering the panel as a phandle to a regulator.</p>
</div>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-961f3e13b2b0cc9c4a90">[<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-9033a1efe0bd3feea6c2">
<p style="white-space: pre-wrap">For panels whose backlight is controlled by an external backlight controller, this property contains a phandle that references the controller.</p>
</div>

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

## Property dependencies (<code>dependencies</code>)

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

### <code>width&#45;mm</code> — applies when this property is present

Also requires: <span id="dt-b96da4252f6006b90ccd"><code>&#34;height&#45;mm&#34;</code></span>

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

### <code>height&#45;mm</code> — applies when this property is present

Also requires: <span id="dt-7a1e06d9a8ebc74a096d"><code>&#34;width&#45;mm&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

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

<code>true</code>

Allowed by this rule.

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

<p id="dt-comment-1"><strong>Line 23:</strong> <span> Descriptive Properties</span></p>

<p id="dt-comment-2"><strong>Line 62:</strong> <span> Display Timings</span></p>

<p id="dt-comment-3"><strong>Line 77:</strong> <span> Connectivity</span></p>

<p id="dt-comment-4"><strong>Line 101:</strong> <span> Control I/Os</span></p>

<p id="dt-comment-5"><strong>Line 103:</strong> <span> Many display panels can be controlled through pins driven by GPIOs. The nature</span></p>

<p id="dt-comment-6"><strong>Line 104:</strong> <span> and timing of those control signals are device-specific and left for panel</span></p>

<p id="dt-comment-7"><strong>Line 105:</strong> <span> device tree bindings to specify. The following GPIO specifiers can however be</span></p>

<p id="dt-comment-8"><strong>Line 106:</strong> <span> used for panels that implement compatible control signals.</span></p>

<p id="dt-comment-9"><strong>Line 136:</strong> <span> Power</span></p>

<p id="dt-comment-10"><strong>Line 147:</strong> <span> Backlight</span></p>

<p id="dt-comment-11"><strong>Line 149:</strong> <span> Most display panels include a backlight. Some of them also include a backlight</span></p>

<p id="dt-comment-12"><strong>Line 150:</strong> <span> controller exposed through a control bus such as I2C or DSI. Others expose</span></p>

<p id="dt-comment-13"><strong>Line 151:</strong> <span> backlight control through GPIO, PWM or other signals connected to an external</span></p>

<p id="dt-comment-14"><strong>Line 152:</strong> <span> backlight controller.</span></p>

</details>
