drm/panel: Change dlen from u16 to u8
[firefly-linux-kernel-4.4.55.git] / Documentation / devicetree / bindings / display / panel / simple-panel.txt
1 Simple display panel
2
3 Required properties:
4 - power-supply: regulator to provide the supply voltage
5
6 Optional properties:
7 - compatible: value maybe one of the following
8                 "simple-panel";
9                 "simple-panel-dsi";
10
11 - ddc-i2c-bus: phandle of an I2C controller used for DDC EDID probing
12 - enable-gpios: GPIO pin to enable or disable the panel
13 - backlight: phandle of the backlight device attached to the panel
14
15 Required properties when compatible is "simple-panel" or "simple-panel-dsi":
16 - display-timings: see display-timing.txt for information
17
18 Optional properties when compatible is a dsi devices:
19 - dsi,flags: dsi operation mode related flags
20 - dsi,format: pixel format for video mode
21 - dsi,lanes: number of active data lanes
22 - reset-gpios: GPIO pin to reset the panel
23 - reset-delay-ms: reset pulse width
24 - panel-init-sequence: A byte stream formed by simple multiple dcs packets.
25         byte 0: dcs data type
26         byte 1: wait number of specified ms after dcs command transmitted
27         byte 2: packet payload length
28         byte 3 and beyond: number byte of payload
29 - panel-exit-sequence: A byte stream formed by simple multiple dcs packets.
30         byte 0: dcs data type
31         byte 1: wait number of specified ms after dcs command transmitted
32         byte 2: packet payload length
33         byte 3 and beyond: number byte of payload
34
35 Example:
36
37         panel: panel {
38                 compatible = "cptt,claa101wb01";
39                 ddc-i2c-bus = <&panelddc>;
40
41                 power-supply = <&vdd_pnl_reg>;
42                 enable-gpios = <&gpio 90 0>;
43
44                 backlight = <&backlight>;
45         };
46
47 Or:
48         panel: panel {
49                 compatible = "simple-panel-dsi";
50                 ddc-i2c-bus = <&panelddc>;
51
52                 power-supply = <&vdd_pnl_reg>;
53                 enable-gpios = <&gpio 90 0>;
54
55                 reset-gpios = <&gpio 91 0>;
56                 reset-delay-ms = <20>;
57
58                 backlight = <&backlight>;
59
60                 dsi,flags = <MIPI_DSI_MODE_VIDEO |
61                              MIPI_DSI_MODE_VIDEO_BURST |
62                              MIPI_DSI_MODE_VIDEO_SYNC_PULSE>;
63                 dsi,format = <MIPI_DSI_FMT_RGB888>;
64                 dsi,lanes = <4>;
65
66                 panel-init-sequence = [
67                         39 00 10 b1 6c 15 15 24 E4 11 f1 80 e4
68                                  d7 23 80 c0 d2 58
69                         ...
70                         05 78 01 11
71                         05 00 01 29
72                 ];
73
74                 panel-exit-sequence = [
75                         05 00 01 28
76                         05 78 01 10
77                 ];
78
79                 display-timings {
80                         native-mode = <&timing0>;
81                         timing0: timing0 {
82                                 clock-frequency = <160000000>;
83                                 hactive = <1200>;
84                                 vactive = <1920>;
85                                 hback-porch = <21>;
86                                 hfront-porch = <120>;
87                                 vback-porch = <18>;
88                                 vfront-porch = <21>;
89                                 hsync-len = <20>;
90                                 vsync-len = <3>;
91                                 hsync-active = <0>;
92                                 vsync-active = <0>;
93                                 de-active = <0>;
94                                 pixelclk-active = <0>;
95                         };
96                 };
97         };