Missing SPI device file

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

ls /sys/class/spidev/

ls /dev/spi*

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