From 97e8e2326f30baae6cdd3f180f8ab3d50e684865 Mon Sep 17 00:00:00 2001 From: Benjamin Geiger Date: Mon, 16 Dec 2024 12:05:35 +0100 Subject: [PATCH] dts: bindings: display: gc9x01x: Update example and documentation Update the GC9X01X display driver binding documentation with the current MIPI DBI SPI binding structure. The old example used direct SPI device binding which is now deprecated in favor of the MIPI DBI API. Signed-off-by: Benjamin Geiger --- dts/bindings/display/galaxycore,gc9x01x.yaml | 49 ++++++++++++-------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/dts/bindings/display/galaxycore,gc9x01x.yaml b/dts/bindings/display/galaxycore,gc9x01x.yaml index 7867de55a0dea8e..af9b7843e3b41a1 100644 --- a/dts/bindings/display/galaxycore,gc9x01x.yaml +++ b/dts/bindings/display/galaxycore,gc9x01x.yaml @@ -4,27 +4,36 @@ # SPDX-License-Identifier: Apache-2.0 description: | - GC9X01X display driver. - - This driver implements support for various GC9X01X graphics - controllers and different display sizes. It has been validated - for following controllers: - - GC9101A: (Waveshare 240x240, 1.28inch round lcd display 240x240) - - Here is an example to define a display interface: - - &spi2 { - gc9a01a_lcd: gc9a01a_lcd@0 { - compatible = "galaxycore,gc9x01x"; - reg = <0>; - spi-max-frequency = <100000000>; - cmd-data-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>; - reset-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - pixel-format = ; - width = <240>; - height = <240>; + GC9X01X display driver. + + This driver implements support for various GC9X01X graphics + controllers and different display sizes. It has been validated + for following controllers: + - GC9101A: (Waveshare 240x240, 1.28inch round lcd display 240x240) + + Here is an example to define a display interface: + + / { + my_mipi_dbi { + compatible = "zephyr,mipi-dbi-spi"; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + spi-dev = <&spi2>; + dc-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + + gc9x01x_lcd: gc9x01x_lcd@0 { + compatible = "galaxycore,gc9x01x"; + reg = <0>; + mipi-max-frequency = ; + pixel-format = ; + width = <240>; + height = <240>; + display-inversion; + }; + }; }; - }; compatible: "galaxycore,gc9x01x"