You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to support a higher frame rates at higher resolutions with CSI-2 camera modules, the RP1 clock must be increased from the default 200Mhz ( 400Mpx/s ) to a higher 300Mhz ( 600Mpx/s )
This was possible in kernel 6.6, in fact when overclock to 300Mhz in 6.6 it would actually set the clock to 333Mhz; but my latest attempts in 6.12 appear to have no effect anymore. ( stuck at 200Mhz )
It would be great to have a config.txt method of setting an increased RP1 clock for camera use cases.
I can't reproduce this - the clock still changes on 6.12, both with a self-built kernel and with the latest from rpi-update, although both require a modified DTB as you have found. Are you sure you copied in the hacked dtb file?
This kind of modification could be done with an overlay, but publishing that makes it look approved of. And I'd want to change the clock driver to make it legal. Currently I think it only works because the parent PLL is modified without looking at the maximum frequency, and since the sys clock is 1:1 with the parent it gets changed immediately.
I can't reproduce this - the clock still changes on 6.12, both with a self-built kernel and with the latest from rpi-update, although both require a modified DTB as you have found. Are you sure you copied in the hacked dtb file?
This kind of modification could be done with an overlay, but publishing that makes it look approved of. And I'd want to change the clock driver to make it legal. Currently I think it only works because the parent PLL is modified without looking at the maximum frequency, and since the sys clock is 1:1 with the parent it gets changed immediately.
I'll recompile the latest 6.12 with the .dtb changes, and report what mine shows.
More importantly, beyond just getting a different clock reading, the camera peripheral is produces artifacts and glitches that are consistent with the clock remaining at 200Mhz as I cannot achieve UHD 60fps live video preview as I can in 6.6 with the same changes.
Perhaps it was an issue with a previous version of 6.12 I tried a few weeks ago, but seems to be fixed since. I am able to set the clock to a higher speed now:
Save it as rp1-300mhz.dtso and do dtc -@ -I dts -O dtb -o rp1-300mhz.dtbo rp1-300mhz.dtso to compile, copy the rp1-300mhz.dtbo to /boot/firmware/overlays/ and do dtoverlay=rp1-300mhz in config.txt
Reacted by eva-00100, Benjamin Alldridge and Patrik Eriksson
Activity
pelwell commentedon Mar 21, 2025
I can't reproduce this - the clock still changes on 6.12, both with a self-built kernel and with the latest from rpi-update, although both require a modified DTB as you have found. Are you sure you copied in the hacked dtb file?
This kind of modification could be done with an overlay, but publishing that makes it look approved of. And I'd want to change the clock driver to make it legal. Currently I think it only works because the parent PLL is modified without looking at the maximum frequency, and since the sys clock is 1:1 with the parent it gets changed immediately.
What are your thoughts, @naushir?
schoolpost commentedon Mar 21, 2025
How are you verifying the clock speed changes taking effect? (
cat /sys/kernel/debug/clk/clk_summary? )For example this is what I get in
6.6with the modification of the.dtb:I'll recompile the latest
6.12with the.dtbchanges, and report what mine shows.More importantly, beyond just getting a different clock reading, the camera peripheral is produces artifacts and glitches that are consistent with the clock remaining at 200Mhz as I cannot achieve UHD 60fps live video preview as I can in
6.6with the same changes.schoolpost commentedon Mar 22, 2025
Perhaps it was an issue with a previous version of
6.12I tried a few weeks ago, but seems to be fixed since. I am able to set the clock to a higher speed now:And I do not have any glitches or issues with the camera anymore as expected.
Having this configurable through an overlay would still be a welcome add however.
will127534 commentedon Mar 22, 2025
For those who stumble across this issue, here is the dtoverlay to change RP1 clock without recompile the kernel:
Save it as
rp1-300mhz.dtsoand dodtc -@ -I dts -O dtb -o rp1-300mhz.dtbo rp1-300mhz.dtsoto compile, copy the rp1-300mhz.dtbo to /boot/firmware/overlays/ and do dtoverlay=rp1-300mhz in config.txt