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
75 - $ref: /schemas/types.yaml#/definitions/uint32
78 description: typical number of pixels
79 - $ref: /schemas/types.yaml#/definitions/uint32-array
83 description: min, typ, max number of pixels
86 description: Horizontal back porch timing
88 - $ref: /schemas/types.yaml#/definitions/uint32
91 description: typical number of pixels
92 - $ref: /schemas/types.yaml#/definitions/uint32-array
96 description: min, typ, max number of pixels
99 description: Horizontal sync length panel timing
101 - $ref: /schemas/types.yaml#/definitions/uint32
104 description: typical number of pixels
105 - $ref: /schemas/types.yaml#/definitions/uint32-array
109 description: min, typ, max number of pixels
112 description: Vertical front porch panel timing
114 - $ref: /schemas/types.yaml#/definitions/uint32
117 description: typical number of lines
118 - $ref: /schemas/types.yaml#/definitions/uint32-array
122 description: min, typ, max number of lines
125 description: Vertical back porch panel timing
127 - $ref: /schemas/types.yaml#/definitions/uint32
130 description: typical number of lines
131 - $ref: /schemas/types.yaml#/definitions/uint32-array
135 description: min, typ, max number of lines
138 description: Vertical sync length panel timing
140 - $ref: /schemas/types.yaml#/definitions/uint32
143 description: typical number of lines
144 - $ref: /schemas/types.yaml#/definitions/uint32-array
148 description: min, typ, max number of lines
152 Horizontal sync pulse.
153 0 selects active low, 1 selects active high.
154 If omitted then it is not used by the hardware
160 0 selects active low, 1 selects active high.
161 If omitted then it is not used by the hardware
167 0 selects active low, 1 selects active high.
168 If omitted then it is not used by the hardware
173 Data driving on rising or falling edge.
174 Use 0 to drive pixel data on falling edge and
175 sample data on rising edge.
176 Use 1 to drive pixel data on rising edge and
177 sample data on falling edge
182 Drive sync on rising or sample sync on falling edge.
183 If not specified then the setup is as specified by pixelclk-active.
184 Use 0 to drive sync on falling edge and
185 sample sync on rising edge of pixel clock.
186 Use 1 to drive sync on rising edge and
187 sample sync on falling edge of pixel clock
192 description: Enable interlaced mode
196 description: Enable double scan mode
200 description: Enable double clock mode
213 additionalProperties: false