From: Sam Ravnborg <sam@ravnborg.org>
To: Noralf T <noralf@tronnes.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org
Cc: Sam Ravnborg <sam@ravnborg.org>
Subject: [PATCH v1 1/5] dt-bindings: add parallel data bus (pardata)
Date: Thu, 2 Aug 2018 21:45:32 +0200 [thread overview]
Message-ID: <20180802194536.10820-1-sam@ravnborg.org> (raw)
In-Reply-To: <20180802193909.GA11443@ravnborg.org>
The parallel data bus is a simple parallel bus
that may be used to drive displays.
It is mostly used in simple embedded systems
but is also used in some desings utilising Linux.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
.../bindings/pardata/parallel-data-bus.txt | 60 ++++++++++++++++++++++
1 file changed, 60 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pardata/parallel-data-bus.txt
diff --git a/Documentation/devicetree/bindings/pardata/parallel-data-bus.txt b/Documentation/devicetree/bindings/pardata/parallel-data-bus.txt
new file mode 100644
index 000000000000..fa33b5bb8302
--- /dev/null
+++ b/Documentation/devicetree/bindings/pardata/parallel-data-bus.txt
@@ -0,0 +1,60 @@
+DT binding for parallel data bus
+
+Required properties:
+- compatible: "parallel-data-bus"
+- data-gpios: array of 8 GPIO specifiers, referring to the GPIO pins
+ connected to the data signal lines DB0-DB7
+ (8-bit mode) of the LCD Controller's bus interface,
+- enable-gpios: GPIO specifier, referring to the GPIO pin connected to
+ the "E" (Enable) signal line of the controller's bus interface,
+- rs-gpios: GPIO specifier, referring to the GPIO pin
+ connected to the "RS" (Register Select) controller's bus interface,
+
+Required properties for 8080 interface:
+- readwrite-gpios: For chips with 8080 interface list the GPIO
+ pin connected to the controllers read/write pin
+
+Required properties for 6800 interface:
+- read-gpios: For chips with 6800 interface list the GPIO
+ pin connected to the controllers read pin
+- write-gpios: For chips with 6800 interface list the GPIO
+ pin connected to the controllers write pin
+
+Required property for child node(s):
+- reg: numeric identifier for the display
+
+Example:
+
+ backlight: backlight {
+ compatible = "gpio-backlight";
+ }
+
+ power: regulator@0 {
+ }
+
+ pardatabus {
+ compatible = "parallel-data-bus";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_pardata>;
+ data-gpios = <&pioe 0 GPIO_ACTIVE_HIGH
+ &pioe 1 GPIO_ACTIVE_HIGH
+ &pioe 2 GPIO_ACTIVE_HIGH
+ &pioe 3 GPIO_ACTIVE_HIGH
+ &pioe 4 GPIO_ACTIVE_HIGH
+ &pioe 5 GPIO_ACTIVE_HIGH
+ &pioe 6 GPIO_ACTIVE_HIGH
+ &pioe 7 GPIO_ACTIVE_HIGH>;
+ enable-gpios = <&pioe 8 GPIO_ACTIVE_HIGH>;
+ rs-gpios = <&pioe 12 GPIO_ACTIVE_HIGH>;
+ readdwrite-gpios = <&pioe 11 GPIO_ACTIVE_HIGH>;
+
+ wg160160@0 {
+ compatible = "winstar,wg160160";
+ reg = <1>;
+ reset-gpios = <&pioe 13 GPIO_ACTIVE_LOW>;
+ chipselect-gpios = <&pioe 9 GPIO_ACTIVE_LOW>;
+ backlight = &backlight;
+ power = &power;
+ }
+ }
+
--
2.12.0
next prev parent reply other threads:[~2018-08-02 19:45 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-02 19:39 [RFC PATCH v1 0/5] Add pardata bus + tinydrm driver Sam Ravnborg
2018-08-02 19:45 ` Sam Ravnborg [this message]
2018-08-02 19:45 ` [PATCH v1 2/5] pardata: new bus for parallel data access Sam Ravnborg
2018-08-07 16:40 ` Noralf Trønnes
2018-08-08 8:24 ` Sam Ravnborg
2018-08-08 16:22 ` Noralf Trønnes
2020-01-20 10:10 ` Geert Uytterhoeven
2020-01-20 18:48 ` Sam Ravnborg
2020-01-20 19:12 ` Geert Uytterhoeven
2020-01-20 19:23 ` Sam Ravnborg
2018-08-02 19:45 ` [PATCH v1 3/5] tinydrm: add support for parallel data displays Sam Ravnborg
2018-08-02 19:45 ` [PATCH v1 4/5] dt-bindings: add winstar,wg160160 display bindings Sam Ravnborg
2018-08-02 19:45 ` [PATCH v1 5/5] tinydrm: add winstar wg160160 driver Sam Ravnborg
2018-08-06 9:15 ` Dan Carpenter
2018-08-06 12:07 ` Sam Ravnborg
2018-08-07 17:35 ` Noralf Trønnes
2018-08-08 8:32 ` Sam Ravnborg
2018-08-08 16:31 ` Noralf Trønnes
2018-08-02 19:46 ` [RFC PATCH v1 0/5] Add pardata bus + tinydrm driver Miguel Ojeda
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=20180802194536.10820-1-sam@ravnborg.org \
--to=sam@ravnborg.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=noralf@tronnes.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
Powered by JetHome