Hello, I am trying to work with SPI in my BPI M2Z. With Raspbian, I have no problems with SPI. With several ARMBIAN images, I do not see the SPIDEV port in /dev folder, I have try many things however nothing works. With ‘lsmod’ I can see that the SPIDEV is loaded. In the boot process I can see that the overlays a fixup script are loaded correctly:
Found mainline kernel configuration
34107 bytes read in 11 ms (3 MiB/s)
478 bytes read in 9 ms (51.8 KiB/s)
Applying kernel provided DT overlay sun8i-h3-cpu-clock-1.2GHz-1.3v.dtbo
374 bytes read in 10 ms (36.1 KiB/s)
Applying kernel provided DT overlay sun8i-h3-i2c0.dtbo
788 bytes read in 10 ms (76.2 KiB/s)
Applying kernel provided DT overlay sun8i-h3-spi-spidev.dtbo
502 bytes read in 11 ms (43.9 KiB/s)
Applying kernel provided DT overlay sun8i-h3-uart1.dtbo
502 bytes read in 11 ms (43.9 KiB/s)
Applying kernel provided DT overlay sun8i-h3-uart2.dtbo
502 bytes read in 10 ms (48.8 KiB/s)
Applying kernel provided DT overlay sun8i-h3-uart3.dtbo
504 bytes read in 10 ms (48.8 KiB/s)
Applying kernel provided DT overlay sun8i-h3-usbhost0.dtbo
504 bytes read in 10 ms (48.8 KiB/s)
Applying kernel provided DT overlay sun8i-h3-usbhost1.dtbo
504 bytes read in 10 ms (48.8 KiB/s)
Applying kernel provided DT overlay sun8i-h3-usbhost2.dtbo
504 bytes read in 10 ms (48.8 KiB/s)
Applying kernel provided DT overlay sun8i-h3-usbhost3.dtbo
4185 bytes read in 10 ms (408.2 KiB/s)
Applying kernel provided DT fixup script (sun8i-h3-fixup.scr)
This is writen in my armbianEnv.txt file:
overlays=i2c0 spi-spidev uart3 usbhost0 usbhost1 usbhost2 usbhost3
param_spidev_spi_bus=0
param_spidev_spi_cs=0
dmesg | grep spi
[ 6.679088] spidev spi0.0: probing from DT
I have try to work with spi_bus=1 and spi_cs=1. I have try to change the spidev.dtbo files
Someone have any idea how to make SPI bus works in Banana Pi M2 Zero?