1/*
2 * Copyright 2023, NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/{
8	chosen {
9		zephyr,display = &rm67162_g1120b0mipi;
10		zephyr,touch = &ft3267_g1120b0mipi;
11	};
12
13	en_mipi_display_g1120b0mipi: enable-mipi-display {
14		compatible = "regulator-fixed";
15		regulator-name = "en_mipi_display";
16		enable-gpios = <&nxp_mipi_connector 32 GPIO_ACTIVE_HIGH>;
17		regulator-boot-on;
18	};
19
20	lvgl_pointer {
21		compatible = "zephyr,lvgl-pointer-input";
22		input = <&ft3267_g1120b0mipi>;
23		invert-y;
24	};
25};
26
27&nxp_mipi_i2c {
28	status = "okay";
29	ft3267_g1120b0mipi: ft3267@38 {
30		/*
31		 * Note- the actual controller present on this IC is a FT3267,
32		 * but the FT35336 driver in Zephyr supports this IC.
33		 */
34		compatible = "focaltech,ft5336";
35		reg = <0x38>;
36		int-gpios = <&nxp_mipi_connector 29 GPIO_ACTIVE_LOW>;
37		reset-gpios = <&nxp_mipi_connector 28 GPIO_ACTIVE_LOW>;
38	};
39};
40
41&zephyr_mipi_dsi {
42	status = "okay";
43	autoinsert-eotp;
44	phy-clock = <316800000>;
45	rm67162_g1120b0mipi: rm67162@0 {
46		status = "okay";
47		compatible = "raydium,rm67162";
48		reg = <0x0>;
49		reset-gpios = <&nxp_mipi_connector 21 GPIO_ACTIVE_HIGH>;
50		bl-gpios = <&nxp_mipi_connector 0 GPIO_ACTIVE_HIGH>;
51		te-gpios = <&nxp_mipi_connector 22 GPIO_ACTIVE_HIGH>;
52		data-lanes = <1>;
53		width = <400>;
54		height = <392>;
55		pixel-format = <MIPI_DSI_PIXFMT_RGB565>;
56	};
57};
58