How can I write a camera driver that allows access to I2C from the user space?

Hello,

I’m writing a camera driver for a non-visible light camera.
For this camera, it is necessary to directly operate I2C from the dedicated SDK to control.
Based on L4T35.3.1 DevelopperGuide, the power supply and I2C operation are exclusively owned by the kernel and cannot be accessed from the user space.

I want the driver to start and stop the stream, but I want to do other operations from user space.
How to implementation driver would you recommend?

You can implement the debugfs for it.
The nv_ov5693.c should be referenced.

1 Like

Thanks for your advice!
I referred to the implementation using Debugfs in nv_ov5693.c
I was able to create a device file and control also from userspace.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.