I'm trying to activate the second SPI on a Banana Pi.
On script.fex I activated SPI1_para and I changed the name of the pins.
[spi1_para]
spi_used = 1
spi_cs_bitmap = 1
spi_cs0 = portI16<3><default><default><default>
spi_cs1 = portI15<3><default><default><default>
spi_sclk = portI17<3><default><default><default>
spi_mosi = portI18<3><default><default><default>
spi_miso = portI19<3><default><default><default>
After changing this, the system boot, and sun7i_spi is able to identify the two devices.
[ 1548.823011] [spi-inf] Found 2 spi devices in config files
[ 1548.835507] [spi-inf] boards num modalias max_spd_hz bus_num cs mode
[ 1548.847390] [spi-inf] spi_board0 irq gpio not used
[ 1548.859316] [spi-inf] 0 spidev 12000000 0 0 0x3
[ 1548.871343] [spi-inf] spi_board1 irq gpio not used
[ 1548.883260] [spi-inf] 1 spidev 12000000 0 1 0x3
however, installing the modules, only the devices for spidev0 are created.
ll /dev/spi*
crw------- 1 root root 153, 0 Feb 18 14:15 /dev/spidev0.0
crw------- 1 root root 153, 1 Feb 18 14:15 /dev/spidev0.1
Modprobe gives a warning loading the modules:
modprobe -v spidev
modprobe: ERROR: magic check fail: 0 instead of b007f457
insmod /lib/modules/3.4.103/kernel/drivers/spi/spidev.ko
but the module is loaded anyway.
It seems that spidev_test works on both /dev/spidev0.0 and dev/spidev0.1, using the two different chip select, but I have no idea how to get /dev/spidev1
In case it could be useful to identify the problem, this is the output of udevadm monitor