1/*
2 * Copyright 2024 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <zephyr/dt-bindings/mipi_dbi/mipi_dbi.h>
8
9/{
10	chosen {
11		zephyr,display = &st7796s;
12		zephyr,touch = &gt911_lcd_par_s035;
13	};
14
15	lvgl_pointer {
16		compatible = "zephyr,lvgl-pointer-input";
17		input = <&gt911_lcd_par_s035>;
18		swap-xy;
19		invert-y;
20	};
21};
22
23&nxp_8080_touch_panel_i2c {
24	status = "okay";
25	gt911_lcd_par_s035: gt911-lcd_par_s035@5d {
26		compatible = "goodix,gt911";
27		reg = <0x5d>;
28		irq-gpios = <&nxp_lcd_8080_connector 9 GPIO_ACTIVE_HIGH>;
29		reset-gpios = <&nxp_lcd_8080_connector 11 GPIO_ACTIVE_LOW>;
30	};
31};
32
33&zephyr_mipi_dbi_parallel {
34	status = "okay";
35	#address-cells = <1>;
36	#size-cells = <0>;
37	st7796s: st7796s@0 {
38		compatible = "sitronix,st7796s";
39		reg = <0>;
40		/* Baud rate on each pin is 1MHz */
41		mipi-max-frequency = <10000000>;
42		mipi-mode = "MIPI_DBI_MODE_8080_BUS_16_BIT";
43		height = <320>;
44		width = <480>;
45		invert-mode = "1-dot";
46		frmctl1 = [80 10];
47		bpc = [1F 50 00 20];
48		dfc = [8A 07 3B];
49		pwr1 = [80 64];
50		pwr2 = <0x13>;
51		pwr3 = <0xA7>;
52		vcmpctl = <0x09>;
53		doca = [40 8A 00 00 29 19 A5 33];
54		pgc = [F0 06 0B 07 06 05 2E 33 47 3A 17 16 2E 31];
55		ngc = [F0 09 0D 09 08 23 2E 33 46 38 13 13 2C 32];
56		madctl = <0x28>;
57		color-invert;
58	};
59};
60