Just for context, I'm one of the nominated maintainers of the ov5647 driver in mainline, and also the one who would generally review sensor driver changes for the Raspberry Pi kernel.
You could try your luck in mainline and see if the other maintainer would accept the chardev (in which case the Pi kernel would get the change when it filtered down), but I don't think you'll get a positive response.
The other thing to say is that if you only want this for a quick hack, then "i2ctransfer -f ..." will send I2C commands to devices even if there is a kernel driver claiming the address, so eg "i2ctransfer -f -y 10 w3@0x36 0x30 0x00 0x01" would set register 0x3000 to 0x01. If trying to write this in code, then I2C_SLAVE_FORCE is the ioctl you're wanting.
Do also note that the camera will be powered down when not streaming, and I2C transactions will therefore fail.
Thanks for reply, I will review and check again, and thanks for help.
Statistics: Posted by edward.wu — Tue Jan 30, 2024 7:18 am