Skip to content

Commit 0477b08

Browse files
prabhakarladhverkuil
authored andcommitted
media: rzg2l-cru: Add support to capture 8bit raw sRGB
Add support to capture 8bit Bayer formats. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Link: https://lore.kernel.org/r/20241018133446.223516-22-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
1 parent c6ed80f commit 0477b08

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ struct rzg2l_csi2_format {
188188

189189
static const struct rzg2l_csi2_format rzg2l_csi2_formats[] = {
190190
{ .code = MEDIA_BUS_FMT_UYVY8_1X16, .bpp = 16 },
191+
{ .code = MEDIA_BUS_FMT_SBGGR8_1X8, .bpp = 8, },
192+
{ .code = MEDIA_BUS_FMT_SGBRG8_1X8, .bpp = 8, },
193+
{ .code = MEDIA_BUS_FMT_SGRBG8_1X8, .bpp = 8, },
194+
{ .code = MEDIA_BUS_FMT_SRGGB8_1X8, .bpp = 8, },
191195
};
192196

193197
static inline struct rzg2l_csi2 *sd_to_csi2(struct v4l2_subdev *sd)

drivers/media/platform/renesas/rzg2l-cru/rzg2l-ip.c

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,34 @@ static const struct rzg2l_cru_ip_format rzg2l_cru_ip_formats[] = {
1818
.bpp = 2,
1919
.icndmr = ICnDMR_YCMODE_UYVY,
2020
},
21+
{
22+
.code = MEDIA_BUS_FMT_SBGGR8_1X8,
23+
.format = V4L2_PIX_FMT_SBGGR8,
24+
.datatype = MIPI_CSI2_DT_RAW8,
25+
.bpp = 1,
26+
.icndmr = 0,
27+
},
28+
{
29+
.code = MEDIA_BUS_FMT_SGBRG8_1X8,
30+
.format = V4L2_PIX_FMT_SGBRG8,
31+
.datatype = MIPI_CSI2_DT_RAW8,
32+
.bpp = 1,
33+
.icndmr = 0,
34+
},
35+
{
36+
.code = MEDIA_BUS_FMT_SGRBG8_1X8,
37+
.format = V4L2_PIX_FMT_SGRBG8,
38+
.datatype = MIPI_CSI2_DT_RAW8,
39+
.bpp = 1,
40+
.icndmr = 0,
41+
},
42+
{
43+
.code = MEDIA_BUS_FMT_SRGGB8_1X8,
44+
.format = V4L2_PIX_FMT_SRGGB8,
45+
.datatype = MIPI_CSI2_DT_RAW8,
46+
.bpp = 1,
47+
.icndmr = 0,
48+
},
2149
};
2250

2351
const struct rzg2l_cru_ip_format *rzg2l_cru_ip_code_to_fmt(unsigned int code)

0 commit comments

Comments
 (0)