Capture YUV MIPI Sensor Issue

Hi~
Recently I tried to capture YUV422 image data from a UYVY camera, I have modified camera_common.c, sensor_common.c, device tree and kernel driver, finally I can capture images through v4l2-ctl command, but the images I captured seem to be YUYV format beyond expectations. I also tried to configure device tree and driver to capture YUYV format image, but the images I captured seem to be UYVY format. How can I solve the problem?

Have a try to configure the output format if any different to clarify the problem.