zephyr/drivers/mipi_dsi/Kconfig.mcux
Alain Volmat b13d9a0510 display: rename current BGR_565 format into RGB_565X
The format currently expected by devices and sample display
application for BGR_565 is actually RGB_565 format with bytes
swapped (not B / R swapped). That is:

PIXEL_FORMAT_RGB_565:
         * @code{.unparsed}
         *   7......0 15.....8
         * | gggBbbbb RrrrrGgg | ...
         * @endcode

current PIXEL_FORMAT_BGR_565:
         * @code{.unparsed}
         *   7......0 15.....8
         * | RrrrrGgg gggBbbbb | ...
         * @endcode

This is explained in both st7796s display driver but also is
what is generated by the sample display application. As a video
format (ex: V4L2), such format is not mentioned as BGR (for
which R and B are swapped) but RGB_565X.

Within the whole Zephyr tree, rename the curremt BGR_565 format
into RGB_565X in order to emphasis that this is a byte swapped
format rather than a B/G component swapped format.

This also correct the description of the format in display.h
file, which wasn't correct based on what was being used by
display driver or sample display app.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2026-01-19 16:04:04 +00:00

52 lines
1.3 KiB
Text

# Copyright 2022-2023 NXP
# SPDX-License-Identifier: Apache-2.0
config MIPI_DSI_MCUX
bool "NXP MCUX MIPI-DSI Host Controller"
default y
depends on DT_HAS_NXP_IMX_MIPI_DSI_ENABLED
help
NXP MIPI DSI controller driver
config MIPI_DSI_MCUX_2L
bool "NXP MCUX MIPI-DSI 2L Controller"
default y
depends on DT_HAS_NXP_MIPI_DSI_2L_ENABLED
help
NXP MIPI DSI 2L controller driver
if MIPI_DSI_MCUX_2L
config MIPI_DSI_MCUX_2L_SMARTDMA
bool "Use smartDMA controller with MIPI DSI"
default y
depends on DMA_MCUX_SMARTDMA
help
Use SMARTDMA. This accelerator will automatically
convert RGB565 input data to RGB565X, and write it
to the MIPI DSI.
config MIPI_DSI_MCUX_NXP_DCNANO_LCDIF
bool "Use NXP DCNano DBI controller with MIPI DSI"
default y
depends on DT_HAS_NXP_MIPI_DBI_DCNANO_LCDIF_ENABLED
select MIPI_DBI
help
Use DCNano DBI controller for the data transfer.
config MIPI_DSI_MCUX_2L_SWAP16
bool "Swap 16 byte color"
help
Swap 16 byte color data from little to big endian format. When
this Kconfig is enabled, the DSI expects RGB565 data in little endian
format, which will then be byte swapped.
endif # MIPI_DSI_MCUX_2L
config MIPI_DSI_NXP_DWC
bool "NXP DWC MIPI-DSI Host Controller"
default y
depends on DT_HAS_NXP_MIPI_DSI_DWC_ENABLED
help
NXP MIPI DSI DWC controller driver