max9286 + max96705 + AP0101AT + AT0143AT cannot get images

Csi clk and data lanes have a waveform output, but cannot get image from v4l2 interface.
can someone help me, thanks.

 kworker/5:2-279   [005] ...1    68.381164: rtos_queue_peek_from_isr_failed: tstamp:2423850158 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    68.381169: rtcpu_start: tstamp:2423852953
 kworker/5:2-279   [005] ...1    68.381171: rtcpu_vinotify_handle_msg: tstamp:2423894876 tag:CSIMUX_STREAM channel:0xff frame:0 vi_tstamp:2423894434 data:0x00000001
 kworker/5:2-279   [005] ...1    68.537208: rtos_queue_peek_from_isr_failed: tstamp:2428851043 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    68.693200: rtos_queue_peek_from_isr_failed: tstamp:2433851545 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    68.849204: rtos_queue_peek_from_isr_failed: tstamp:2438852053 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    69.005202: rtos_queue_peek_from_isr_failed: tstamp:2443852562 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    69.161202: rtos_queue_peek_from_isr_failed: tstamp:2448853079 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    69.317205: rtos_queue_peek_from_isr_failed: tstamp:2453853575 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    69.473207: rtos_queue_peek_from_isr_failed: tstamp:2458854079 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    69.629200: rtos_queue_peek_from_isr_failed: tstamp:2463854589 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    69.785214: rtos_queue_peek_from_isr_failed: tstamp:2468855096 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    69.993209: rtos_queue_peek_from_isr_failed: tstamp:2473855613 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    70.149210: rtos_queue_peek_from_isr_failed: tstamp:2478856109 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    70.305280: rtos_queue_peek_from_isr_failed: tstamp:2483856614 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    70.461206: rtos_queue_peek_from_isr_failed: tstamp:2488857122 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    70.617216: rtos_queue_peek_from_isr_failed: tstamp:2493857627 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    70.773176: rtos_queue_peek_from_isr_failed: tstamp:2498858148 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    70.929205: rtos_queue_peek_from_isr_failed: tstamp:2503858640 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    71.085214: rtos_queue_peek_from_isr_failed: tstamp:2508859149 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    71.241216: rtos_queue_peek_from_isr_failed: tstamp:2513859655 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    71.397248: rtos_queue_peek_from_isr_failed: tstamp:2518860165 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    71.553180: rtos_queue_peek_from_isr_failed: tstamp:2523860683 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    71.709241: rtos_queue_peek_from_isr_failed: tstamp:2528861177 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    71.865206: rtos_queue_peek_from_isr_failed: tstamp:2533861684 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    72.073211: rtos_queue_peek_from_isr_failed: tstamp:2538862189 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    72.229233: rtos_queue_peek_from_isr_failed: tstamp:2543862697 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    72.385216: rtos_queue_peek_from_isr_failed: tstamp:2548863205 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    72.541209: rtos_queue_peek_from_isr_failed: tstamp:2553863712 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    72.697199: rtos_queue_peek_from_isr_failed: tstamp:2558864218 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    72.853212: rtos_queue_peek_from_isr_failed: tstamp:2563864723 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    73.009209: rtos_queue_peek_from_isr_failed: tstamp:2568865231 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    73.165249: rtos_queue_peek_from_isr_failed: tstamp:2573865739 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    73.321211: rtos_queue_peek_from_isr_failed: tstamp:2578866240 queue:0x0b4a3c58
 kworker/5:2-279   [005] ...1    73.425243: rtcpu_vinotify_handle_msg: tstamp:2581682270 tag:CSIMUX_STREAM channel:0xff frame:0 vi_tstamp:2581680782 data:0x00000001
 kworker/5:2-279   [005] ...1    73.425254: rtos_queue_peek_from_isr_failed: tstamp:2582002827 queue:0x0b4a3c58

Have boost the clock to try.

https://elinux.org/Jetson_TX2_Camera_BringUp

I get the clock using command below:
echo 1 > /sys/kernel/debug/bpmp/debug/clk/vi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/isp/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/mrq_rate_locked
cat /sys/kernel/debug/bpmp/debug/clk/vi/max_rate
cat /sys/kernel/debug/bpmp/debug/clk/isp/max_rate
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate
cat /sys/kernel/debug/bpmp/debug/clk/vi/rate
cat /sys/kernel/debug/bpmp/debug/clk/isp/rate
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate

The result is:
1036800000
1126400000
225000000
409600000
768000000
225000000

