1/* 2 * Copyright (c) 2022 Andreas Sandberg 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include "waveshare_epaper_common.dtsi" 8 9/ { 10 chosen { 11 zephyr,display = &uc8176_waveshare_epaper_gdew042t2-p; 12 }; 13}; 14 15&arduino_spi { 16 /* 17 * GoodDisplay GDEW042T2 with fast partial refresh. Based on 18 * configuration from GoodDisplay's Arduino example. 19 */ 20 uc8176_waveshare_epaper_gdew042t2-p: uc8176@0 { 21 compatible = "gooddisplay,gdew042t2", "ultrachip,uc8176"; 22 spi-max-frequency = <4000000>; 23 reg = <0>; 24 width = <400>; 25 height = <300>; 26 dc-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */ 27 reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */ 28 busy-gpios = <&arduino_header 13 GPIO_ACTIVE_LOW>; /* D7 */ 29 30 softstart = [ 17 17 17 ]; 31 32 full { 33 cdi = <0x07>; 34 }; 35 36 partial { 37 pwr = [ 03 02 2b 2b ]; 38 cdi = <0x07>; 39 pll = <0x3c>; 40 vdcs = <0x08>; 41 42 lutc = [ 43 00 01 0E 00 00 01 44 00 00 00 00 00 00 45 00 00 00 00 00 00 46 00 00 00 00 00 00 47 00 00 00 00 00 00 48 00 00 00 00 00 00 49 00 00 00 00 00 00 50 00 00 51 ]; 52 53 lutww = [ 54 00 01 0E 00 00 01 55 00 00 00 00 00 00 56 00 00 00 00 00 00 57 00 00 00 00 00 00 58 00 00 00 00 00 00 59 00 00 00 00 00 00 60 00 00 00 00 00 00 61 ]; 62 63 lutkw = [ 64 20 01 0E 00 00 01 65 00 00 00 00 00 00 66 00 00 00 00 00 00 67 00 00 00 00 00 00 68 00 00 00 00 00 00 69 00 00 00 00 00 00 70 00 00 00 00 00 00 71 ]; 72 73 lutwk = [ 74 10 01 0E 00 00 01 75 00 00 00 00 00 00 76 00 00 00 00 00 00 77 00 00 00 00 00 00 78 00 00 00 00 00 00 79 00 00 00 00 00 00 80 00 00 00 00 00 00 81 ]; 82 83 lutkk = [ 84 00 01 0E 00 00 01 85 00 00 00 00 00 00 86 00 00 00 00 00 00 87 00 00 00 00 00 00 88 00 00 00 00 00 00 89 00 00 00 00 00 00 90 00 00 00 00 00 00 91 ]; 92 }; 93 }; 94}; 95