Accordingly to chapter 9.2.1.1 "Camera Ports" of i.MX 6D/Q Processor Reference Manual i.MX6 supports up to 16 bits per component Raw (Bayer) image.
Unfortunately we have no sample implementation code for such driver.
Sorry for the inconvenience.
Have a great day,
Victor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------