nixos-pi-zero-2 icon indicating copy to clipboard operation
nixos-pi-zero-2 copied to clipboard

How to enable spi?

Open Kernald opened this issue 7 months ago • 3 comments

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?

Kernald avatar Apr 08 '25 07:04 Kernald

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

DocBrown101 avatar Apr 08 '25 16:04 DocBrown101

@Kernald would you mind checking whether @micartey's patch solved your problem?

plmercereau avatar Sep 17 '25 14:09 plmercereau

@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?

Kernald avatar Sep 22 '25 05:09 Kernald