* [PATCH] media: imx-mipi-csis: add support for MEDIA_BUS_FMT_YUYV8_1X16
@ 2026-10-09 10:58 guoniu.zhou
0 siblings, 0 replies; only message in thread
From: guoniu.zhou @ 2026-10-09 10:58 UTC (permalink / raw)
To: Laurent Pinchart, Frank Li, Martin Kepplinger-Novakovic,
Rui Miguel Silva, Purism Kernel Team, Bryan O'Donoghue,
Mauro Carvalho Chehab, Sascha Hauer, Pengutronix Kernel Team,
Fabio Estevam
Cc: imx, linux-media, linux-arm-kernel, linux-kernel, Alice Yuan,
Guoniu Zhou
From: Alice Yuan <alice.yuan@nxp.com>
Add MEDIA_BUS_FMT_YUYV8_1X16 to the list of supported bus formats.
The format uses the same CSI-2 YUV422 8-bit data type and 16-bit
parallel bus width as MEDIA_BUS_FMT_UYVY8_1X16, but with a different
component ordering. Supporting YUYV allows sensors and bridge devices
that output YUYV formatted YUV422 data to be used with the i.MX MIPI
CSIS driver without requiring format conversion.
Signed-off-by: Alice Yuan <alice.yuan@nxp.com>
Signed-off-by: Guoniu Zhou <guoniu.zhou@oss.nxp.com>
---
drivers/media/platform/nxp/imx-mipi-csis.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/media/platform/nxp/imx-mipi-csis.c b/drivers/media/platform/nxp/imx-mipi-csis.c
index 5f9691d76434..14a00b9fcedf 100644
--- a/drivers/media/platform/nxp/imx-mipi-csis.c
+++ b/drivers/media/platform/nxp/imx-mipi-csis.c
@@ -382,6 +382,11 @@ static const struct csis_pix_format mipi_csis_formats[] = {
.output = MEDIA_BUS_FMT_UYVY8_1X16,
.data_type = MIPI_CSI2_DT_YUV422_8B,
.width = 16,
+ }, {
+ .code = MEDIA_BUS_FMT_YUYV8_1X16,
+ .output = MEDIA_BUS_FMT_YUYV8_1X16,
+ .data_type = MIPI_CSI2_DT_YUV422_8B,
+ .width = 16,
},
/* RGB formats. */
{
---
base-commit: b38d06ad1e13c32970d58039c154f009b81a3368
change-id: 20261009-csis_sam-c5c10ed12322
Best regards,
--
Guoniu Zhou <guoniu.zhou@oss.nxp.com>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-09 10:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 10:58 [PATCH] media: imx-mipi-csis: add support for MEDIA_BUS_FMT_YUYV8_1X16 guoniu.zhou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®