I am trying to create a sensor+ISP driver that outputs YUV420 8-bit legacy to TX2. The pixel phase should be UYVY. I extended the camera_common_colorfmt struct to include this:
MEDIA_BUS_FMT_UYVY8_1_5X8, V4L2_COLORSPACE_SRGB, V4L2_PIX_FMT_YUV420,
and included this option in the extract_format function in sensor_common.c.
However, I always get a corrupted kernel and could not boot the TX2. I’ve been trying the other media bus formats with the same pixel phase but I always get a YUV422 image format, instead of my expected I420 or NV21 fourcc codes.
What settings should I use?