Skip to content

IMX415 higher link rate support #6807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: rpi-6.12.y
Choose a base branch
from

Conversation

6by9
Copy link
Contributor

@6by9 6by9 commented Apr 22, 2025

I need to upstream this one, but leaving it here for the time being.

6by9 added 3 commits April 22, 2025 19:00
Before adding additional modes, sort the list by lane rate
as that make most sense.

Signed-off-by: Dave Stevenson <[email protected]>
The sensor supports more link rates than the 3 currently supported,
although some are only listed as being valid when running with
2 data lanes.

Add these additional modes, with setting hblank_min to 0 to
denote that it is invalid in that mode.

Signed-off-by: Dave Stevenson <[email protected]>

---
I'm unable to successfully test 2376Mbit/s mode as it exceeds the
hardware specs of the Pi5 CSI2 block. I get an image, but it's got
incorrect colours, even with the horizontal timings extended
significantly. All the register values follow the datasheet though.

I have a suspicion that the modes listed as not permitted in a
2 lanes configuration will work, but I haven't the time to test
it at present.
Likewise the hmax_min values can almost certainly be decreased
as it looks like Sony are just listing values for nice round
frame rate values, not the limits. I can't determine the limits
easily as Pi5 is limited to a maximum rate of approx 380MPix/s
so can't run this sensor above 43fps.
The sensor supports conversion and readout as either 10 or 12 bit
data, but the driver only supported 10 bit mode.

Add support for 12 bit conversion.

Signed-off-by: Dave Stevenson <[email protected]>
@6by9
Copy link
Contributor Author

6by9 commented Apr 22, 2025

12bit readout mode needs checking that it behaves with all the link frequency options as the datasheet says it is only valid for certain values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant