Hi Everyone;
I want to support two cameras on tx1 devboard, and our hardware engineers select two pieces tw9992(which support YUV422 or RGB565 convert to MIPI signal) connect to MIPI_A and MIPI_C.
but I find in /drivers/media/platform/tegra/camera/camera_common.c only defined three fmts
static const struct camera_common_colorfmt camera_common_color_fmts[] = {
{
V4L2_MBUS_FMT_SRGGB12_1X12,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_SRGGB12,
},
{
V4L2_MBUS_FMT_SRGGB10_1X10,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_SRGGB10,
},
{
V4L2_MBUS_FMT_SRGGB8_1X8,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_SRGGB8,
},
}
{
V4L2_MBUS_FMT_UYVY8_1X16,
V4L2_COLORSPACE_DEFAULT,
V4L2_PIX_FMT_UYVY,
},
I defined “common_data->colorfmt = camera_common_find_datafmt(V4L2_MBUS_FMT_UYVY8_1X16);” in my driver
and in the device tree, the pixel_t defines “pixel_t = “bayer_bggr”;”
and when run the command “v4l2-compliance -d /dev/video0”
is shows: Total: 42, Succeeded: 39, Failed: 3, Warnings: 0
how do I support YUV422 Sensor on tx1 devboard?
thanks a lot!