I am interested in porting a camera driver from one SOC(Pi) to another SOC(Jetson) which both run flavors of linux and have CSI-2 interfaces.
I have the source code for the driver. I'm trying to understand how the CSI-2 interface works with respect to V4L2. The camera is controlled by the SOC through an I2C line which control functions are provided for in the source code. What I am confused about is if I need to write something to actually pull frames from the camera and control the CSI interface directly? Or is that all standardized by the CSI-2 interface and handled by V4L2?
If you wanted to access the raw data from the camera how is this done?