-
Notifications
You must be signed in to change notification settings - Fork 5k
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
IMX219: Adjust PLL settings based on the number of MIPI lanes #6575
base: rpi-6.6.y
Are you sure you want to change the base?
Conversation
Links to https://forums.raspberrypi.com/viewtopic.php?t=381663 For reference, driver changes and overlay changes need to be in separate patches. The overlay can be an override on the existing imx219 overlay to reduce duplication. My diff (which I can't test) doing that was
|
drivers/media/i2c/imx219.c
Outdated
imx219->lanes == 2 ? imx219_pll : imx219_pll_4lane, | ||
imx219->lanes == 2 ? ARRAY_SIZE(imx219_pll) : ARRAY_SIZE(imx219_pll_4lane), | ||
NULL); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're not handling any failures from this table write.
TBH you may as well move the IMX219_REG_CSI_LANE_MODE
register into the array and just return the value from cci_multi_reg_write, or pass &ret
as the last argument to cci_write
below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied your recommended changes in the latest commit
There's a missing line (another closing brace and semicolon) in the proposed fragment 202, but otherwise it looks okay. |
Removed overlay changes from this PR and updated driver based on 6by9's suggestion |
Can you give us a Signed-off-by line for the changes in your PRs (this and #6580)? Mine would be: |
Signed-off-by: Peyton Howe <[email protected]>
fbcce2a
to
52d7f8a
Compare
Done for both! |
Still can tweak the exact PLL settings, but this adds the overlays and driver support needed for 4-lane operation. I have tested on my Pi5 and run with both 4-lane and 2-lane cameras simultaneously.