From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam Ravnborg Subject: [PATCH v1 4/5] dt-bindings: add winstar,wg160160 display bindings Date: Thu, 2 Aug 2018 21:45:35 +0200 Message-ID: <20180802194536.10820-4-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 winstar display uses the pardata binding. Signed-off-by: Sam Ravnborg --- .../bindings/display/winstar,wg160160.txt | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/winstar,wg160160.txt diff --git a/Documentation/devicetree/bindings/display/winstar,wg160160.txt b/Documentation/devicetree/bindings/display/winstar,wg160160.txt new file mode 100644 index 000000000000..893065d558c1 --- /dev/null +++ b/Documentation/devicetree/bindings/display/winstar,wg160160.txt @@ -0,0 +1,53 @@ +DT binding for Winstar WG160160 + +This binding is for the Winstar WG160160 display using a RA8822 controller + +Required properties: +- compatible: "winstar,wg160160" +- reg: numeric identifier for the display + +The node for this driver must be a child node of a parallel-data-bus, hence +all mandatory properties described in ../pardata/parallel-data-bus.txt +must be specified. + +Optional properties: +- chipselect-gpios: GPIO used for chipselect of the display +- reset-gpios: GPIO that can be used to do a hardware reset of the display +- backlight: phandle of the backlight device attached to the panel +- regulator: phandle of the regulator that provides the supply voltage + +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