[PATCH 1/2] dt-bindings: display: Add Sharp LS027B7DH01 Memory LCD

From: Mehdi Djait
Date: Wed Nov 29 2023 - 09:29:26 EST


Add device tree bindings for the Sharp LS027B7DH01: a 2.7" 400x240
monochrome display connected over SPI.

Signed-off-by: Mehdi Djait <mehdi.djait@xxxxxxxxxxx>
---
.../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@xxxxxxxxxxx>
+
+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