I think you can refer to the V4L2 driver. Please read the i.MX_6Dual6Quad_Linux_Reference_Manual.pdf Chapter 8 for the details. There is an i.MX Test package in Linux BSP. the package name "imx-test". You can take it as reference.
I think you can refer to the V4L2 driver. Please read the i.MX_6Dual6Quad_Linux_Reference_Manual.pdf Chapter 8 for the details. There is an i.MX Test package in Linux BSP. the package name "imx-test". You can take it as reference.