1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/display/panel/panel-timing.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: panel timing bindings
10 - Thierry Reding <thierry.reding@gmail.com>
11 - Sam Ravnborg <sam@ravnborg.org>
14 There are different ways of describing the timing data of a panel. The
15 devicetree representation corresponds to the one commonly found in datasheets
18 The parameters are defined as seen in the following illustration.
20 +----------+-------------------------------------+----------+-------+
22 | | |vback_porch | | |
24 +----------#######################################----------+-------+
27 | hback # | # hfront | hsync |
28 | porch # | hactive # porch | len |
29 |<-------->#<-------+--------------------------->#<-------->|<----->|
34 +----------#######################################----------+-------+
36 | | |vfront_porch | | |
38 +----------+-------------------------------------+----------+-------+
42 +----------+-------------------------------------+----------+-------+
45 The following is the panel timings shown with time on the x-axis.
46 This matches the timing diagrams often found in data sheets.
48 Active Front Sync Back
50 <-----------------------><----------------><-------------><-------------->
51 //////////////////////|
52 ////////////////////// |
53 ////////////////////// |.................. ................
56 Timing can be specified either as a typical value or as a tuple
57 of min, typ, max values.
62 description: Panel clock in Hz
65 $ref: /schemas/types.yaml#/definitions/uint32
66 description: Horizontal panel resolution in pixels
69 $ref: /schemas/types.yaml#/definitions/uint32
70 description: Vertical panel resolution in pixels
73 description: Horizontal front porch panel timing
76 - $ref: /schemas/types.yaml#/definitions/uint32
79 description: typical number of pixels
81 - $ref: /schemas/types.yaml#/definitions/uint32-array
85 description: min, typ, max number of pixels
88 description: Horizontal back porch timing
91 - $ref: /schemas/types.yaml#/definitions/uint32
94 description: typical number of pixels
96 - $ref: /schemas/types.yaml#/definitions/uint32-array
100 description: min, typ, max number of pixels
103 description: Horizontal sync length panel timing
106 - $ref: /schemas/types.yaml#/definitions/uint32
109 description: typical number of pixels
111 - $ref: /schemas/types.yaml#/definitions/uint32-array
115 description: min, typ, max number of pixels
118 description: Vertical front porch panel timing
121 - $ref: /schemas/types.yaml#/definitions/uint32
124 description: typical number of lines
126 - $ref: /schemas/types.yaml#/definitions/uint32-array
130 description: min, typ, max number of lines
133 description: Vertical back porch panel timing
136 - $ref: /schemas/types.yaml#/definitions/uint32
139 description: typical number of lines
141 - $ref: /schemas/types.yaml#/definitions/uint32-array
145 description: min, typ, max number of lines
148 description: Vertical sync length panel timing
151 - $ref: /schemas/types.yaml#/definitions/uint32
154 description: typical number of lines
156 - $ref: /schemas/types.yaml#/definitions/uint32-array
160 description: min, typ, max number of lines
164 Horizontal sync pulse.
165 0 selects active low, 1 selects active high.
166 If omitted then it is not used by the hardware
172 0 selects active low, 1 selects active high.
173 If omitted then it is not used by the hardware
179 0 selects active low, 1 selects active high.
180 If omitted then it is not used by the hardware
185 Data driving on rising or falling edge.
186 Use 0 to drive pixel data on falling edge and
187 sample data on rising edge.
188 Use 1 to drive pixel data on rising edge and
189 sample data on falling edge
194 Drive sync on rising or sample sync on falling edge.
195 If not specified then the setup is as specified by pixelclk-active.
196 Use 0 to drive sync on falling edge and
197 sample sync on rising edge of pixel clock.
198 Use 1 to drive sync on rising edge and
199 sample sync on falling edge of pixel clock
204 description: Enable interlaced mode
208 description: Enable double scan mode
212 description: Enable double clock mode
225 additionalProperties: false