Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1446919 > unrolled thread
| Started by | Mark Yao <mark.yao@rock-chips.com> |
|---|---|
| First post | 2016-07-20 05:20 +0200 |
| Last post | 2016-07-25 17:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 2/2] dt-bindings: add simple-panel-dsi and simple-panel Mark Yao <mark.yao@rock-chips.com> - 2016-07-20 05:20 +0200
Re: [PATCH 2/2] dt-bindings: add simple-panel-dsi and simple-panel Thierry Reding <thierry.reding@gmail.com> - 2016-07-25 17:30 +0200
| From | Mark Yao <mark.yao@rock-chips.com> |
|---|---|
| Date | 2016-07-20 05:20 +0200 |
| Subject | [PATCH 2/2] dt-bindings: add simple-panel-dsi and simple-panel |
| Message-ID | <rWQdb-4mO-5@gated-at.bofh.it> |
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>
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
---
.../bindings/display/panel/simple-panel.txt | 48 ++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/Documentation/devicetree/bindings/display/panel/simple-panel.txt b/Documentation/devicetree/bindings/display/panel/simple-panel.txt
index 1341bbf..bc66970 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 = <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>;
+ };
+ };
+ };
--
1.9.1
[toc] | [next] | [standalone]
| From | Thierry Reding <thierry.reding@gmail.com> |
|---|---|
| Date | 2016-07-25 17:30 +0200 |
| Message-ID | <rYPZo-6e9-19@gated-at.bofh.it> |
| In reply to | #1446919 |
[Multipart message — attachments visible in raw view] — view raw
On Wed, Jul 20, 2016 at 11:18:50AM +0800, Mark Yao wrote: > 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> > > Signed-off-by: Mark Yao <mark.yao@rock-chips.com> > --- > .../bindings/display/panel/simple-panel.txt | 48 ++++++++++++++++++++++ > 1 file changed, 48 insertions(+) Sorry, not going to happen. Read this for an explanation of why not: https://sietch-tagr.blogspot.de/2016/04/display-panels-are-not-special.html Thierry
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web