You're on a CM4, so CAM1 supports the full 4 lanes. Is there a specific reason for not using them?Thanks for pointing this out. I hadn't seen the end of the thread.If you find the later versions of that thread you'll find that it was acknowledged that imx577 is NOT the same as imx477, but imx577 support has been merged into the imx412 driver via https://github.com/torvalds/linux/commi ... c48cad2b90 in Nov 2022.
The issue with the imx412 driver being that it only supports 4 lanes CSI and I guess modifying it to support 2 lanes would require the full datasheet with register mappings.
It is running at 1.2Gbit/s/lane which technically exceeds the capabilities of CM4, but should be plausible. You're likely to need reduce the frame rate using V4L2_CID_VBLANK or frame rate control through libcamera.
Which thread? Sorry, I'm not going hunting.I noticed the thread also mentions there is an issue with 180 rotation with imx577, and I tried setting it to 0 in the dt overlay (it is at 180 at default). And it works! The image looks great with libcamera, still using the imx477 driver so I guess it is compatible 'enough' to get something working.
The imx412 driver never calls v4l2_fwnode_device_parse, so it won't pick up orientation or rotation properties from device tree.
It also doesn't support flips, so there's no real way to immediately flip the image. Transplanting that from imx477 is probably safe, but I don't have datasheets for imx412 or imx577.
No datasheet means I can't really provide any support. The imx477 driver is written for that sensor (and imx378 which requires 3 extra register writes). If it happens to work on another sensor then fine, but I'm afraid I can't take it any further.
I've just found my emails with our contact from Sony when the discussion over imx412/577/477 came up. The official response was:
"The message from Japan is that common form between sensors of different families is not a requirement considered."
If there are similarities then it's down to the end user to deduce them and ensure that the performance meets their requirements.
Statistics: Posted by 6by9 — Mon Aug 12, 2024 4:03 pm