Commit 3b4c4588 authored by Helmut Lord's avatar Helmut Lord Committed by Johan Hedberg
Browse files

shields: waveshare_epaper: add 2.13in epaper

Adds support for WaveShare's 2.13in epaper display
with the ssd1680 display driver.
Good Display part number gdey0213b74

Signed-off-by: default avatarHelmut Lord <kellyhlord@gmail.com>
parent b08dfe43
Loading
Loading
Loading
Loading
+1 −2
Changes for boards/shields/waveshare_epaper/Kconfig.defconfig: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -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

+3 −0
Changes for boards/shields/waveshare_epaper/Kconfig.shield: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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 −0
Changes for boards/shields/waveshare_epaper/doc/index.rst: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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
+36 −0
Changes for boards/shields/waveshare_epaper/waveshare_epaper_gdey0213b74.overlay: 36 added lines, 0 removed lines.
Original line number Diff line number Diff line
/*
 * 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>;
		};
	};
};