panel timing
Schema identifier ($id): "http://devicetree.org/schemas/display/panel/panel-timing.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Sam Ravnborg <sam@ravnborg.org>"
There are different ways of describing the timing data of a panel. The devicetree representation corresponds to the one commonly found in datasheets for panels.
The parameters are defined as seen in the following illustration.
+-------+----------+-------------------------------------+----------+ | | | ^ | | | | | |vsync_len | | | | | v | | +-------+----------+-------------------------------------+----------+ | | | ^ | | | | | |vback_porch | | | | | v | | +-------+----------#######################################----------+ | | # ^ # | | | # | # | | hsync | hback # | # hfront | | len | porch # | hactive # porch | |<----->|<-------->#<-------+--------------------------->#<-------->| | | # | # | | | # |vactive # | | | # | # | | | # v # | +-------+----------#######################################----------+ | | | ^ | | | | | |vfront_porch | | | | | v | | +-------+----------+-------------------------------------+----------+
The following is the panel timings shown with time on the x-axis. This matches the timing diagrams often found in data sheets.
Active Front Sync Back
Region Porch Porch
<-----------------------><----------------><-------------><-------------->
//////////////////////|
////////////////////// |
////////////////////// |.................. ................
_______________
Timing can be specified either as a typical value or as a tuple of min, typ, max values.
Properties and child nodes (properties) #
clock-frequency — required here #
Panel clock in Hz
hactive — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Horizontal panel resolution in pixels
vactive — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Vertical panel resolution in pixels
hfront-porch — required here #
Horizontal front porch panel timing
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Exactly one of these rules must match (oneOf) #
Rule 1
Maximum number of items (
maxItems):1Array item rules (
items)typical number of pixels
Rule 2
Minimum number of items (
minItems):3Maximum number of items (
maxItems):3Array item rules (
items)min, typ, max number of pixels
hback-porch — required here #
Horizontal back porch timing
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Exactly one of these rules must match (oneOf) #
Rule 1
Maximum number of items (
maxItems):1Array item rules (
items)typical number of pixels
Rule 2
Minimum number of items (
minItems):3Maximum number of items (
maxItems):3Array item rules (
items)min, typ, max number of pixels
hsync-len — required here #
Horizontal sync length panel timing
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Exactly one of these rules must match (oneOf) #
Rule 1
Maximum number of items (
maxItems):1Array item rules (
items)typical number of pixels
Rule 2
Minimum number of items (
minItems):3Maximum number of items (
maxItems):3Array item rules (
items)min, typ, max number of pixels
vfront-porch — required here #
Vertical front porch panel timing
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Exactly one of these rules must match (oneOf) #
Rule 1
Maximum number of items (
maxItems):1Array item rules (
items)typical number of lines
Rule 2
Minimum number of items (
minItems):3Maximum number of items (
maxItems):3Array item rules (
items)min, typ, max number of lines
vback-porch — required here #
Vertical back porch panel timing
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Exactly one of these rules must match (oneOf) #
Rule 1
Maximum number of items (
maxItems):1Array item rules (
items)typical number of lines
Rule 2
Minimum number of items (
minItems):3Maximum number of items (
maxItems):3Array item rules (
items)min, typ, max number of lines
vsync-len — required here #
Vertical sync length panel timing
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Exactly one of these rules must match (oneOf) #
Rule 1
Maximum number of items (
maxItems):1Array item rules (
items)typical number of lines
Rule 2
Minimum number of items (
minItems):3Maximum number of items (
maxItems):3Array item rules (
items)min, typ, max number of lines
hsync-active — not listed as required here #
Horizontal sync pulse. 0 selects active low, 1 selects active high. If omitted then it is not used by the hardware
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
vsync-active — not listed as required here #
Vertical sync pulse. 0 selects active low, 1 selects active high. If omitted then it is not used by the hardware
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
de-active — not listed as required here #
Data enable. 0 selects active low, 1 selects active high. If omitted then it is not used by the hardware
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
pixelclk-active — not listed as required here #
Data driving on rising or falling edge. Use 0 to drive pixel data on falling edge and sample data on rising edge. Use 1 to drive pixel data on rising edge and sample data on falling edge
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
syncclk-active — not listed as required here #
Drive sync on rising or sample sync on falling edge. If not specified then the setup is as specified by pixelclk-active. Use 0 to drive sync on falling edge and sample sync on rising edge of pixel clock. Use 1 to drive sync on rising edge and sample sync on falling edge of pixel clock
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
interlaced — not listed as required here #
Value type (type): "boolean"
Enable interlaced mode
doublescan — not listed as required here #
Value type (type): "boolean"
Enable double scan mode
doubleclk — not listed as required here #
Value type (type): "boolean"
Enable double clock mode
Required in this object (required): "clock-frequency", "hactive", "vactive", "hfront-porch", "hback-porch", "hsync-len", "vfront-porch", "vback-porch", "vsync-len"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)