Skip to content

Commit

Permalink
boards: nxp: mimxrt1050: enable PXP and apply optimized LVGL settings
Browse files Browse the repository at this point in the history
Enable PXP on RT1050 EVK, and apply LVGL settings optimized for PXP
support. These settings will enable PXP rotation to function as expected
when using LVGL with the RT1050.

Signed-off-by: Daniel DeGrasse <[email protected]>
  • Loading branch information
danieldegrasse authored and nashif committed May 14, 2024
1 parent 558c291 commit 9b2ae5d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
23 changes: 22 additions & 1 deletion boards/nxp/mimxrt1050_evk/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,33 @@ endif # NETWORKING

if LVGL

# LVGL should allocate buffers equal to size of display
config LV_Z_VDB_SIZE
default 16
default 100

# Enable double buffering
config LV_Z_DOUBLE_VDB
default y

# Force full refresh. This prevents memory copy associated with partial
# display refreshes, which is not necessary for the eLCDIF driver
config LV_Z_FULL_REFRESH
default y

config LV_DPI_DEF
default 128

config LV_Z_BITS_PER_PIXEL
default 16

# Force display buffers to be aligned to cache line size (32 bytes)
config LV_Z_VDB_ALIGN
default 32

# Use offloaded render thread
config LV_Z_FLUSH_THREAD
default y

choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_16
endchoice
Expand Down
4 changes: 4 additions & 0 deletions boards/nxp/mimxrt1050_evk/mimxrt1050_evk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ zephyr_udc0: &usb1 {
status = "okay";
};

&pxp {
status = "okay";
};

/* GPT and Systick are enabled. If power management is enabled, the GPT
* timer will be used instead of systick, as allows the core clock to
* be gated.
Expand Down

0 comments on commit 9b2ae5d

Please sign in to comment.