Skip to content

Commit

Permalink
tests: drivers: build_all: display: add st7789v display
Browse files Browse the repository at this point in the history
Add st7789v display to the display build all test

Signed-off-by: Daniel DeGrasse <[email protected]>
  • Loading branch information
danieldegrasse committed Jun 4, 2024
1 parent b1d5457 commit 583ab4e
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion tests/drivers/build_all/display/app.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,34 @@
width = <160>;
height = <128>;
};

st7789v: st7789v@3 {
compatible = "sitronix,st7789v";
reg = <3>;
mipi-max-frequency = <25000000>;

width = <128>;
height = <128>;
/* Arbiratry values */
x-offset = <0>;
y-offset = <0>;
vcom = <0x28>;
gctrl = <0x35>;
vrhs = <0x10>;
vdvs = <0x20>;
mdac = <0x00>;
gamma = <0x01>;
colmod = <0x55>;
lcm = <0x0c>;
porch-param = [0c 0c 00 33 33];
cmd2en-param = [5a 69 02 00];
pwctrl1-param = [a4 a1];
pvgam-param = [d0 00 02 07 0a 28 32 44 42 06 0e 12 14 17];
nvgam-param = [d0 00 02 07 0a 28 31 54 47 0e 1c 17 1b 1e];
ram-param = [00 E0];
rgb-param = [40 02 14];
mipi-mode = <MIPI_DBI_MODE_SPI_4WIRE>;
};
};


Expand All @@ -82,7 +110,8 @@
clock-frequency = <2000000>;

/* one entry for every devices at spi.dtsi */
cs-gpios = <&test_gpio 0 0 &test_gpio 0 1 &test_gpio 0 2>;
cs-gpios = <&test_gpio 0 0 &test_gpio 0 1 &test_gpio 0 2
&test_gpio 0 3>;

test_spi_gc9x01x: gc9x01x@1 {
compatible = "galaxycore,gc9x01x";
Expand Down

0 comments on commit 583ab4e

Please sign in to comment.