Skip to content

Commit 2221811

Browse files
Benni77kartben
authored andcommitted
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 <[email protected]>
1 parent b4b8070 commit 2221811

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

dts/bindings/display/galaxycore,gc9x01x.yaml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,26 @@ description: |
1313
1414
Here is an example to define a display interface:
1515
16-
&spi2 {
17-
gc9a01a_lcd: gc9a01a_lcd@0 {
18-
compatible = "galaxycore,gc9x01x";
19-
reg = <0>;
20-
spi-max-frequency = <100000000>;
21-
cmd-data-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
22-
reset-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
23-
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
24-
width = <240>;
25-
height = <240>;
26-
};
16+
/ {
17+
my_mipi_dbi {
18+
compatible = "zephyr,mipi-dbi-spi";
19+
status = "okay";
20+
#address-cells = <1>;
21+
#size-cells = <0>;
22+
spi-dev = <&spi2>;
23+
dc-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
24+
reset-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
25+
26+
gc9x01x_lcd: gc9x01x_lcd@0 {
27+
compatible = "galaxycore,gc9x01x";
28+
reg = <0>;
29+
mipi-max-frequency = <DT_FREQ_M(100)>;
30+
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
31+
width = <240>;
32+
height = <240>;
33+
display-inversion;
34+
};
35+
};
2736
};
2837
2938

0 commit comments

Comments
 (0)