Hi everyone. I’ve been comparing my Raspberry Pi 4 and Raspberry Pi 5 with the same camera modules, and I’m not seeing any framerate difference between them. My understanding is that the Pi 5 has twice the CSI lanes per port, so I’d expect more throughput, but both the IMX519 and the OwlSight camera (OV64A40) give me basically identical framerates on both boards. Is full speed just not achievable due to some hardware limitation, or is there an alternative driver that could get me closer to the sensor spec? I’d also really like to enable the 32MP (7680x4320) cropped mode that’s listed in the sensor datasheet.
Thanks for the details. Based on what we can see, the higher throughput and the 32MP cropped mode are simply not enabled or planned in the current driver - so moving to the Pi 5 alone won’t unlock anything. Theoretically the module speed can be increased by modifying the camera driver, but there’s no specific plan to do that on our end. That said, you’re welcome to change the driver yourself if you want to experiment with either the speed or the 32MP mode.
That makes sense. Could you point me in the right direction on how to modify the driver? I’m comfortable editing source and compiling, I just don’t know where to start.
Sure. It’s actually pretty straightforward to add a new mode: make a copy of the Full Resolution mode entry, then change the analog_crop and digital_crop values to the resolution you want. The mode table for the OV64A40 lives around here: linux/drivers/media/i2c/ov64a40.c at 37573248884ec252165a246df21642c52573f013 · raspberrypi/linux · GitHub
Thanks, I’ll try compiling a modified driver based on that. One thing I want to confirm though - can I actually get 4-lane operation through the 15-pin connector, or would the improvement only come from adjusting timings and frequencies (i.e. pushing the existing 2-lane mode faster)?
No, 4-lane support can’t be achieved through the 15-pin connector - that’s a hardware limitation, so the sensor stays on 2 lanes. With 2-lane operation, the only way to improve the frame rate is to increase the link speed. And to be upfront, that part is not easy to do. So the current conclusion is: 4 lanes via the 15-pin connector is out, and the remaining option for more speed on 2 lanes is raising the link speed, which is difficult.