Skip to content

Commit

Permalink
dts: bindings: display: gc9x01x: Update example and documentation
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Benni77 committed Dec 16, 2024
1 parent 216391b commit 97e8e23
Showing 1 changed file with 29 additions and 20 deletions.
49 changes: 29 additions & 20 deletions dts/bindings/display/galaxycore,gc9x01x.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <PANEL_PIXEL_FORMAT_RGB_565>;
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 = <DT_FREQ_M(100)>;
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
width = <240>;
height = <240>;
display-inversion;
};
};
};
};
compatible: "galaxycore,gc9x01x"
Expand Down

0 comments on commit 97e8e23

Please sign in to comment.