1. Grab this file: https://github.com/raspberrypi/linux/bl ... verlay.dts
2. Change the "spi-max-frequency" property value from 125000000 to 5000000.
3. Compile it:4. Copy it into the overlays directory - /boot/firmware/overlays/ or /boot/overlays, depending on your OS.
5. Change your config.txt to refer to myspi4 instead of spi4-1cs.
I've assumed you're running on a Pi 4. For Pi 5 you'll need spi4-1cs-pi5-overlay.dts instead. Obviously you can call the new overlay what you want.
2. Change the "spi-max-frequency" property value from 125000000 to 5000000.
3. Compile it:
Code:
$ dtc -@ -Hepapr -I dts -O dtb -o myspi4.dtbo spi4-1cs-overlay.dts
5. Change your config.txt to refer to myspi4 instead of spi4-1cs.
I've assumed you're running on a Pi 4. For Pi 5 you'll need spi4-1cs-pi5-overlay.dts instead. Obviously you can call the new overlay what you want.
Statistics: Posted by PhilE — Tue Jan 23, 2024 8:55 am