The clocks are not same, does this correct?

When i run the commands below, the log is still.
echo 1036800000 > /sys/kernel/debug/bpmp/debug/clk/vi/rate
echo 1126400000 > /sys/kernel/debug/bpmp/debug/clk/isp/rate
echo 225000000 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate

The logs shows didn’t get any validate frame from sensor.

Our sensor output is “UYVY YUV422_8 1280*720 30fps”, how can i configure the driver and dtbs in R28.2.1. It seems that the r28.2.1 version don’t support uyvy in dtb (pixel_t) and drivers. Do you have yuv supporting patch for r28.2.1. Thanks

Sorry you have to modify the driver to support. Have a reference to below link to modify it.

https://devtalk.nvidia.com/default/topic/972192
https://devtalk.nvidia.com/default/topic/976709
https://devtalk.nvidia.com/default/topic/977871
https://devtalk.nvidia.com/default/topic/981601

Now, i get logs below. I see the TRM document. what does “NOTIFICATION [31] [2] is FIFO_LOF_STREAM_0” mean. Thanks.
kworker/4:1-51 [004] …1 677.881260: rtcpu_start: tstamp:21522746629
kworker/4:1-51 [004] …1 677.881263: rtcpu_vinotify_handle_msg: tstamp:21522785659 tag:CSIMUX_STREAM channel:0xff frame:0 vi_tstamp:47948734 data:0x00000100
kworker/4:1-51 [004] …1 678.037178: rtos_queue_peek_from_isr_failed: tstamp:21527745686 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 678.193180: rtos_queue_peek_from_isr_failed: tstamp:21532746192 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 678.401194: rtos_queue_peek_from_isr_failed: tstamp:21537746697 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 678.557177: rtos_queue_peek_from_isr_failed: tstamp:21542747206 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 678.713172: rtos_queue_peek_from_isr_failed: tstamp:21547747722 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 678.869237: rtos_queue_peek_from_isr_failed: tstamp:21552748219 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 679.025181: rtos_queue_peek_from_isr_failed: tstamp:21557748727 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 679.181173: rtos_queue_peek_from_isr_failed: tstamp:21562749232 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 679.337185: rtos_queue_peek_from_isr_failed: tstamp:21567749740 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 679.493288: rtos_queue_peek_from_isr_failed: tstamp:21572750245 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 679.649184: rtos_queue_peek_from_isr_failed: tstamp:21577750753 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 679.805210: rtos_queue_peek_from_isr_failed: tstamp:21582751261 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 679.961182: rtos_queue_peek_from_isr_failed: tstamp:21587751766 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 680.117184: rtos_queue_peek_from_isr_failed: tstamp:21592752274 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 680.325193: rtos_queue_peek_from_isr_failed: tstamp:21597752779 queue:0x0b4a3c58
kworker/4:1-51 [004] …1 680.481180: rtos_queue_peek_from_isr_failed: tstamp:21602753288 queue:0x0b4a3c58

I get the camera images now, but the images are not correct. All images are greenish and purple.
I exec the command below:
gst-launch-1.0 v4l2src device=/dev/video1 ! ‘video/x-raw, format=(string)UYVY, width=(int)1280, height=(int)720, framerate=(fraction)30/1’ ! xvimagesink -ev

