0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/panel/display-timings.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: display timings bindings
0008
0009 maintainers:
0010 - Thierry Reding <thierry.reding@gmail.com>
0011 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
0012 - Sam Ravnborg <sam@ravnborg.org>
0013
0014 description: |
0015 A display panel may be able to handle several display timings,
0016 with different resolutions.
0017 The display-timings node makes it possible to specify the timings
0018 and to specify the timing that is native for the display.
0019
0020 properties:
0021 $nodename:
0022 const: display-timings
0023
0024 native-mode:
0025 $ref: /schemas/types.yaml#/definitions/phandle
0026 description: |
0027 The default display timing is the one specified as native-mode.
0028 If no native-mode is specified then the first node is assumed
0029 to be the native mode.
0030
0031 patternProperties:
0032 "^timing":
0033 type: object
0034 $ref: panel-timing.yaml#
0035
0036 additionalProperties: false
0037
0038 examples:
0039 - |+
0040
0041 /*
0042 * Example that specifies panel timing using minimum, typical,
0043 * maximum values as commonly used in datasheet description.
0044 * timing1 is the native-mode.
0045 */
0046 display-timings {
0047 native-mode = <&timing1>;
0048 timing0 {
0049 /* 1920x1080p24 */
0050 clock-frequency = <148500000>;
0051 hactive = <1920>;
0052 vactive = <1080>;
0053 hsync-len = <0 44 60>;
0054 hfront-porch = <80 88 95>;
0055 hback-porch = <100 148 160>;
0056 vfront-porch = <0 4 6>;
0057 vback-porch = <0 36 50>;
0058 vsync-len = <0 5 6>;
0059 };
0060 timing1 {
0061 /* 1920x1080p24 */
0062 clock-frequency = <52000000>;
0063 hactive = <1920>;
0064 vactive = <1080>;
0065 hfront-porch = <25>;
0066 hback-porch = <25>;
0067 hsync-len = <0 25 25>;
0068 vback-porch = <2>;
0069 vfront-porch = <2>;
0070 vsync-len = <2>;
0071 hsync-active = <1>;
0072 pixelclk-active = <1>;
0073 };
0074 };
0075
0076 ...