-
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
HQ camera link frequency can cause GPS distruption #6004
Comments
Hi, any update on this? I see that it hasn't been taken on yet. Any tips on how to resolve it as I have a whole load of these cameras inside units with GPS and when then camera is on you can kiss goodbye to GPS signal! |
I had 30mins spare, so have done the quick patch to add it (based on imx708). Give it 40mins for CI to run, and you should be able to get the test kernel using Same as imx708, you can load |
This is great, I will give it a try with a new kernel. Question... I also have a legacy version that I need to support, with kernel 5.4.154. I build from a snapshot so I can apply code changes. Is it sufficient to just edit the line: #define IMX477_DEFAULT_LINK_FREQ 450000000 Or could that cause problems and I need to apply the other changes to make it configurable etc? |
Ok that didn't work on the old kernel. Do I need to change some registers as well? |
Just changing If you want to do the quick hack, then changing register 0x030f from 0x96 to 0x97 or 0x98 in the table of registers would make the change without telling the rest of the system about it (it's not a critical thing for anything else to know about). Do note that it occurs multiple times. |
I've tried it out and with a 200mm unshielded camera cable there is still some interference at 453, 456 and I even tried 459. It's better but still causing some signal loss. How high can we take the link frequency, do you know? Could it go up even higher without causing issues/damage? |
Also is there some way of double checking that the link frequency change has worked? Something I can call to return the current link frequency? |
You could go up to 500MHz and still be compliant with the CSI2 spec v1.0 as implemented on Pi0-4. The module has been EMC tested with the values in the driver as they were at 450MHz, so any significant changes technically should result in redoing EMC testing.
(oops, I appear to have an extra entry in there - one to fix!) Alternatively you can use |
#6483 to fix the link frequency menu having the rogue entry in it. |
I get:
and...
and...
|
Grr, typo. |
I only have a
Thanks for helping with this! Update: sorry ignore the above, the camera wasn't running. However, even though I edited the registers in the kernel source code it is still reading as 0x96
If I change the register with i2ctransfer will it change the link frequency on-the-fly? I tried this...
Then I got:
Then I stopped the camera and started it again and got:
|
Yes you can change the registers on the fly. |
I can confirm it's working in the latest Bookworm, but I've not been able to get it work with the old kernel. Any advice appreciated |
Update: On bullseye I was able to pull the new kernel and apply the new link_frequency and it works fine in libcamera - can see 0x97 at 0x030f with i2ctransfer Does the legacy stack override the registers in the kernel driver?? |
The legacy camera stack is baked into the firmware and doesn't touch the kernel drivers at all. And it's deprecated (replaced by libcamera), so there won't be any changes there. |
Describe the bug
From raspberrypi/libcamera#43, the same issue of GPS interference has been noted on the HQ camera as well as the v3 that has already been fixed.
Look at tweaking the PLL settings to move the peak away from GPS on 1575MHz.
Steps to reproduce the behaviour
See raspberrypi/libcamera#43
Device (s)
Raspberry Pi 4 Mod. B
System
All kernels as the link frequency has never varied.
Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: