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_gdeh029a1;
12	};
13
14	mipi_dbi_waveshare_epaper_gdeh029a1 {
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_gdeh029a1: ssd16xxfb@0 {
23			compatible = "gooddisplay,gdeh029a1", "solomon,ssd1608";
24			mipi-max-frequency = <4000000>;
25			reg = <0>;
26			width = <296>;
27			height = <128>;
28			busy-gpios = <&arduino_header 13 GPIO_ACTIVE_HIGH>;	/* D7 */
29
30			softstart = [d7 d6 9d];
31
32			full {
33				vcom = <0x9a>;
34				border-waveform = <0x33>;
35				dummy-line = <0x1a>;
36				gate-line-width = <0x08>;
37				lut = [
38					50 AA 55 AA 11 00 00 00
39					00 00 00 00 00 00 00 00
40					00 00 00 00 FF FF 1F 00
41					00 00 00 00 00 00
42				];
43			};
44
45			partial {
46				vcom = <0xa8>;
47				border-waveform = <0x01>;
48				dummy-line = <0x1a>;
49				gate-line-width = <0x08>;
50				lut = [
51					10 18 18 08 18 18 08 00
52					00 00 00 00 00 00 00 00
53					00 00 00 00 13 14 44 12
54					00 00 00 00 00 00
55				];
56			};
57		};
58	};
59};
60