the new log below:
kworker/0:1-51 [000] …1 91.520443: rtcpu_vinotify_handle_msg: tstamp:3214842234 tag:ATOMP_FE channel:0x00 frame:22 vi_tstamp:3214841762 data:0x00000000
kworker/0:1-51 [000] …1 91.520454: rtcpu_vinotify_handle_msg: tstamp:3214846233 tag:CHANSEL_PXL_SOF channel:0x00 frame:23 vi_tstamp:3214845681 data:0x00000001
kworker/0:1-51 [000] …1 91.520457: rtcpu_vinotify_handle_msg: tstamp:3214846417 tag:ATOMP_FS channel:0x00 frame:23 vi_tstamp:3214845698 data:0x00000000
kworker/0:1-51 [000] …1 91.520460: rtcpu_vinotify_handle_msg: tstamp:3214854114 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:23 vi_tstamp:3214853688 data:0x08000000
kworker/0:1-51 [000] …1 91.520462: rtcpu_vinotify_handle_msg: tstamp:3215743902 tag:CHANSEL_PXL_EOF channel:0x00 frame:23 vi_tstamp:3215743468 data:0x02cf0002
kworker/0:1-51 [000] …1 91.520465: rtcpu_vinotify_handle_msg: tstamp:3216027003 tag:ATOMP_FE channel:0x00 frame:23 vi_tstamp:3216026531 data:0x00000000
kworker/0:1-51 [000] …1 91.520468: rtcpu_vinotify_handle_msg: tstamp:3216032255 tag:CHANSEL_PXL_SOF channel:0x00 frame:24 vi_tstamp:3216031704 data:0x00000001
kworker/0:1-51 [000] …1 91.520470: rtcpu_vinotify_handle_msg: tstamp:3216032439 tag:ATOMP_FS channel:0x00 frame:24 vi_tstamp:3216031720 data:0x00000000
kworker/0:1-51 [000] …1 91.520473: rtcpu_vinotify_handle_msg: tstamp:3216038192 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:24 vi_tstamp:3216037765 data:0x08000000
kworker/0:1-51 [000] …1 91.520480: rtos_queue_peek_from_isr_failed: tstamp:3216392396 queue:0x0b4a3c58
kworker/0:1-51 [000] …1 91.572413: rtcpu_vinotify_handle_msg: tstamp:3216929920 tag:CHANSEL_PXL_EOF channel:0x00 frame:24 vi_tstamp:3216929484 data:0x02cf0002
kworker/0:1-51 [000] …1 91.572422: rtcpu_vinotify_handle_msg: tstamp:3217213026 tag:ATOMP_FE channel:0x00 frame:24 vi_tstamp:3217212553 data:0x00000000
kworker/0:1-51 [000] …1 91.572424: rtcpu_vinotify_handle_msg: tstamp:3217217030 tag:CHANSEL_PXL_SOF channel:0x00 frame:25 vi_tstamp:3217216474 data:0x00000001
kworker/0:1-51 [000] …1 91.572427: rtcpu_vinotify_handle_msg: tstamp:3217217230 tag:ATOMP_FS channel:0x00 frame:25 vi_tstamp:3217216491 data:0x00000000
kworker/0:1-51 [000] …1 91.572430: rtcpu_vinotify_handle_msg: tstamp:3217221299 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:25 vi_tstamp:3217220871 data:0x08000000
kworker/0:1-51 [000] …1 91.624400: rtcpu_vinotify_handle_msg: tstamp:3218114696 tag:CHANSEL_PXL_EOF channel:0x00 frame:25 vi_tstamp:3218114260 data:0x02cf0002
kworker/0:1-51 [000] …1 91.624408: rtcpu_vinotify_handle_msg: tstamp:3218397798 tag:ATOMP_FE channel:0x00 frame:25 vi_tstamp:3218397323 data:0x00000000
kworker/0:1-51 [000] …1 91.624411: rtcpu_vinotify_handle_msg: tstamp:3218401803 tag:CHANSEL_PXL_SOF channel:0x00 frame:26 vi_tstamp:3218401250 data:0x00000001
kworker/0:1-51 [000] …1 91.624414: rtcpu_vinotify_handle_msg: tstamp:3218401986 tag:ATOMP_FS channel:0x00 frame:26 vi_tstamp:3218401266 data:0x00000000
kworker/0:1-51 [000] …1 91.624416: rtcpu_vinotify_handle_msg: tstamp:3218406093 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:26 vi_tstamp:3218405669 data:0x08000000
kworker/0:1-51 [000] …1 91.624419: rtcpu_vinotify_handle_msg: tstamp:3219299462 tag:CHANSEL_PXL_EOF channel:0x00 frame:26 vi_tstamp:3219299029 data:0x02cf0002
kworker/0:1-51 [000] …1 91.624422: rtcpu_vinotify_handle_msg: tstamp:3219582570 tag:ATOMP_FE channel:0x00 frame:26 vi_tstamp:3219582098 data:0x00000000
kworker/0:1-51 [000] …1 91.624424: rtcpu_vinotify_handle_msg: tstamp:3219586570 tag:CHANSEL_PXL_SOF channel:0x00 frame:27 vi_tstamp:3219586018 data:0x00000001
kworker/0:1-51 [000] …1 91.624427: rtcpu_vinotify_handle_msg: tstamp:3219586763 tag:ATOMP_FS channel:0x00 frame:27 vi_tstamp:3219586035 data:0x00000000
kworker/0:1-51 [000] …1 91.624430: rtcpu_vinotify_handle_msg: tstamp:3219590613 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:27 vi_tstamp:3219590187 data:0x08000000
kworker/0:1-51 [000] …1 91.676428: rtcpu_vinotify_handle_msg: tstamp:3220484239 tag:CHANSEL_PXL_EOF channel:0x00 frame:27 vi_tstamp:3220483805 data:0x02cf0002
kworker/0:1-51 [000] …1 91.676436: rtcpu_vinotify_handle_msg: tstamp:3220767343 tag:ATOMP_FE channel:0x00 frame:27 vi_tstamp:3220766867 data:0x00000000
kworker/0:1-51 [000] …1 91.676439: rtcpu_vinotify_handle_msg: tstamp:3220771347 tag:CHANSEL_PXL_SOF channel:0x00 frame:28 vi_tstamp:3220770794 data:0x00000001
kworker/0:1-51 [000] …1 91.676442: rtcpu_vinotify_handle_msg: tstamp:3220771536 tag:ATOMP_FS channel:0x00 frame:28 vi_tstamp:3220770810 data:0x00000000
kworker/0:1-51 [000] …1 91.676445: rtcpu_vinotify_handle_msg: tstamp:3220775532 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:28 vi_tstamp:3220775104 data:0x08000000
kworker/0:1-51 [000] …1 91.728396: rtos_queue_peek_from_isr_failed: tstamp:3221392898 queue:0x0b4a3c58
kworker/0:1-51 [000] …1 91.728404: rtcpu_vinotify_handle_msg: tstamp:3221669007 tag:CHANSEL_PXL_EOF channel:0x00 frame:28 vi_tstamp:3221668573 data:0x02cf0002
kworker/0:1-51 [000] …1 91.728407: rtcpu_vinotify_handle_msg: tstamp:3221952120 tag:ATOMP_FE channel:0x00 frame:28 vi_tstamp:3221951642 data:0x00000000
kworker/0:1-51 [000] …1 91.728410: rtcpu_vinotify_handle_msg: tstamp:3221956116 tag:CHANSEL_PXL_SOF channel:0x00 frame:29 vi_tstamp:3221955562 data:0x00000001
kworker/0:1-51 [000] …1 91.728412: rtcpu_vinotify_handle_msg: tstamp:3221956303 tag:ATOMP_FS channel:0x00 frame:29 vi_tstamp:3221955579 data:0x00000000
kworker/0:1-51 [000] …1 91.728415: rtcpu_vinotify_handle_msg: tstamp:3221960164 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:29 vi_tstamp:3221959735 data:0x08000000
kworker/0:1-51 [000] …1 91.728418: rtcpu_vinotify_handle_msg: tstamp:3222853780 tag:CHANSEL_PXL_EOF channel:0x00 frame:29 vi_tstamp:3222853349 data:0x02cf0002
kworker/0:1-51 [000] …1 91.780369: rtcpu_vinotify_handle_msg: tstamp:3223136897 tag:ATOMP_FE channel:0x00 frame:29 vi_tstamp:3223136412 data:0x00000000
kworker/0:1-51 [000] …1 91.780377: rtcpu_vinotify_handle_msg: tstamp:3223140891 tag:CHANSEL_PXL_SOF channel:0x00 frame:30 vi_tstamp:3223140337 data:0x00000001
kworker/0:1-51 [000] …1 91.780379: rtcpu_vinotify_handle_msg: tstamp:3223141075 tag:ATOMP_FS channel:0x00 frame:30 vi_tstamp:3223140355 data:0x00000000
kworker/0:1-51 [000] …1 91.780382: rtcpu_vinotify_handle_msg: tstamp:3223146606 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:30 vi_tstamp:3223146180 data:0x08000000
kworker/0:1-51 [000] …1 91.780385: rtcpu_vinotify_handle_msg: tstamp:3224038552 tag:CHANSEL_PXL_EOF channel:0x00 frame:30 vi_tstamp:3224038119 data:0x02cf0002
kworker/0:1-51 [000] …1 91.780388: rtcpu_vinotify_handle_msg: tstamp:3224321658 tag:ATOMP_FE channel:0x00 frame:30 vi_tstamp:3224321188 data:0x00000000
kworker/0:1-51 [000] …1 91.780390: rtcpu_vinotify_handle_msg: tstamp:3224325660 tag:CHANSEL_PXL_SOF channel:0x00 frame:31 vi_tstamp:3224325108 data:0x00000001
kworker/0:1-51 [000] …1 91.780393: rtcpu_vinotify_handle_msg: tstamp:3224325858 tag:ATOMP_FS channel:0x00 frame:31 vi_tstamp:3224325125 data:0x00000000
kworker/0:1-51 [000] …1 91.780396: rtcpu_vinotify_handle_msg: tstamp:3224330354 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:31 vi_tstamp:3224329929 data:0x08000000
kworker/0:1-51 [000] …1 91.832429: rtcpu_vinotify_handle_msg: tstamp:3225223330 tag:CHANSEL_PXL_EOF channel:0x00 frame:31 vi_tstamp:3225222894 data:0x02cf0002
kworker/0:1-51 [000] …1 91.832437: rtcpu_vinotify_handle_msg: tstamp:3225506431 tag:ATOMP_FE channel:0x00 frame:31 vi_tstamp:3225505958 data:0x00000000
kworker/0:1-51 [000] …1 91.832440: rtcpu_vinotify_handle_msg: tstamp:3225510437 tag:CHANSEL_PXL_SOF channel:0x00 frame:32 vi_tstamp:3225509883 data:0x00000001
kworker/0:1-51 [000] …1 91.832442: rtcpu_vinotify_handle_msg: tstamp:3225510621 tag:ATOMP_FS channel:0x00 frame:32 vi_tstamp:3225509900 data:0x00000000
kworker/0:1-51 [000] …1 91.832445: rtcpu_vinotify_handle_msg: tstamp:3225514722 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:32 vi_tstamp:3225514297 data:0x08000000
kworker/0:1-51 [000] …1 91.884397: rtos_queue_peek_from_isr_failed: tstamp:3226393417 queue:0x0b4a3c58

