[PATCH v1 4/5] dt-bindings: add winstar,wg160160 display bindings
Sam Ravnborg
sam at ravnborg.org
Thu Aug 2 19:45:35 UTC 2018
The winstar display uses the pardata binding.
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
---
.../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 at 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 at 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
More information about the dri-devel
mailing list