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 14&arduino_spi { 15 uc8176_waveshare_epaper_gdew042t2: uc8176@0 { 16 compatible = "gooddisplay,gdew042t2", "ultrachip,uc8176"; 17 spi-max-frequency = <4000000>; 18 reg = <0>; 19 width = <400>; 20 height = <300>; 21 dc-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */ 22 reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */ 23 busy-gpios = <&arduino_header 13 GPIO_ACTIVE_LOW>; /* D7 */ 24 25 softstart = [17 17 17]; 26 27 full { 28 pwr = [03 00 26 26 09]; 29 cdi = <0xd7>; 30 tcon = <0x22>; 31 }; 32 }; 33}; 34