1/*
2 * Copyright (c) 2021, Linumiz
3 *
4 */
5
6#include "waveshare_epaper_common.dtsi"
7
8/ {
9	chosen {
10		zephyr,display = &uc8176_waveshare_epaper_gdew042t2;
11	};
12
13	mipi_dbi_waveshare_epaper_gdew042t2 {
14		compatible = "zephyr,mipi-dbi-spi";
15		spi-dev = <&arduino_spi>;
16		dc-gpios = <&arduino_header 15 GPIO_ACTIVE_HIGH>;	/* D9 */
17		reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>;	/* D8 */
18		write-only;
19		#address-cells = <1>;
20		#size-cells = <0>;
21
22		uc8176_waveshare_epaper_gdew042t2: uc8176@0 {
23			compatible = "gooddisplay,gdew042t2", "ultrachip,uc8176";
24			mipi-max-frequency = <4000000>;
25			reg = <0>;
26			width = <400>;
27			height = <300>;
28			busy-gpios = <&arduino_header 13 GPIO_ACTIVE_LOW>; /* D7 */
29
30			softstart = [17 17 17];
31
32			full {
33				pwr = [03 00 26 26 09];
34				cdi = <0xd7>;
35				tcon = <0x22>;
36			};
37		};
38	};
39};
40