From: Icenowy Zheng <icenowy@sipeed.com>
To: David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
Rob Herring <robh+dt@kernel.org>
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, Icenowy Zheng <icenowy@sipeed.com>
Subject: [PATCH 2/4] dt-bindings: display: add binding for simple-dbi panels
Date: Mon, 2 Aug 2021 14:35:36 +0800 [thread overview]
Message-ID: <20210802063538.75583-3-icenowy@sipeed.com> (raw)
In-Reply-To: <20210802063538.75583-1-icenowy@sipeed.com>
As we're going to introduce a driver for MIPI DBI panels that need only
standard MIPI-DCS commands to initialize (usually because the controller
has some configuration pre-programmed), add a DT binding file for it,
which now includes only one DBI Type C Option 3 panel, ZSX154-B1206.
Signed-off-by: Icenowy Zheng <icenowy@sipeed.com>
---
.../bindings/display/simple-dbi.yaml | 72 +++++++++++++++++++
1 file changed, 72 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/simple-dbi.yaml
diff --git a/Documentation/devicetree/bindings/display/simple-dbi.yaml b/Documentation/devicetree/bindings/display/simple-dbi.yaml
new file mode 100644
index 000000000000..f49b0fda0935
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/simple-dbi.yaml
@@ -0,0 +1,72 @@
+# SPDX-License-Identifier: GPL-2.0-only
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/simple-dbi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Generic MIPI DCS-compatible DBI panels Device Tree Bindings
+
+maintainers:
+ - Icenowy Zheng <icenowy@sipeed.com>
+
+description:
+ This binding is for display panels that utilizes MIPI DBI Type C, follows
+ MIPI DCS and needs no vendor-specific initialization commands.
+
+properties:
+ compatible:
+ oneOf:
+ - description:
+ Zhishengxin ZSX154-B1206 1.54" 240x240 SPI LCD
+ items:
+ - const: zsx,zsx154-b1206
+
+ spi-max-frequency:
+ maximum: 30000000
+
+ dc-gpios:
+ maxItems: 1
+ description: Display data/command selection (D/CX)
+
+ backlight: true
+ reg: true
+ reset-gpios: true
+ rotation: true
+
+required:
+ - compatible
+ - reg
+
+allOf:
+ - $ref: panel/panel-common.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: zsx,zsx154-b1206
+
+ then:
+ required:
+ - dc-gpios
+ - reset-gpios
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ display@0 {
+ compatible = "zsx,zsx154-b1206";
+ reg = <0>;
+ spi-max-frequency = <30000000>;
+ dc-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>;
+ reset-gpios = <&r_pio 2 21 GPIO_ACTIVE_HIGH>;
+ };
+ };
+
+...
--
2.30.2
next prev parent reply other threads:[~2021-08-02 6:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-02 6:35 [PATCH 0/4] Add simple-dbi tinydrm driver Icenowy Zheng
2021-08-02 6:35 ` [PATCH 1/4] dt-bindings: vendor-prefixes: add Zhishengxin Icenowy Zheng
2021-08-06 21:44 ` Rob Herring
2021-08-02 6:35 ` Icenowy Zheng [this message]
2021-08-06 21:46 ` [PATCH 2/4] dt-bindings: display: add binding for simple-dbi panels Rob Herring
2021-08-02 6:35 ` [PATCH 3/4] drm/tiny: add simple-dbi driver Icenowy Zheng
2021-08-02 9:02 ` kernel test robot
2021-08-02 15:08 ` Thomas Zimmermann
[not found] ` <f69afa7ac2984c5145f38c037a06668b9e08fe44.camel@sipeed.com>
2021-08-03 8:21 ` Thomas Zimmermann
2021-08-02 6:35 ` [PATCH 4/4] MAINTAINERS: " Icenowy Zheng
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=20210802063538.75583-3-icenowy@sipeed.com \
--to=icenowy@sipeed.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).