The possible root cause is the YUV order is incorrect.
-
You may need to make the sensor output order and modify the V4L2_MBUS_FMT_UYVY8_2X8 to correct order. Below are possible order.
V4L2_MBUS_FMT_UYVY8_2X8
V4L2_MBUS_FMT_VYUY8_2X8
V4L2_MBUS_FMT_YUYV8_2X8
V4L2_MBUS_FMT_YVYU8_2X8 -
Or try to modify the sensor to output UYVY order frame data.