Skip to content

Commit f8a9e1f

Browse files
authored
Added information about SPI on the RPi4
The RPi4 has a higher core frequency and can not be underclocked to 250MHz like the RPi3. Instead its default frequency is 500MHz, which is compatible with SPI. However, this value is changed by the dynamic frequency clocking. The minimum frequency has to be raised to prevent SPI desyncs.
1 parent 70a8528 commit f8a9e1f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

library/README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,15 @@ following line to /boot/config.txt and reboot.
151151

152152
core_freq=250
153153

154+
On a RPi 4 its dynamic frequency clocking has to be disabled, since it will
155+
desync the SPI clock. Do this by adding this line to
156+
``/boot/config.txt``. (``core_freq`` does not have to be changed, since
157+
the default value of 500MHz is SPI compatible)
158+
159+
::
160+
161+
core_freq_min=500
162+
154163
SPI requires you to be in the ``gpio`` group if you wish to control your
155164
LEDs without root.
156165

0 commit comments

Comments
 (0)