The spidev devices in /dev are not created on a enabled spi0. Is there any trick to get the device files?
ls /sys/class/spi_master/
spi0
The spidev devices in /dev are not created on a enabled spi0. Is there any trick to get the device files?
spi0
Hi,
According to https://wiki.radxa.com/RockpiS/hardware/gpio,
ROCK Pi S spi0 and uart0 share some pins, which means that debug console (uart0) is forcely disabled when you use spi0. I suggest you comment this line in file /boot/hw_intfc.conf.
intfc:dtoverlay=console-on-ttyS0
When use spi0 device, need to modify file /boot/hw_intfc.conf.
intfc:spi0=on
intfc:dtoverlay=devspi0
#intfc:dtoverlay=console-on-ttyS0
After reboot the machine, there shall be /dev/spidev0.0.
$ ls /sys/class/spi_master
spi0
$ ls /sys/class/spidev
spidev0.0
$ ls /dev/spi*
/dev/spidev0.0
I can’t get SPI to work either. I’ve tried to enable the switches in /boot/hw_intfc.conf (Debian Buster downloaded from your site), but nothing happens, nothing in dmesg related to spi either. I can’t enable i2c that way either, I had to add the rk3308-i2c0 overlays line in uEnv.txt instead. But if I try to just add devspi2 (or devspi0) nothing happens. I have no files under /sys/class/spi_master or /sys/class/spidev, or /dev/spi.