Hi All,
I am integrating ov5640 mipi camera with imx6 Dualite. For debug (ov5640 register read and write) need to add support for v4l2 advanced debug in driver (Need to read and write register from user-space with v4l2-dbg). Few examples i saw were done with v4l2-subdev core options
static const struct v4l2_subdev_core_ops xxxx_core_ops = {
.log_status = xxxx_log_status,
.s_std = xxxx_s_std,
.reset = xxxx_reset,
.g_chip_ident = xxxx_g_chip_ident,
#ifdef CONFIG_VIDEO_ADV_DEBUG
.g_register = xxxx_g_register,
.s_register = xxxx_s_register,
#endif
};
How to add this to OV5640 driver for debug support
Hi anjo
You might have to look the kernel config CONFIG_VIDEO_ADV_DEBUG and VIDEO_ADV_DEBUG
Also if you are with Yocto, utilities on v4l-utils and v4l2-dbg: allows access to DBG_G_CHIP_INFO, DBG_G/S_REGISTER
Core debugging: 'echo 1 >/sys/class/video4linux/video0/debug'.
1: show ioctl name
2: show arguments as well
Hope this helps
Hi,
Is there any examples for adding s_register and g_register for v4l2debug in mxc-v4l2 or ov5640_mipi driver? Any examples with reference of imx6 will be helpful