[PATCH 1/2] media: ti: j721e-csi2rx: Support RAW12 bayer formats

From: Yemike Abhilash Chandra

Date: Thu Jun 25 2026 - 11:21:50 EST


From: Jai Luthra <j-luthra@xxxxxx>

Add support for RAW12 bayer formats in the j721e-csi2rx driver.

Signed-off-by: Jai Luthra <j-luthra@xxxxxx>
Signed-off-by: Yemike Abhilash Chandra <y-abhilashchandra@xxxxxx>
---
.../platform/ti/j721e-csi2rx/j721e-csi2rx.c | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)

diff --git a/drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c b/drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c
index 4769931b1930..4ba0ba6ad935 100644
--- a/drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c
+++ b/drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c
@@ -225,6 +225,30 @@ static const struct ti_csi2rx_fmt ti_csi2rx_formats[] = {
.csi_dt = MIPI_CSI2_DT_RAW10,
.bpp = 16,
.size = SHIM_DMACNTX_SIZE_16,
+ }, {
+ .fourcc = V4L2_PIX_FMT_SBGGR12,
+ .code = MEDIA_BUS_FMT_SBGGR12_1X12,
+ .csi_dt = MIPI_CSI2_DT_RAW12,
+ .bpp = 16,
+ .size = SHIM_DMACNTX_SIZE_16,
+ }, {
+ .fourcc = V4L2_PIX_FMT_SGBRG12,
+ .code = MEDIA_BUS_FMT_SGBRG12_1X12,
+ .csi_dt = MIPI_CSI2_DT_RAW12,
+ .bpp = 16,
+ .size = SHIM_DMACNTX_SIZE_16,
+ }, {
+ .fourcc = V4L2_PIX_FMT_SGRBG12,
+ .code = MEDIA_BUS_FMT_SGRBG12_1X12,
+ .csi_dt = MIPI_CSI2_DT_RAW12,
+ .bpp = 16,
+ .size = SHIM_DMACNTX_SIZE_16,
+ }, {
+ .fourcc = V4L2_PIX_FMT_SRGGB12,
+ .code = MEDIA_BUS_FMT_SRGGB12_1X12,
+ .csi_dt = MIPI_CSI2_DT_RAW12,
+ .bpp = 16,
+ .size = SHIM_DMACNTX_SIZE_16,
}, {
.fourcc = V4L2_PIX_FMT_RGB565X,
.code = MEDIA_BUS_FMT_RGB565_1X16,
--
2.34.1