1/*
2 * Copyright (c) 2019, PHYTEC Messtechnik GmbH
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include "waveshare_epaper_common.dtsi"
8
9/ {
10	chosen {
11		zephyr,display = &ssd16xx_waveshare_epaper_gdeh0213b1;
12	};
13
14	mipi_dbi_waveshare_epaper_gdeh0213b1 {
15		compatible = "zephyr,mipi-dbi-spi";
16		spi-dev = <&arduino_spi>;
17		dc-gpios = <&arduino_header 15 GPIO_ACTIVE_HIGH>;	/* D9 */
18		reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>;	/* D8 */
19		#address-cells = <1>;
20		#size-cells = <0>;
21
22		ssd16xx_waveshare_epaper_gdeh0213b1: ssd16xxfb@0 {
23			compatible = "gooddisplay,gdeh0213b1", "solomon,ssd1673";
24			mipi-max-frequency = <4000000>;
25			reg = <0>;
26			width = <250>;
27			height = <120>;
28			busy-gpios = <&arduino_header 13 GPIO_ACTIVE_HIGH>;	/* D7 */
29
30			full {
31				gdv = [10 0a];
32				sdv = [19];
33				vcom = <0xa8>;
34				border-waveform = <0x71>;
35				dummy-line = <0x1a>;
36				gate-line-width = <0x08>;
37				lut = [
38					22 55 AA 55 AA 55 AA 11
39					00 00 00 00 00 00 00 00
40					1E 1E 1E 1E 1E 1E 1E 1E
41					01 00 00 00 00
42				];
43			};
44
45			partial {
46				gdv = [10 0a];
47				sdv = [19];
48				vcom = <0xa8>;
49				border-waveform = <0x71>;
50				dummy-line = <0x1a>;
51				gate-line-width = <0x08>;
52				lut = [
53					18 00 00 00 00 00 00 00
54					00 00 00 00 00 00 00 00
55					0F 01 00 00 00 00 00 00
56					00 00 00 00 00
57				];
58			};
59		};
60	};
61};
62