You say you have MCP2518FD running with the overlay 'mcp251xfd' on SPI0, then you should have had a look at the README in /boot/firmware/overlays what it tells you on that overlay:As you can see it has an override for the SPI interface no.
Sorry never tested that myself as I prefer to run multiple devices from the same SPI on different CS-line, but then it should be possible for you to enable it on SPI-1 (using CS0 on SPI1-0) by:
Code:
Name: mcp251xfdInfo: Configures the MCP251XFD CAN controller family For devices on spi1 or spi2, the interfaces should be enabled with one of the spi1-1/2/3cs and/or spi2-1/2/3cs overlays.Load: dtoverlay=mcp251xfd,<param>=<val>Params: spi<n>-<m> Configure device at spi<n>, cs<m> (boolean, required) oscillator Clock frequency for the CAN controller (Hz) speed Maximum SPI frequence (Hz) interrupt GPIO for interrupt signal rx_interrupt GPIO for RX interrupt signal (nINT1) (optional) xceiver_enable GPIO for CAN transceiver enable (optional) xceiver_active_high specifiy if CAN transceiver enable pin is active high (optional, default: active low)
Sorry never tested that myself as I prefer to run multiple devices from the same SPI on different CS-line, but then it should be possible for you to enable it on SPI-1 (using CS0 on SPI1-0) by:
Code:
dtoverlay=spi1-1csdtoverlay=mcp251xfddtparam=spi1-0,<your other parameters, make sure to use a different interrupt GPIO and not the same as for SPI-0>
Statistics: Posted by aBUGSworstnightmare — Thu Dec 12, 2024 1:22 pm