Skip to content

Commit 7d0d845

Browse files
jfischer-nonashif
authored andcommitted
shields: st7789v_generic: add support for Waveshare 1.3inch display
Add support for Waveshare 1.3inch IPS LCD display. Signed-off-by: Johann Fischer <[email protected]>
1 parent 04db2dc commit 7d0d845

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

boards/shields/st7789v_generic/doc/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ Current supported displays
3939
| TL019FQV01 | st7789v_tl019fqv01 |
4040
| | |
4141
+----------------------+------------------------------+
42+
| Waveshare 240x240 | st7789v_waveshare_240x240 |
43+
| 1.3inch IPS LCD | |
44+
+----------------------+------------------------------+
4245

4346
Requirements
4447
************
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CONFIG_SPI=y
2+
CONFIG_DISPLAY=y
3+
CONFIG_ST7789V=y
4+
5+
CONFIG_ST7789V_RGB565=y
6+
CONFIG_LVGL_BITS_PER_PIXEL=16
7+
CONFIG_LVGL_HOR_RES=240
8+
CONFIG_LVGL_VER_RES=240
9+
10+
CONFIG_LVGL_DISPLAY_DEV_NAME="ST7789V"
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright (c) 2019 Jan Van Winkel <[email protected]>
3+
* Copyright (c) 2019 PHYTEC Messtechnik GmbH
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
&arduino_spi {
9+
status = "okay";
10+
cs-gpios = <&arduino_header 16 0>; /* D10 */
11+
12+
st7789v@0 {
13+
compatible = "sitronix,st7789v";
14+
label = "ST7789V";
15+
spi-max-frequency = <20000000>;
16+
reg = <0>;
17+
cmd-data-gpios = <&arduino_header 15 0>; /* D9 */
18+
reset-gpios = <&arduino_header 14 0>; /* D8 */
19+
width = <240>;
20+
height = <240>;
21+
x-offset = <0>;
22+
y-offset = <0>;
23+
vcom = <0x19>;
24+
gctrl = <0x35>;
25+
vrhs = <0x12>;
26+
vdvs = <0x20>;
27+
mdac = <0x00>;
28+
gamma = <0x01>;
29+
colmod = <0x05>;
30+
lcm = <0x2c>;
31+
porch-param = [0c 0c 00 33 33];
32+
cmd2en-param = [5a 69 02 01];
33+
pwctrl1-param = [a4 a1];
34+
pvgam-param = [D0 04 0D 11 13 2B 3F 54 4C 18 0D 0B 1F 23];
35+
nvgam-param = [D0 04 0C 11 13 2C 3F 44 51 2F 1F 1F 20 23];
36+
ram-param = [00 F0];
37+
rgb-param = [CD 08 14];
38+
};
39+
};

0 commit comments

Comments
 (0)