nixos-pi-zero-2
nixos-pi-zero-2 copied to clipboard
How to enable spi?
I tried a bunch of things, with the most obvious two being adding dtparam=spi=on to the config.txt and loading the spidev module... but I can't get spi to work at all. No /dev/spi* ever gets created.
Do you have any idea how to get that to work by any chance?
config.txt does not work with nixos, you will probably need a deviceTree.overlay. I have added one for i2c, maybe that will help you to get started: https://github.com/plmercereau/nixos-pi-zero-2/pull/11
@Kernald would you mind checking whether @micartey's patch solved your problem?
@plmercereau I'll try to test this over the upcoming weeks, but am quite busy with other projects at the moment. Happy to close this as there's theoretically a solution, and I'll re-open an issue if the patch, while resulting in the device being created, doesn't actually make it work / if someone has a chance to try and get this working before I do?