I have the working spi canbus shield. It uses kernel driver and makes the can0 device in system.
Also I tried spi nrf radio module and its works. But right now works only one of them due to having some configuration in dts file. The can shield needs its his own section in dts file. Radio module needs just /dev/spidev0 and spidev section in dts file. If I turn on the can section the spidev is disappered. The canbus works. If I commented the can bus section the spidev is up and radio module works.
Thus, they except each other. Here is dmesg output with can section turned on:
Code: Select all
[ 6.436286] spicc spicc: master is unqueued, this is deprecated [ 6.454236] CAN device driver interface [ 6.464934] spi spi0.0: spicc_setup : spi->bits_per_word = 8, spi->max_spped_hz = 10000000, spi->chip_select = 0, spi->mode = 0x00 [ 6.489488] mcp251x spi0.0: probed [ 6.496368] systemd: Starting Remount Root and Kernel File Systems... [ 6.507630] spicc spicc: chipselect 0 already in use [ 6.510266] spi_master spi0: spi_device register error /spi@c1108d80/spidev@0 [ 6.533193] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro [ 6.543932] spi spi0.1: spicc_setup : spi->bits_per_word = 8, spi->max_spped_hz = 1000000, spi->chip_select = 1, spi->mode = 0x00 [ 6.555148] reg:2620,clearmask=10001,setmask=10001
I would be very appreciate of any hints =)