Need to write generic camera driver in kernel driver file and move all camera specific settings to user space/ Application layer

Hi,
We are writing the Generic camera sensor kernel driver that can cater to different image sensors and want to use mode tables and other image sensor specific settings from the application layer so that it will be a generic kernel driver where whatever image sensor specific settings required by the user can added in the application layer/user space on demand.
Is there any reference code or any documentation about it?

Thanks
Mayur

hello mayur.verma,

there’s already a generic camera sensor kernel driver,
$public_sources/kernel_src/kernel/nvidia/drivers/media/platform/tegra/camera/tegracam_core.c

you may refer to developer guide for Sensor Software Driver Programming.
please see-also Tutorials | NVIDIA Developer, for [V4L2 Sensor Driver Development Tutorial].