As it says in the title my raspberry pi 4B is missing /dev/spidev0.0
I'm trying to use an adxl372 accelerometer with a raspberry pi 4B. I built a kernel with industrial io drivers and the proper device trees and I can interact with the sysfs bus, with everything seemingly in order. However I would like to write a script to interact with the device that doesn't use iio. When I use
piscope to look at the signals, I see that interacting over iio pulls
CE0 low so internally the kernel is using spidev0.0. However, I cannot access this device in userspace. Is it because I've added device tree overlays to support iio? when I boot from the old kernel it still doesn't show up.
Does anyone know what's causing this? I noticed that it is loading the
spi_bcm2835 module, despite the 4B using a newer SoC, but since the industrial io driver can communicate with it this doesn't seem like a problem. I could disable the chip select pin in my SPI abstraction and manage it manually with GPIO, but I would prefer a cleaner solution.
dmesg shows the fllowing lines. Is this because I have a conflicting device tree?
spi-bcm2385 fe204000.spi: chipselect 0 already in use spi_master spi0: spi_device register error /soc/spi@7e204000/spidev@0 spi_master spi0: failed to create SPI device for soc/spi@7e204000/spidev@0