V4l2 Sensor driver & v4l-subdev nodes in /dev/ folder

Hi All,

In camera module, only two v4l-subdev nodes are created in /dev/ folder. One for nvcsi channel 1 and other one for Camera sensor.

Trying to write own sensor driver with CSI and VI. After loading this sensor dirver, three v4l-subdev nodes are created in /dev/ folder. What is the reason for this?

-Thanks.

Hi All,

If we put this driver as module, then it creates the 3 v4l-subdev nodes in /dev/ folder.
If we put this driver as built-in, then it creates the 2 v4l-subdev nodes.

Not sure about the reasons.

-Thanks.

hello BalajiNP,

please check https://01.org/linuxgraphics/gfx-docs/drm/media/kapi/v4l2-subdev.html for more details.
also, tegra vi driver implementation is access the camera sensor with v4l2-subdev.
you could also check the driver sources code,

r28.1_sources/kernel/kernel-4.4/drivers/media/platform/tegra/camera/vi/vi4_fops.c