[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2a7c51b6e619c02ec175a5c219b0a0fd7a24499d.1701267411.git.mehdi.djait@bootlin.com>
Date: Wed, 29 Nov 2023 15:29:09 +0100
From: Mehdi Djait <mehdi.djait@...tlin.com>
To: mripard@...nel.org, maarten.lankhorst@...ux.intel.com,
tzimmermann@...e.de, airlied@...il.com, daniel@...ll.ch,
krzysztof.kozlowski+dt@...aro.org, robh+dt@...nel.org,
conor+dt@...nel.org
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
thomas.petazzoni@...tlin.com, alexandre.belloni@...tlin.com,
luca.ceresoli@...tlin.com, paul.kocialkowski@...tlin.com,
dri-devel@...ts.freedesktop.org, geert@...ux-m68k.org,
Mehdi Djait <mehdi.djait@...tlin.com>
Subject: [PATCH 1/2] dt-bindings: display: Add Sharp LS027B7DH01 Memory LCD
Add device tree bindings for the Sharp LS027B7DH01: a 2.7" 400x240
monochrome display connected over SPI.
Signed-off-by: Mehdi Djait <mehdi.djait@...tlin.com>
---
.../bindings/display/sharp,ls027b7dh01.yaml | 71 +++++++++++++++++++
1 file changed, 71 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/sharp,ls027b7dh01.yaml
diff --git a/Documentation/devicetree/bindings/display/sharp,ls027b7dh01.yaml b/Documentation/devicetree/bindings/display/sharp,ls027b7dh01.yaml
new file mode 100644
index 000000000000..d0a4efae2827
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/sharp,ls027b7dh01.yaml
@@ -0,0 +1,71 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/sharp,ls027b7dh01.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sharp LS027B7DH01 Memory LCD Display
+
+maintainers:
+ - Mehdi Djait <mehdi.djait@...tlin.com>
+
+description:
+ The Sharp LS027B7DH01 is a 2.7" 400x240 monochrome display connected over a
+ SPI bus. The display requires an alternating signal to prevent the buildup of
+ a DC bias that will stop any update. Two modes can be used for the generation
+ of this signal Software by writing to the display or Hardware by supplying the
+ External COM inversion signal.
+
+allOf:
+ - $ref: panel/panel-common.yaml#
+ - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+properties:
+ compatible:
+ const: sharp,ls027b7dh01
+
+ reg:
+ maxItems: 1
+
+ spi-cs-high: true
+
+ spi-lsb-first: true
+
+ spi-max-frequency:
+ maximum: 2000000
+
+ enable-gpios:
+ maxItems: 1
+
+ pwms:
+ maxItems: 1
+ description: External COM inversion signal
+
+required:
+ - compatible
+ - reg
+ - spi-lsb-first
+ - enable-gpios
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ display@0{
+ compatible = "sharp,ls027b7dh01";
+ reg = <0>;
+ spi-cs-high;
+ spi-lsb-first;
+ spi-max-frequency = <2000000>;
+ enable-gpios = <&gpiof 3 GPIO_ACTIVE_HIGH>;
+ pwms = <&pwm 1 1000000000 0>;
+ };
+ };
+
+...
--
2.41.0
Powered by blists - more mailing lists