display timings

Schema identifier ($id): "http://devicetree.org/schemas/display/panel/display-timings.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>", "Sam Ravnborg <sam@ravnborg.org>"

A display panel may be able to handle several display timings, with different resolutions. The display-timings node makes it possible to specify the timings and to specify the timing that is native for the display.

Properties and child nodes (properties) #

$nodename — not listed as required here #

Exact value (const): "display-timings"

native-mode — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

The default display timing is the one specified as native-mode. If no native-mode is specified then the first node is assumed to be the native mode.

Properties matching a name pattern (patternProperties) #

^timing — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): panel-timing.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #


/*
 * Example that specifies panel timing using minimum, typical,
 * maximum values as commonly used in datasheet description.
 * timing1 is the native-mode.
 */
display-timings {
    native-mode = <&timing1>;
    timing0 {
        /* 1920x1080p24 */
        clock-frequency = <148500000>;
        hactive = <1920>;
        vactive = <1080>;
        hsync-len = <0 44 60>;
        hfront-porch = <80 88 95>;
        hback-porch = <100 148 160>;
        vfront-porch = <0 4 6>;
        vback-porch = <0 36 50>;
        vsync-len = <0 5 6>;
    };
    timing1 {
        /* 1920x1080p24 */
        clock-frequency = <52000000>;
        hactive = <1920>;
        vactive = <1080>;
        hfront-porch = <25>;
        hback-porch = <25>;
        hsync-len = <0 25 25>;
        vback-porch = <2>;
        vfront-porch = <2>;
        vsync-len = <2>;
        hsync-active = <1>;
        pixelclk-active = <1>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page