boards: add support for SMARTDMA when using RM67162 display shield

Add support for using SMARTDMA when using RM67162 display shield with
Zephyr, so that the DMA engine can be leveraged for improved performance
when using the MIPI DSI in command mode.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2023-04-05 17:15:14 +00:00 committed by Carles Cufí
parent 36ad0b10b3
commit 40a52eb486
3 changed files with 22 additions and 1 deletions

View file

@ -467,3 +467,14 @@ zephyr_udc0: &usbhs {
&sram1 {
status = "okay";
};
/* Enable smartDMA controller */
&smartdma {
status = "okay";
};
/* Add smartDMA to mipi DSI */
&mipi_dsi {
dmas = <&smartdma>;
dma-names = "smartdma";
};

View file

@ -11,9 +11,17 @@ config INPUT
config INPUT_FT5336_INTERRUPT
default y
if MIPI_DSI_MCUX_2L
# Enable color swap in driver
config MIPI_DSI_MCUX_2L_SWAP16
default y
endif # MIPI_DSI_MCUX_2L
# Swap 16 bit color setting for LVGL, to send high byte first
config LV_COLOR_16_SWAP
default y
default y if !MIPI_DSI_MCUX_2L_SWAP16
config LV_Z_VDB_SIZE
default 16

View file

@ -0,0 +1,2 @@
# Enable DMA, so that DSI MCUX will use SMARTDMA
CONFIG_DMA=y