Skip to content

Commit 1d9eb17

Browse files
committed
boards: shields: Add support for 2.7inch epaper display
Add support for gdew027w3 2.7inch epaper display. Signed-off-by: Dinesh Kumar K <[email protected]>
1 parent c707f1e commit 1d9eb17

File tree

5 files changed

+110
-2
lines changed

5 files changed

+110
-2
lines changed

boards/shields/waveshare_epaper/Kconfig.defconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# SPDX-License-Identifier: Apache-2.0
66
#
77

8-
if SHIELD_WAVESHARE_EPAPER_GDEH029A1 || SHIELD_WAVESHARE_EPAPER_GDEH0213B1 || SHIELD_WAVESHARE_EPAPER_GDEH0213B72 || SHIELD_WAVESHARE_EPAPER_GDEW075T7 || SHIELD_WAVESHARE_EPAPER_GDEH0154A07 || SHIELD_WAVESHARE_EPAPER_GDEW042T2 || SHIELD_WAVESHARE_EPAPER_GDEW042T2_P
8+
if SHIELD_WAVESHARE_EPAPER_GDEH029A1 || SHIELD_WAVESHARE_EPAPER_GDEH0213B1 || SHIELD_WAVESHARE_EPAPER_GDEH0213B72 || SHIELD_WAVESHARE_EPAPER_GDEW075T7 || SHIELD_WAVESHARE_EPAPER_GDEH0154A07 || SHIELD_WAVESHARE_EPAPER_GDEW042T2 || SHIELD_WAVESHARE_EPAPER_GDEW042T2_P || SHIELD_WAVESHARE_EPAPER_GDEW027W3
99

1010

1111
if DISPLAY
@@ -19,6 +19,7 @@ config LV_Z_VDB_SIZE
1919
config LV_Z_DPI
2020
default 188 if SHIELD_WAVESHARE_EPAPER_GDEH0154A07
2121
default 120 if SHIELD_WAVESHARE_EPAPER_GDEW042T2
22+
default 117 if SHIELD_WAVESHARE_EPAPER_GDEW027W3
2223
default 130
2324

2425
choice LV_COLOR_DEPTH
@@ -32,4 +33,4 @@ endif # LVGL
3233

3334
endif # DISPLAY
3435

35-
endif # SHIELD_WAVESHARE_EPAPER_GDEH02
36+
endif # SHIELD_WAVESHARE_EPAPER

boards/shields/waveshare_epaper/Kconfig.shield

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ config SHIELD_WAVESHARE_EPAPER_GDEW042T2
2121

2222
config SHIELD_WAVESHARE_EPAPER_GDEW042T2_P
2323
def_bool $(shields_list_contains,waveshare_epaper_gdew042t2-p)
24+
25+
config SHIELD_WAVESHARE_EPAPER_GDEW027W3
26+
def_bool $(shields_list_contains,waveshare_epaper_gdew027w3)

boards/shields/waveshare_epaper/doc/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ Current supported displays
6565
| Good Display | WFT0420CZ15 | UC8176 / | waveshare_epaper_gdew042t2 |
6666
| GDEW042T2 | | gd7965 | waveshare_epaper_gdew042t2-p |
6767
+--------------+-----------------+--------------+------------------------------+
68+
| Good Display | WFI0190CZ22 | EK79652 | waveshare_epaper_gdew027w3 |
69+
| GDEW027W3 | | | |
70+
+--------------+-----------------+--------------+------------------------------+
71+
6872

6973

7074
Requirements
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright (c) 2021 Linumiz
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include "waveshare_epaper_common.dtsi"
8+
9+
/ {
10+
chosen {
11+
zephyr,display = &ek79652;
12+
};
13+
};
14+
15+
&arduino_spi {
16+
ek79652: ek79652@0 {
17+
compatible = "gooddisplay,ek79652";
18+
label = "EK79652";
19+
spi-max-frequency = <4000000>;
20+
reg = <0>;
21+
width = <176>;
22+
height = <264>;
23+
dc-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
24+
reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
25+
busy-gpios = <&arduino_header 13 GPIO_ACTIVE_LOW>; /* D7 */
26+
pwr = [03 00 2b 2b];
27+
softstart = [07 07 17];
28+
cdi = <0x97>;
29+
pwropt = [60 A5 89 A5 90 00 93 2A A0 A5 A1 00];
30+
};
31+
};
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Copyright (c) 2021, Linumiz
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: EK79652 EPD display controller
5+
6+
compatible: "gooddisplay,ek79652"
7+
8+
include: spi-device.yaml
9+
10+
properties:
11+
height:
12+
type: int
13+
required: true
14+
description: Height in pixel of the panel driven by the controller
15+
16+
width:
17+
type: int
18+
required: true
19+
description: Width in pixel of the panel driven by the controller
20+
21+
reset-gpios:
22+
type: phandle-array
23+
required: true
24+
description: |
25+
RESET pin.
26+
27+
The RESET pin of EK79652 is active low.
28+
If connected directly the MCU pin should be configured
29+
as active low.
30+
31+
dc-gpios:
32+
type: phandle-array
33+
required: true
34+
description: |
35+
DC pin.
36+
37+
The DC pin of EK79652 is active low (transmission command byte).
38+
If connected directly the MCU pin should be configured
39+
as active low.
40+
41+
busy-gpios:
42+
type: phandle-array
43+
required: true
44+
description: |
45+
BUSY pin.
46+
47+
The BUSY pin of EK79652 is active low.
48+
If connected directly the MCU pin should be configured
49+
as active low.
50+
51+
pwr:
52+
type: uint8-array
53+
required: true
54+
description: Power Setting (PWR) values
55+
56+
softstart:
57+
type: uint8-array
58+
required: true
59+
description: Booster Soft Start (BTST) values
60+
61+
cdi:
62+
type: int
63+
required: true
64+
description: VCOM and data interval value
65+
66+
pwropt:
67+
type: uint8-array
68+
required: false
69+
description: Power optimization value

0 commit comments

Comments
 (0)