Skip to content

Commit

Permalink
shields: waveshare_epaper: add 2.13in epaper
Browse files Browse the repository at this point in the history
Adds support for WaveShare's 2.13in epaper display
with the ssd1680 display driver.
Good Display part number gdey0213b74

(cherry picked from commit 3b4c458)

Original-Signed-off-by: Helmut Lord <kellyhlord@gmail.com>
GitOrigin-RevId: 3b4c458
Change-Id: I791e6198f43519d6be693a7ace559d040de8b1c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5608648
Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
  • Loading branch information
hlord2000 authored and Chromeos LUCI committed Jun 7, 2024
1 parent 86d0a3b commit 5c42fae
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 2 deletions.
3 changes: 1 addition & 2 deletions boards/shields/waveshare_epaper/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
# SPDX-License-Identifier: Apache-2.0
#

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

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_GDEY0213B74

if DISPLAY

Expand Down
3 changes: 3 additions & 0 deletions boards/shields/waveshare_epaper/Kconfig.shield
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ config SHIELD_WAVESHARE_EPAPER_GDEW042T2

config SHIELD_WAVESHARE_EPAPER_GDEW042T2_P
def_bool $(shields_list_contains,waveshare_epaper_gdew042t2-p)

config SHIELD_WAVESHARE_EPAPER_GDEY0213B74
def_bool $(shields_list_contains,waveshare_epaper_gdey0213b74)
3 changes: 3 additions & 0 deletions boards/shields/waveshare_epaper/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ Current supported displays
| Good Display | WFT0420CZ15 | UC8176 / | waveshare_epaper_gdew042t2 |
| GDEW042T2 | | gd7965 | waveshare_epaper_gdew042t2-p |
+--------------+-----------------+--------------+------------------------------+
| Good Display | FPC-A002 | SSD1680 / | waveshare_epaper_gdey0213b74 |
| GDEY0213B74 | | ssd16xx | |
+--------------+-----------------+--------------+------------------------------+


Requirements
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright (c) 2024, Kelly Helmut Lord
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "waveshare_epaper_common.dtsi"

/ {
chosen {
zephyr,display = &ssd16xx_waveshare_epaper_gdey0213b74;
};
};

&arduino_spi {
ssd16xx_waveshare_epaper_gdey0213b74: ssd16xxfb@0 {
compatible = "gooddisplay,gdey0213b74", "solomon,ssd1680";
spi-max-frequency = <4000000>;
reg = <0>;
width = <250>;
height = <122>;
dc-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
busy-gpios = <&arduino_header 13 GPIO_ACTIVE_HIGH>; /* D7 */

tssv = <0x80>;

full {
border-waveform = <0x05>;
};

partial {
border-waveform = <0x3c>;
};
};
};

0 comments on commit 5c42fae

Please sign in to comment.