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