1/* 2 * Copyright (c) 2019 Jan Van Winkel <jan.van_winkel@dxplore.eu> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/ { 8 chosen { 9 zephyr,display = &st7789v_st7789v_tl019fqv01; 10 }; 11}; 12 13&arduino_spi { 14 status = "okay"; 15 cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ 16 17 st7789v_st7789v_tl019fqv01: st7789v@0 { 18 compatible = "sitronix,st7789v"; 19 spi-max-frequency = <20000000>; 20 reg = <0>; 21 cmd-data-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */ 22 reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */ 23 width = <320>; 24 height = <170>; 25 x-offset = <0>; 26 y-offset = <35>; 27 vcom = <0x2b>; 28 gctrl = <0x35>; 29 vrhs = <0x0f>; 30 vdvs = <0x20>; 31 mdac = <0x60>; 32 gamma = <0x01>; 33 colmod = <0x55>; 34 lcm = <0x2c>; 35 porch-param = [0c 0c 00 33 33]; 36 cmd2en-param = [5a 69 02 01]; 37 pwctrl1-param = [52 a1]; 38 pvgam-param = [D0 00 02 07 0B 1A 31 54 40 29 12 12 12 17]; 39 nvgam-param = [D0 00 02 07 05 15 2D 44 44 1C 18 16 1C 1D]; 40 ram-param = [00 F8]; 41 rgb-param = [CD 08 14]; 42 }; 43}; 44