1/* 2 * Copyright 2023, NXP 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <zephyr/dt-bindings/display/panel.h> 8 9/{ 10 chosen { 11 zephyr,display = &lcdif; 12 zephyr,touch = >911_rk055hdmipi4m; 13 }; 14 15 en_mipi_display: enable-mipi-display { 16 compatible = "regulator-fixed"; 17 regulator-name = "en_mipi_display"; 18 enable-gpios = <&nxp_mipi_connector 32 GPIO_ACTIVE_HIGH>; 19 regulator-boot-on; 20 }; 21 22 lvgl_pointer { 23 compatible = "zephyr,lvgl-pointer-input"; 24 input = <>911_rk055hdmipi4m>; 25 }; 26}; 27 28&nxp_mipi_i2c { 29 status = "okay"; 30 gt911_rk055hdmipi4m: gt911@5d { 31 compatible = "goodix,gt911"; 32 reg = <0x5d>; 33 irq-gpios = <&nxp_mipi_connector 29 GPIO_ACTIVE_HIGH>; 34 reset-gpios = <&nxp_mipi_connector 28 GPIO_ACTIVE_LOW>; 35 }; 36}; 37 38&zephyr_lcdif { 39 status = "okay"; 40 width = <720>; 41 height = <1280>; 42 display-timings { 43 compatible = "zephyr,panel-timing"; 44 hsync-len = <8>; 45 hfront-porch = <32>; 46 hback-porch = <32>; 47 vsync-len = <2>; 48 vfront-porch = <16>; 49 vback-porch = <14>; 50 hsync-active = <0>; 51 vsync-active = <0>; 52 de-active = <1>; 53 pixelclk-active = <0>; 54 /* 55 * Pixel clock is given by the following formula: 56 * (height + vsync-len + vfront-porch + vback-porch) * 57 * (width + hsync-len + hfront-porch + hback-porch) * frame rate 58 */ 59 clock-frequency = <62346240>; 60 }; 61 pixel-format = <PANEL_PIXEL_FORMAT_BGR_565>; 62 data-bus-width = "24-bit"; 63 backlight-gpios = <&nxp_mipi_connector 0 GPIO_ACTIVE_HIGH>; 64}; 65 66&zephyr_mipi_dsi { 67 status = "okay"; 68 nxp,lcdif = <&lcdif>; 69 dpi-color-coding = "24-bit"; 70 dpi-pixel-packet = "24-bit"; 71 dpi-video-mode = "burst"; 72 dpi-bllp-mode = "low-power"; 73 autoinsert-eotp; 74 /* 75 * PHY clock is given by the following formula: 76 * (pixel clock * bits per pixel) / MIPI data lanes 77 */ 78 phy-clock = <748154880>; 79 rm68200@0 { 80 status = "okay"; 81 compatible = "raydium,rm68200"; 82 reg = <0x0>; 83 reset-gpios = <&nxp_mipi_connector 21 GPIO_ACTIVE_HIGH>; 84 data-lanes = <2>; 85 width = <720>; 86 height = <1280>; 87 pixel-format = <MIPI_DSI_PIXFMT_RGB565>; 88 }; 89}; 90