2021-06-07 21:32:02 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Linumiz
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "waveshare_epaper_common.dtsi"
|
|
|
|
|
2021-11-27 01:30:11 +08:00
|
|
|
/ {
|
|
|
|
chosen {
|
2022-09-26 18:35:05 +08:00
|
|
|
zephyr,display = &uc8176_waveshare_epaper_gdew042t2;
|
2021-11-27 01:30:11 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-06-07 21:32:02 +08:00
|
|
|
&arduino_spi {
|
2022-09-26 18:35:05 +08:00
|
|
|
uc8176_waveshare_epaper_gdew042t2: uc8176@0 {
|
2022-07-17 05:44:46 +08:00
|
|
|
compatible = "gooddisplay,gdew042t2", "ultrachip,uc8176";
|
2021-06-07 21:32:02 +08:00
|
|
|
spi-max-frequency = <4000000>;
|
|
|
|
reg = <0>;
|
|
|
|
width = <400>;
|
|
|
|
height = <300>;
|
|
|
|
dc-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
|
|
|
|
reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
|
|
|
|
busy-gpios = <&arduino_header 13 GPIO_ACTIVE_LOW>; /* D7 */
|
2022-07-17 22:19:30 +08:00
|
|
|
|
2021-06-07 21:32:02 +08:00
|
|
|
softstart = [17 17 17];
|
2022-07-17 22:19:30 +08:00
|
|
|
|
|
|
|
full {
|
|
|
|
pwr = [03 00 26 26 09];
|
|
|
|
cdi = <0xd7>;
|
|
|
|
tcon = <0x22>;
|
|
|
|
};
|
2021-06-07 21:32:02 +08:00
|
|
|
};
|
|
|
|
};
|