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 <s...@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

Reply via email to