[PATCH v2 2/3] media: rockchip: rkcif: add support for GREY and Y10 formats

From: Quentin Schulz

Date: Mon Nov 02 2026 - 15:57:52 EST


From: Quentin Schulz <quentin.schulz@xxxxxxxxx>

The OV9282 camera sensor driver can output in those two formats, but the
VICAP didn't advertise support for them yet.

Suggested-by: Michael Riesch <michael.riesch@xxxxxxxxxxxxx>
Signed-off-by: Quentin Schulz <quentin.schulz@xxxxxxxxx>
---
.../platform/rockchip/rkcif/rkcif-capture-mipi.c | 26 ++++++++++++++++++++++
1 file changed, 26 insertions(+)

diff --git a/drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c b/drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
index 53e62d0597648..4e172366f258c 100644
--- a/drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
+++ b/drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
@@ -95,6 +95,26 @@ static const struct rkcif_output_fmt mipi_out_fmts[] = {
.type = RKCIF_MIPI_TYPE_RAW8,
},
},
+ {
+ .fourcc = V4L2_PIX_FMT_GREY,
+ .mbus_code = MEDIA_BUS_FMT_Y8_1X8,
+ .depth = 8,
+ .cplanes = 1,
+ .mipi = {
+ .dt = MIPI_CSI2_DT_RAW8,
+ .type = RKCIF_MIPI_TYPE_RAW8,
+ },
+ },
+ {
+ .fourcc = V4L2_PIX_FMT_Y10,
+ .mbus_code = MEDIA_BUS_FMT_Y10_1X10,
+ .depth = 10,
+ .cplanes = 1,
+ .mipi = {
+ .dt = MIPI_CSI2_DT_RAW10,
+ .type = RKCIF_MIPI_TYPE_RAW10,
+ },
+ },
/* RGB formats */
{
.fourcc = V4L2_PIX_FMT_RGB24,
@@ -341,6 +361,12 @@ static const struct rkcif_input_fmt mipi_in_fmts[] = {
{
.mbus_code = MEDIA_BUS_FMT_VYUY8_1X16,
},
+ {
+ .mbus_code = MEDIA_BUS_FMT_Y8_1X8,
+ },
+ {
+ .mbus_code = MEDIA_BUS_FMT_Y10_1X10,
+ },
/* RGB formats */
{
.mbus_code = MEDIA_BUS_FMT_RGB888_1X24,

--
2.56.0