From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam Ravnborg Subject: [PATCH v1 1/5] dt-bindings: add parallel data bus (pardata) Date: Thu, 2 Aug 2018 21:45:32 +0200 Message-ID: <20180802194536.10820-1-sam@ravnborg.org> References: <20180802193909.GA11443@ravnborg.org> Return-path: In-Reply-To: <20180802193909.GA11443@ravnborg.org> Sender: linux-kernel-owner@vger.kernel.org To: Noralf T , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: Sam Ravnborg List-Id: dri-devel@lists.freedesktop.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 --- .../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