This PR upgrades the packaging to our latest boilerplate and ports additional pins to gpiod/gpiodevice. Part of an effort to bring enviro up to speed with Raspberry Pi 5 - https://github.com/pimoroni/enviroplus-python/pull/126
Make sure your user is in the group spi and enable SPI with dtparam=spi=on or via raspi-config
Rock 5B / Armbian
On ROCK5B and possibly other modern platforms, it needs a custom dtoverlay to remove control of MISO from the spi driver, otherwise the data/command pin cannot be asserted by gpiod.
In /etc/udev/rules.d/60-spidev.rules:
SUBSYSTEM=="spidev", GROUP="gpio", MODE="0660"
Then:
sudo udevadm control --reload-rules
sudo udevadm trigger
Make sure your user is in the gpio group:
sudo usermod -a -G gpio $USER
Create a new file rk3588-spi0-m2-cs1-nomiso-spidev.dts with the dts code below.
This PR upgrades the packaging to our latest boilerplate and ports additional pins to gpiod/gpiodevice. Part of an effort to bring enviro up to speed with Raspberry Pi 5 - https://github.com/pimoroni/enviroplus-python/pull/126
Note: This library uses SPI and requires this patch - https://github.com/raspberrypi/linux/commit/686fe776309fba5cad642c40177d39bf1fb320b2 - to function without raising a TimeoutError on Pi 5.
Pi 5 / Raspberry Pi OS
Make sure your user is in the group
spi
and enable SPI withdtparam=spi=on
or viaraspi-config
Rock 5B / Armbian
On ROCK5B and possibly other modern platforms, it needs a custom dtoverlay to remove control of MISO from the spi driver, otherwise the data/command pin cannot be asserted by gpiod.
In
/etc/udev/rules.d/60-spidev.rules
:Then:
Make sure your user is in the
gpio
group:Create a new file
rk3588-spi0-m2-cs1-nomiso-spidev.dts
with the dts code below.Install with:
sudo armbian-add-overlay rk3588-spi0-m2-cs1-nomiso-spidev.dts