Zephyr: Display: How to Use GPU2D, LCDIFv2 Drivers (VGLite with Zephyr)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Zephyr: Display: How to Use GPU2D, LCDIFv2 Drivers (VGLite with Zephyr)

428 Views
mastergbc
Contributor II
I am enabling display functionality for the MIMXRT1160-EVK  board using Zephyr 4.1. I have inquiries regarding enabling GPU2D and LCDIFv2 drivers.
 
1. I used the MCUXpresso for VS Code extension to obtain LVGL demos from the - nxp_zephyr_nxp_v4_1_0 repository.

- Repository: nxp_zephyr_nxp_v4_1_0
- Test program: zephyr\samples\modules\lvgl\demos
EVK: MIMXRT1160-EVK
- Shield: RK055HDMIPI4MA0 LCD BD
 
2. I Added the following to boards/mimxrt1160_evk_mimxrt1166_cm7.overlay:
&pxp {
    status = "okay"; /* for CONFIG_MCUX_ELCDIF_PXP=y */
};
 
3. I confirmed normal LCD video output and tested performance with CONFIG_LV_Z_DEMO_BENCHMARK. Partial results:
 
All scenes avg: CPU 65% / 25 FPS / 29 ms
Empty screen: CPU 11% / 28 FPS / 4 ms
Rotated ARGB images: CPU 100% / 26 FPS / 36 ms
Containers with opa_layer: CPU 100% / 11 FPS / 80 ms
...
 
 
I think enabling GPU2D and LCDIFv2 drivers is necessary for further display performance improvement. Does this require VGLite?
I seek guidance on:
Activation methods for drivers/libraries.
- Porting guidelines.
 
4. LVGL in nxp_zephyr_nxp_v4_1_0/modules appears to have incomplete VGLite porting. Does NXP plan to fully port this to Zephyr?
 
 
Labels (1)
Tags (1)
0 Kudos
Reply
2 Replies

390 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @mastergbc ,

Thanks for your interest in NXP MIMXRT series!

Zephyr is in the process of expanding, but there are no exact plans or information to post at this time. You can refer to this customer's post for LCD adaptation first:https://community.nxp.com/t5/i-MX-Processors/Zephyr-DeviceTree-elcdif-driver-results-in-blank-screen...

Best regards,
Gavin

0 Kudos
Reply

412 Views
mastergbc
Contributor II

Example of a conf file:

# Copyright 2023 NXP
# SPDX-License-Identifier: Apache-2.0

# Enable PXP DMA engine and set rotation angle to 0 degrees.
# This allows us to verify the DMA driver functions without altering
# the output image
CONFIG_DMA=y
CONFIG_MCUX_ELCDIF_PXP=y
CONFIG_LV_USE_DRAW_VGLITE=y # I don't know which is right thing XX_VGLITE and XX_VG_LITE
CONFIG_LV_USE_DRAW_VG_LITE=y
CONFIG_LV_DRAW_BUF_ALIGN=64
CONFIG_LV_VG_LITE_USE_GPU_INIT=y

 

Build messages:

- I try to copied and pasted `mcux_sdk_main\mcuxsdk\middleware\vglite\driver\inc\vg_lite.h`. but,

../nxp_zephyr_nxp_v4_1_0/modules/lib/gui/lvgl/src/draw/nxp/vglite/lv_vglite_path.c:19:10: fatal error: vg_lite.h: No such file or directory
   19 | #include "vg_lite.h"

  

0 Kudos
Reply