xref: /linux/Documentation/devicetree/bindings/display/panel/panel-common.yaml (revision 92e513fb079833d2f775d9771071174d9f3936c3)
1821a1f71SRob Herring# SPDX-License-Identifier: GPL-2.0
2821a1f71SRob Herring%YAML 1.2
3821a1f71SRob Herring---
4821a1f71SRob Herring$id: http://devicetree.org/schemas/display/panel/panel-common.yaml#
5821a1f71SRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml#
6821a1f71SRob Herring
7821a1f71SRob Herringtitle: Common Properties for Display Panels
8821a1f71SRob Herring
9821a1f71SRob Herringmaintainers:
10821a1f71SRob Herring  - Thierry Reding <thierry.reding@gmail.com>
11821a1f71SRob Herring  - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
12821a1f71SRob Herring
13821a1f71SRob Herringdescription: |
14821a1f71SRob Herring  This document defines device tree properties common to several classes of
15821a1f71SRob Herring  display panels. It doesn't constitue a device tree binding specification by
16821a1f71SRob Herring  itself but is meant to be referenced by device tree bindings.
17821a1f71SRob Herring
18821a1f71SRob Herring  When referenced from panel device tree bindings the properties defined in this
19821a1f71SRob Herring  document are defined as follows. The panel device tree bindings are
20821a1f71SRob Herring  responsible for defining whether each property is required or optional.
21821a1f71SRob Herring
22821a1f71SRob Herringproperties:
23821a1f71SRob Herring  # Descriptive Properties
24821a1f71SRob Herring  width-mm:
25821a1f71SRob Herring    description:
26821a1f71SRob Herring      Specifies the width of the physical area where images are displayed. This
27821a1f71SRob Herring      property is expressed in millimeters and rounded to the closest unit.
28821a1f71SRob Herring
29821a1f71SRob Herring  height-mm:
30821a1f71SRob Herring    description:
31821a1f71SRob Herring      Specifies the height of the physical area where images are displayed. This
32821a1f71SRob Herring      property is expressed in millimeters and rounded to the closest unit.
33821a1f71SRob Herring
34821a1f71SRob Herring  label:
35821a1f71SRob Herring    description: |
36821a1f71SRob Herring      The label property specifies a symbolic name for the panel as a
37821a1f71SRob Herring      string suitable for use by humans. It typically contains a name inscribed
38821a1f71SRob Herring      on the system (e.g. as an affixed label) or specified in the system's
39821a1f71SRob Herring      documentation (e.g. in the user's manual).
40821a1f71SRob Herring
41821a1f71SRob Herring      If no such name exists, and unless the property is mandatory according to
42821a1f71SRob Herring      device tree bindings, it shall rather be omitted than constructed of
43821a1f71SRob Herring      non-descriptive information. For instance an LCD panel in a system that
44821a1f71SRob Herring      contains a single panel shall not be labelled "LCD" if that name is not
45821a1f71SRob Herring      inscribed on the system or used in a descriptive fashion in system
46821a1f71SRob Herring      documentation.
47821a1f71SRob Herring
48821a1f71SRob Herring  rotation:
49821a1f71SRob Herring    description:
50821a1f71SRob Herring      Display rotation in degrees counter clockwise (0,90,180,270)
51821a1f71SRob Herring    allOf:
52821a1f71SRob Herring      - $ref: /schemas/types.yaml#/definitions/uint32
53821a1f71SRob Herring      - enum: [ 0, 90, 180, 270 ]
54821a1f71SRob Herring
55821a1f71SRob Herring  # Display Timings
56821a1f71SRob Herring  panel-timing:
57821a1f71SRob Herring    description:
58821a1f71SRob Herring      Most display panels are restricted to a single resolution and
59821a1f71SRob Herring      require specific display timings. The panel-timing subnode expresses those
603aa31cedSSam Ravnborg      timings.
613aa31cedSSam Ravnborg    allOf:
623aa31cedSSam Ravnborg      - $ref: panel-timing.yaml#
63821a1f71SRob Herring
644dd23a47SSam Ravnborg  display-timings:
654dd23a47SSam Ravnborg    description:
66*92e513fbSSam Ravnborg      Some display panels support several resolutions with different timings.
674dd23a47SSam Ravnborg      The display-timings bindings supports specifying several timings and
68*92e513fbSSam Ravnborg      optionally specifying which is the native mode.
694dd23a47SSam Ravnborg    allOf:
704dd23a47SSam Ravnborg      - $ref: display-timings.yaml#
714dd23a47SSam Ravnborg
72821a1f71SRob Herring  # Connectivity
73821a1f71SRob Herring  port:
74821a1f71SRob Herring    type: object
75821a1f71SRob Herring
76821a1f71SRob Herring  ports:
77821a1f71SRob Herring    type: object
78821a1f71SRob Herring    description:
79821a1f71SRob Herring      Panels receive video data through one or multiple connections. While
80821a1f71SRob Herring      the nature of those connections is specific to the panel type, the
81821a1f71SRob Herring      connectivity is expressed in a standard fashion using ports as specified
82821a1f71SRob Herring      in the device graph bindings defined in
83821a1f71SRob Herring      Documentation/devicetree/bindings/graph.txt.
84821a1f71SRob Herring
85821a1f71SRob Herring  ddc-i2c-bus:
86821a1f71SRob Herring    $ref: /schemas/types.yaml#/definitions/phandle
87821a1f71SRob Herring    description:
88821a1f71SRob Herring      Some panels expose EDID information through an I2C-compatible
89821a1f71SRob Herring      bus such as DDC2 or E-DDC. For such panels the ddc-i2c-bus contains a
90821a1f71SRob Herring      phandle to the system I2C controller connected to that bus.
91821a1f71SRob Herring
92821a1f71SRob Herring  no-hpd:
93821a1f71SRob Herring    type: boolean
94821a1f71SRob Herring    description:
95821a1f71SRob Herring      This panel is supposed to communicate that it's ready via HPD
96821a1f71SRob Herring      (hot plug detect) signal, but the signal isn't hooked up so we should
97821a1f71SRob Herring      hardcode the max delay from the panel spec when powering up the panel.
98821a1f71SRob Herring
99821a1f71SRob Herring  # Control I/Os
100821a1f71SRob Herring
101821a1f71SRob Herring  # Many display panels can be controlled through pins driven by GPIOs. The nature
102821a1f71SRob Herring  # and timing of those control signals are device-specific and left for panel
103821a1f71SRob Herring  # device tree bindings to specify. The following GPIO specifiers can however be
104821a1f71SRob Herring  # used for panels that implement compatible control signals.
105821a1f71SRob Herring
106821a1f71SRob Herring  enable-gpios:
107821a1f71SRob Herring    maxItems: 1
108821a1f71SRob Herring    description: |
109821a1f71SRob Herring      Specifier for a GPIO connected to the panel enable control signal. The
110821a1f71SRob Herring      enable signal is active high and enables operation of the panel. This
111821a1f71SRob Herring      property can also be used for panels implementing an active low power down
112821a1f71SRob Herring      signal, which is a negated version of the enable signal. Active low enable
113821a1f71SRob Herring      signals (or active high power down signals) can be supported by inverting
114821a1f71SRob Herring      the GPIO specifier polarity flag.
115821a1f71SRob Herring
116821a1f71SRob Herring      Note that the enable signal control panel operation only and must not be
117821a1f71SRob Herring      confused with a backlight enable signal.
118821a1f71SRob Herring
119821a1f71SRob Herring  reset-gpios:
120821a1f71SRob Herring    maxItems: 1
121821a1f71SRob Herring    description:
122821a1f71SRob Herring      Specifier for a GPIO connected to the panel reset control signal.
123821a1f71SRob Herring      The reset signal is active low and resets the panel internal logic
124821a1f71SRob Herring      while active. Active high reset signals can be supported by inverting the
125821a1f71SRob Herring      GPIO specifier polarity flag.
126821a1f71SRob Herring
127821a1f71SRob Herring  # Power
128821a1f71SRob Herring  power-supply:
129821a1f71SRob Herring    description:
130821a1f71SRob Herring      Display panels require power to be supplied. While several panels need
131821a1f71SRob Herring      more than one power supply with panel-specific constraints governing the
132821a1f71SRob Herring      order and timings of the power supplies, in many cases a single power
133821a1f71SRob Herring      supply is sufficient, either because the panel has a single power rail, or
134821a1f71SRob Herring      because all its power rails can be driven by the same supply. In that case
135821a1f71SRob Herring      the power-supply property specifies the supply powering the panel as a
136821a1f71SRob Herring      phandle to a regulator.
137821a1f71SRob Herring
138821a1f71SRob Herring  # Backlight
139821a1f71SRob Herring
140821a1f71SRob Herring  # Most display panels include a backlight. Some of them also include a backlight
141821a1f71SRob Herring  # controller exposed through a control bus such as I2C or DSI. Others expose
142821a1f71SRob Herring  # backlight control through GPIO, PWM or other signals connected to an external
143821a1f71SRob Herring  # backlight controller.
144821a1f71SRob Herring
145821a1f71SRob Herring  backlight:
146821a1f71SRob Herring    $ref: /schemas/types.yaml#/definitions/phandle
147821a1f71SRob Herring    description:
148821a1f71SRob Herring      For panels whose backlight is controlled by an external backlight
149821a1f71SRob Herring      controller, this property contains a phandle that references the
150821a1f71SRob Herring      controller.
151821a1f71SRob Herring
152821a1f71SRob Herringdependencies:
153821a1f71SRob Herring  width-mm: [ height-mm ]
154821a1f71SRob Herring  height-mm: [ width-mm ]
155821a1f71SRob Herring
156821a1f71SRob Herring...
157