[PATCH 2/3] media: rockchip: rkcif: add support for GREY and Y10 formats
From: Quentin Schulz
Date: Fri Oct 16 2026 - 09:48:43 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 bc9518f8db507..7e86e0bc7573e 100644
--- a/drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
+++ b/drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
@@ -87,6 +87,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,
@@ -333,6 +353,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