Hi NXP
I referenced this thread blew
https://community.nxp.com/t5/i-MX-Processors/How-to-set-up-the-MIPI-CSI-2-and-ISI-to-transfer-RAW10-...
and I have streamed bayer(GRBG) data successfully by using
gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-bayer,format=grbg,width=1920,height=1080,framerate=60/1 ! bayer2rgb ! fpsdisplaysink sync=0
but the preview is a little abnormal(but my skin color is normal), and I found imx8mp still using GRBG(raw8. I have patched) to output format.
bypass csc
input fmt RGB4
output fmt GRBG
I think I should use v4l2-ctl to get raw data, and debayer to rgb image by dcraw command.
v4l2-ctl -d /dev/video3 --set-fmt-video=width=1920,height=1080,pixelformat=BA10 --set-parm=60 --stream-mmap --stream-count=1 --stream-to=/output_rggb.raw
bypass csc
input fmt RGB4
output fmt BA10
But the result is not good. my skin color is blue, please reference attached file blew

I checked the information of raw file by dcraw, I found some strange.
dcraw -v -i output_rggb.raw
Filename: output_rggb.raw
Timestamp: Thu Jan 1 00:00:00 1970
Camera: Photron BC2-HD
ISO speed: 0
Shutter: 0.0 sec
Aperture: f/0.0
Focal length: 0.0 mm
Embedded ICC profile: no
Number of raw images: 1
Full size: 1920 x 1080
Image size: 1920 x 1080
Output size: 1920 x 1080
Raw colors: 3
Filter pattern: GB/RG => still GB10???? I expect this value is GR/BG (BA10)
Daylight multipliers: 1.089011 0.973739 1.118123
Why imx8mp can't output format BA10?