From: Mark Yao Date: Wed, 20 Jul 2016 03:18:50 +0000 (+0800) Subject: FROMLIST: dt-bindings: add simple-panel-dsi and simple-panel X-Git-Tag: firefly_0821_release~2109 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=44cbc36a826809f794f82d6296ca1a1f7947f418;p=firefly-linux-kernel-4.4.55.git FROMLIST: dt-bindings: add simple-panel-dsi and simple-panel Allow user add display timing on device tree with simple-panel-dsi or simple-panel. Cc: Thierry Reding Cc: Rob Herring Cc: Mark Rutland Change-Id: I95cdd8634ccd7dc2861a1ed93bcc625f0552c3a3 Signed-off-by: Mark Yao (am from https://patchwork.kernel.org/patch/9238725) --- diff --git a/Documentation/devicetree/bindings/display/panel/simple-panel.txt b/Documentation/devicetree/bindings/display/panel/simple-panel.txt index 1341bbf4aa3d..bc6697061643 100644 --- a/Documentation/devicetree/bindings/display/panel/simple-panel.txt +++ b/Documentation/devicetree/bindings/display/panel/simple-panel.txt @@ -4,10 +4,22 @@ Required 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 +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 { @@ -19,3 +31,39 @@ Example: 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 = ; + dsi,format = ; + 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>; + }; + }; + };