Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux...
[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
23 Example:
24
25         panel: panel {
26                 compatible = "cptt,claa101wb01";
27                 ddc-i2c-bus = <&panelddc>;
28
29                 power-supply = <&vdd_pnl_reg>;
30                 enable-gpios = <&gpio 90 0>;
31
32                 backlight = <&backlight>;
33         };
34
35 Or:
36         panel: panel {
37                 compatible = "simple-panel-dsi";
38                 ddc-i2c-bus = <&panelddc>;
39
40                 power-supply = <&vdd_pnl_reg>;
41                 enable-gpios = <&gpio 90 0>;
42
43                 backlight = <&backlight>;
44
45                 dsi,flags = <MIPI_DSI_MODE_VIDEO |
46                              MIPI_DSI_MODE_VIDEO_BURST |
47                              MIPI_DSI_MODE_VIDEO_SYNC_PULSE>;
48                 dsi,format = <MIPI_DSI_FMT_RGB888>;
49                 dsi,lanes = <4>;
50
51                 display-timings {
52                         native-mode = <&timing0>;
53                         timing0: timing0 {
54                                 clock-frequency = <160000000>;
55                                 hactive = <1200>;
56                                 vactive = <1920>;
57                                 hback-porch = <21>;
58                                 hfront-porch = <120>;
59                                 vback-porch = <18>;
60                                 vfront-porch = <21>;
61                                 hsync-len = <20>;
62                                 vsync-len = <3>;
63                                 hsync-active = <0>;
64                                 vsync-active = <0>;
65                                 de-active = <0>;
66                                 pixelclk-active = <0>;
67                         };
68                 };
69         };