From: Kevin Tang <kevin3.tang@gmail.com>
To: airlied@linux.ie, daniel@ffwll.ch, kevin3.tang@gmail.com
Cc: orsonzhai@gmail.com, baolin.wang@linaro.org,
zhang.lyra@gmail.com, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org
Subject: [PATCH RFC 7/8] dt-bindings: display: add Unisoc's generic mipi panel bindings
Date: Tue, 10 Dec 2019 16:36:34 +0800 [thread overview]
Message-ID: <1575966995-13757-8-git-send-email-kevin3.tang@gmail.com> (raw)
In-Reply-To: <1575966995-13757-1-git-send-email-kevin3.tang@gmail.com>
From: Kevin Tang <kevin.tang@unisoc.com>
Adds generic MIPI panel support for Unisoc's display subsystem.
Cc: Orson Zhai <orsonzhai@gmail.com>
Cc: Baolin Wang <baolin.wang@linaro.org>
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Signed-off-by: Kevin Tang <kevin.tang@unisoc.com>
---
.../devicetree/bindings/display/sprd/panel.txt | 110 +++++++++++++++++++++
1 file changed, 110 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/sprd/panel.txt
diff --git a/Documentation/devicetree/bindings/display/sprd/panel.txt b/Documentation/devicetree/bindings/display/sprd/panel.txt
new file mode 100644
index 0000000..a4017af
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/sprd/panel.txt
@@ -0,0 +1,110 @@
+Unisoc Generic MIPI Panel
+================================================================
+
+Required properties:
+ - compatible: must be "sprd,generic-mipi-panel"
+ - reg: panel ID
+ - #address-cells, #size-cells: should be set respectively to <1> and <0>
+ - port: video port for DPI input
+ - sprd,dsi-work-mode: the following dsi mode can be select:
+ 0: cmd mode,
+ 1: video burst mode,
+ 2: video non-burst mode with sync pulse,
+ 3: video non-burst mode with sync event
+ - sprd,dsi-lane-number: number of dsi lanes to use, default is 4
+ - sprd,dsi-color-format: data format for video stream transmission, currently
+ supports "rgb888", "rgb666", "rgb666_packed", "rgb565" and "dsc", defaults rgb888
+ - sprd,phy-bit-clock: the transmission rate of the clock lane for High-Speed,
+ the unit is Kbps, and the default value is 500Mbps
+ - sprd,phy-escape-clock: the transmission rate of the clock lane for Low-Power,
+ the unit is Kbps, and the default value is 20Mbps
+
+
+Optional properties:
+ - width-mm: see [2] for details
+ - height-mm: see [2] for details
+ - sprd,esd-check-enable: esd check function enable switch
+ - sprd,esd-check-mode: esd detection method, default is register
+ 0: register,
+ 1: TE signal
+ - sprd,esd-check-period: esd detection cycle, unit ms, default 1000ms
+ - sprd,esd-check-register: if register detection is used, this attribute must be configured
+ - sprd,esd-check-value: if register detection is used, this attribute must be configured
+ - sprd,reset-on-sequence: timing of the reset pin when the lcd power on
+ <1 5>, <0 5> means first keep high for 5ms, then keep low for 5ms
+ - sprd,reset-on-sequence: timing of the reset pin when the lcd power off
+ - sprd,use-dcs-write: bool attribute, indicating whether to use the dcs to send inital & sleep cmds,
+ default use generic
+ - sprd,initial-command: lcd initialization command set
+ - sprd,sleep-in-command: lcd suspend command set
+ - sprd,sleep-out-command: lcd resume command set
+ - display-timings: see [1] for details
+
+
+ [1] Documentation/devicetree/bindings/display/panel/display-timing.txt
+ [2] Documentation/devicetree/bindings/display/panel/panel-common.yaml
+
+Example
+-------
+
+Panel specific DT entry:
+
+ &dsi {
+ panel {
+ compatible = "sprd,generic-mipi-panel";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0>;
+
+ port {
+ reg = <1>;
+ panel_in: endpoint {
+ remote-endpoint = <&dphy_out>;
+ };
+ };
+ };
+ };
+
+ / { lcds {
+ lcd_mipi_hd: lcd_mipi_hd {
+ sprd,dsi-work-mode = <1>;
+ sprd,dsi-lane-number = <4>;
+ sprd,dsi-color-format = "rgb888";
+ sprd,phy-bit-clock = <1100000>;
+ sprd,phy-escape-clock = <20000>;
+ width-mm = <68>;
+ height-mm = <121>;
+ sprd,esd-check-enable = <0>;
+ sprd,esd-check-mode = <0>;
+ sprd,esd-check-period = <1000>;
+ sprd,esd-check-register = <0x0A>;
+ sprd,esd-check-value = <0x9C>;
+ sprd,reset-on-sequence = <1 5>, <0 5>, <1 20>;
+ sprd,reset-off-sequence = <0 5>;
+ sprd,use-dcs-write;
+ sprd,initial-command = [
+ 39 00 00 02 b0 00
+ 39 00 00 04 B3 31 00 06
+ ];
+ sprd,sleep-in-command = [
+ 13 0A 00 01 28
+ 13 78 00 01 10
+ ];
+ sprd,sleep-out-command = [
+ 13 78 00 01 11
+ 13 32 00 01 29
+ ];
+ display-timings {
+ timing0 {
+ clock-frequency = <64000000>;
+ hactive = <720>;
+ vactive = <1280>;
+ hback-porch = <31>;
+ hfront-porch = <31>;
+ vback-porch = <32>;
+ vfront-porch = <16>;
+ hsync-len = <20>;
+ vsync-len = <2>;
+ };
+ };
+ };
\ No newline at end of file
--
2.7.4
next prev parent reply other threads:[~2019-12-10 8:37 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-10 8:36 [PATCH RFC 0/8] Add Unisoc's drm kms module Kevin Tang
2019-12-10 8:36 ` [PATCH RFC 1/8] dt-bindings: display: add Unisoc's drm master bindings Kevin Tang
2019-12-13 9:42 ` Maxime Ripard
2019-12-10 8:36 ` [PATCH RFC 2/8] drm/sprd: add Unisoc's drm kms master Kevin Tang
2019-12-10 10:32 ` Thomas Zimmermann
[not found] ` <CAFPSGXb-pbmXFXrN7adK1TO+09T8qtJjwk+dK-TidZSsfPqHFg@mail.gmail.com>
2019-12-10 12:47 ` Thomas Zimmermann
2019-12-10 10:41 ` Daniel Vetter
2019-12-10 16:06 ` Emil Velikov
2019-12-10 22:01 ` Daniel Vetter
2019-12-10 8:36 ` [PATCH RFC 3/8] dt-bindings: display: add Unisoc's dpu bindings Kevin Tang
2019-12-13 9:44 ` Maxime Ripard
2019-12-10 8:36 ` [PATCH RFC 4/8] drm/sprd: add Unisoc's drm display controller driver Kevin Tang
2019-12-10 10:44 ` Thomas Zimmermann
2019-12-10 17:13 ` Emil Velikov
[not found] ` <CAFPSGXZMmfeBxkNhuNR59bX26_69_y5C13P7qY-UawVDa7Q3Jw@mail.gmail.com>
2019-12-11 11:46 ` Emil Velikov
2019-12-10 8:36 ` [PATCH RFC 5/8] dt-bindings: display: add Unisoc's mipi dsi&dphy bindings Kevin Tang
2019-12-13 9:46 ` Maxime Ripard
2019-12-10 8:36 ` [PATCH RFC 6/8] drm/sprd: add Unisoc's drm mipi dsi&dphy driver Kevin Tang
2019-12-10 8:36 ` Kevin Tang [this message]
2019-12-13 9:48 ` [PATCH RFC 7/8] dt-bindings: display: add Unisoc's generic mipi panel bindings Maxime Ripard
2019-12-10 8:36 ` [PATCH RFC 8/8] drm/sprd: add Unisoc's drm generic mipi panel driver Kevin Tang
2019-12-10 18:54 ` [PATCH RFC 0/8] Add Unisoc's drm kms module Sam Ravnborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1575966995-13757-8-git-send-email-kevin3.tang@gmail.com \
--to=kevin3.tang@gmail.com \
--cc=airlied@linux.ie \
--cc=baolin.wang@linaro.org \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=orsonzhai@gmail.com \
--cc=zhang.lyra@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®