-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Timon Skerutsch <[email protected]>
- Loading branch information
Showing
1 changed file
with
111 additions
and
0 deletions.
There are no files selected for viewing
111 changes: 111 additions & 0 deletions
111
Documentation/devicetree/bindings/display/panel/panel-dsi.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/display/panel/panel-dsi.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Generic MIPI DSI Panel | ||
|
||
maintainers: | ||
- Timon Skerutsch <[email protected]> | ||
|
||
allOf: | ||
- $ref: panel-common.yaml# | ||
|
||
properties: | ||
compatible: | ||
description: | ||
Shall contain a panel specific compatible and "panel-dsi" | ||
in that order. | ||
items: | ||
- {} | ||
- const: panel-dsi | ||
|
||
dsi-color-format: | ||
description: | | ||
The color format used by the panel. Only DSI supported formats are allowed. | ||
enum: | ||
- RGB888 | ||
- RGB666 | ||
- RGB666_PACKED | ||
- RGB565 | ||
|
||
lanes: | ||
description: | | ||
The number of lanes used by the panel. | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
enum: [1, 2, 3, 4] | ||
|
||
mode: | ||
description: | | ||
DSI mode flags. See DSI Specs for details. | ||
These are driver independent features of the DSI bus. | ||
items: | ||
- const: MODE_VIDEO | ||
- const: MODE_VIDEO_BURST | ||
- const: MODE_VIDEO_SYNC_PULSE | ||
- const: MODE_VIDEO_AUTO_VERT | ||
- const: MODE_VIDEO_HSE | ||
- const: MODE_VIDEO_NO_HFP | ||
- const: MODE_VIDEO_NO_HBP | ||
- const: MODE_VIDEO_NO_HSA | ||
- const: MODE_VSYNC_FLUSH | ||
- const: MODE_NO_EOT_PACKET | ||
- const: CLOCK_NON_CONTINUOUS | ||
- const: MODE_LPM | ||
- const: HS_PKT_END_ALIGNED | ||
|
||
backlight: true | ||
enable-gpios: true | ||
width-mm: true | ||
height-mm: true | ||
label: true | ||
panel-timing: true | ||
port: true | ||
power-supply: true | ||
reset-gpios: true | ||
ddc-i2c-bus: true | ||
|
||
required: | ||
- panel-timing | ||
- power-supply | ||
- dsi-color-format | ||
- lanes | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
panel { | ||
compatible = "panel-mfgr,generic-dsi-panel","panel-dsi"; | ||
label = "Simple DSI Panel"; | ||
power-supply = <&vcc_supply>; | ||
backlight = <&backlight>; | ||
dsi-color-format = "RGB888"; | ||
lanes = <1>; | ||
mode = "MODE_VIDEO", "MODE_VIDEO_BURST", "MODE_NO_EOT_PACKET"; | ||
port { | ||
panel_dsi_port: endpoint { | ||
remote-endpoint = <&dsi_out>; | ||
}; | ||
}; | ||
panel-timing { | ||
clock-frequency = <9200000>; | ||
hactive = <800>; | ||
vactive = <480>; | ||
hfront-porch = <8>; | ||
hback-porch = <4>; | ||
hsync-len = <41>; | ||
vback-porch = <2>; | ||
vfront-porch = <4>; | ||
vsync-len = <10>; | ||
hsync-active = <0>; | ||
vsync-active = <0>; | ||
de-active = <1>; | ||
pixelclk-active = <1>; | ||
}; | ||
}; | ||
... |