FROMLIST: dt-bindings: add simple-panel-dsi and simple-panel
authorMark Yao <mark.yao@rock-chips.com>
Wed, 20 Jul 2016 03:18:50 +0000 (11:18 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 21 Jul 2016 06:24:24 +0000 (14:24 +0800)
Allow user add display timing on device tree with simple-panel-dsi
or simple-panel.

Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Change-Id: I95cdd8634ccd7dc2861a1ed93bcc625f0552c3a3
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
(am from https://patchwork.kernel.org/patch/9238725)

Documentation/devicetree/bindings/display/panel/simple-panel.txt

index 1341bbf4aa3d13147de6465d5219989338b9d3b7..bc6697061643bef477fd69a9e0d94c12182b02c6 100644 (file)
@@ -4,10 +4,22 @@ Required properties:
 - power-supply: regulator to provide the supply voltage
 
 Optional properties:
 - power-supply: regulator to provide the supply voltage
 
 Optional properties:
+- compatible: value maybe one of the following
+               "simple-panel";
+               "simple-panel-dsi";
+
 - ddc-i2c-bus: phandle of an I2C controller used for DDC EDID probing
 - enable-gpios: GPIO pin to enable or disable the panel
 - backlight: phandle of the backlight device attached to the panel
 
 - ddc-i2c-bus: phandle of an I2C controller used for DDC EDID probing
 - enable-gpios: GPIO pin to enable or disable the panel
 - backlight: phandle of the backlight device attached to the panel
 
+Required properties when compatible is "simple-panel" or "simple-panel-dsi":
+- display-timings: see display-timing.txt for information
+
+Optional properties when compatible is a dsi devices:
+- dsi,flags: dsi operation mode related flags
+- dsi,format: pixel format for video mode
+- dsi,lanes: number of active data lanes
+
 Example:
 
        panel: panel {
 Example:
 
        panel: panel {
@@ -19,3 +31,39 @@ Example:
 
                backlight = <&backlight>;
        };
 
                backlight = <&backlight>;
        };
+
+Or:
+       panel: panel {
+               compatible = "simple-panel-dsi";
+               ddc-i2c-bus = <&panelddc>;
+
+               power-supply = <&vdd_pnl_reg>;
+               enable-gpios = <&gpio 90 0>;
+
+               backlight = <&backlight>;
+
+               dsi,flags = <MIPI_DSI_MODE_VIDEO |
+                            MIPI_DSI_MODE_VIDEO_BURST |
+                            MIPI_DSI_MODE_VIDEO_SYNC_PULSE>;
+               dsi,format = <MIPI_DSI_FMT_RGB888>;
+               dsi,lanes = <4>;
+
+               display-timings {
+                       native-mode = <&timing0>;
+                       timing0: timing0 {
+                               clock-frequency = <160000000>;
+                               hactive = <1200>;
+                               vactive = <1920>;
+                               hback-porch = <21>;
+                               hfront-porch = <120>;
+                               vback-porch = <18>;
+                               vfront-porch = <21>;
+                               hsync-len = <20>;
+                               vsync-len = <3>;
+                               hsync-active = <0>;
+                               vsync-active = <0>;
+                               de-active = <0>;
+                               pixelclk-active = <0>;
+                       };
+               };
+       };