I get the Image below of which the color is not correct:

The trace log show didn’t get any validate data from MIPI bus.

Please take a look at my reply above. I get an image, but the color is not correct

It’s must be the pixel type not correct.
Have your driver to report the correct pixel type.

The max9286’s output is “UYVY YUV422_8 1280*720 30fps”. I use MEDIA_BUS_FMT_UYVY8_1X16 configuration, the image output is not correct. when I use MEDIA_BUS_FMT_UYVY8_2X8 configuration, “VIDIOC_S_FMT: failed: Invalid argument” errors will happen.

The modify of camera_commom.c:
static const struct camera_common_colorfmt camera_common_color_fmts = {
{
MEDIA_BUS_FMT_SRGGB12_1X12,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_SRGGB12,
},
{
MEDIA_BUS_FMT_SRGGB10_1X10,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_SRGGB10,
},
{
MEDIA_BUS_FMT_SBGGR10_1X10,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_SBGGR10,
},
{
MEDIA_BUS_FMT_SRGGB8_1X8,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_SRGGB8,
},
/*
* The below two formats are not supported by VI4,
* keep them at the last to ensure they get discarded
*/
{
MEDIA_BUS_FMT_XRGGB10P_3X10,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_XRGGB10P,
},
{
MEDIA_BUS_FMT_XBGGR10P_3X10,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_XRGGB10P,
},
#if 0
{
MEDIA_BUS_FMT_YUYV8_1X16,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_YUYV,
},
{
MEDIA_BUS_FMT_YVYU8_1X16,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_YVYU,
},
{
MEDIA_BUS_FMT_UYVY8_1X16,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_UYVY,
},
{
MEDIA_BUS_FMT_VYUY8_1X16,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_VYUY,
},
#endif
{
MEDIA_BUS_FMT_YUYV8_2X8,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_YUYV,
},
{
MEDIA_BUS_FMT_YVYU8_2X8,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_YVYU,
},
{
MEDIA_BUS_FMT_UYVY8_2X8,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_UYVY,
},
{
MEDIA_BUS_FMT_VYUY8_2X8,
V4L2_COLORSPACE_SRGB,
V4L2_PIX_FMT_VYUY,
},
};

I have a strange problem:

My sensor output is “UYVY 1280 * 720 30fs”. I get raw data using command below.

v4l2-ctl -d /dev/video0 --set-fmt-video=width=5120,height=720,pixelformat=UYVY --stream-mmap --stream-count=1 --stream-to=ov1280_v4l2.raw

I get a ov1280_v4l2.raw file. When I make a converting of ov1280_v4l2.raw from uyvy to rgb, it is not correct.But when I convert ov1280_v4l2.raw from yuyv to rgb, it is correct.

Why ?

Please check below is the memory layout of the data. You may need to handle before converting.

I just develop the same hardware driver, can I get your init code for camera?