media: staging: media: imx: imx7-media-csi: Add V4L2_PIX_FMT_Y14 support
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 10 May 2022 09:47:34 +0000 (10:47 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 17:03:07 +0000 (18:03 +0100)
The device supports 14-bit greyscale formats the same way it supports
14-bit Bayer formats.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/imx/imx7-media-csi.c

index 449a52baffcc0641373d9e3d25093b6866e00a60..ff80187ec1a2c5042976a133dadc177bcc7bf754 100644 (file)
@@ -907,6 +907,10 @@ static const struct imx7_csi_pixfmt pixel_formats[] = {
                .fourcc = V4L2_PIX_FMT_Y12,
                .codes  = IMX_BUS_FMTS(MEDIA_BUS_FMT_Y12_1X12),
                .bpp    = 16,
+       }, {
+               .fourcc = V4L2_PIX_FMT_Y14,
+               .codes  = IMX_BUS_FMTS(MEDIA_BUS_FMT_Y14_1X14),
+               .bpp    = 16,
        },
 };
 
@@ -2021,6 +2025,7 @@ static int imx7_csi_pad_link_validate(struct v4l2_subdev *sd,
        case V4L2_PIX_FMT_GREY:
        case V4L2_PIX_FMT_Y10:
        case V4L2_PIX_FMT_Y12:
+       case V4L2_PIX_FMT_Y14:
        case V4L2_PIX_FMT_SBGGR8:
        case V4L2_PIX_FMT_SGBRG8:
        case V4L2_PIX_FMT_SGRBG8: