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-07-16 18:28:08 +08:00
|
|
|
zephyr,display = &uc8176;
|
2021-11-27 01:30:11 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-06-07 21:32:02 +08:00
|
|
|
&arduino_spi {
|
2022-07-16 18:28:08 +08:00
|
|
|
uc8176: uc8176@0 {
|
|
|
|
compatible = "gooddisplay,gdew042t2", "ultrachip,uc8176", "ultrachip,uc81xx";
|
|
|
|
label = "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 */
|
|
|
|
pwr = [03 00 26 26 09];
|
|
|
|
softstart = [17 17 17];
|
|
|
|
cdi = <0xd7>;
|
|
|
|
tcon = <0x22>;
|
|
|
|
};
|
|
|
|
};
|