We have changed the scheme and no longer use this pin. I have another question. Now I use spi to transfer all the way to can, but now the device node of can will change every time I start, is there any way to fix the device node? Thank you!
Could you tell me which product are you using?
Which version of BSP are you using?
What you mean the "the device node of can will change every time I start"? Could you show me what is it?
I am using imx8mp and I am using version 5.4.70。
My demand is three can, there were two on the development board, now I use spi to can method, add a new can, I use the chip is 2515, the driver kernel source code contains 2515 driver, but spi to can chip out of the can node number is not fixed。
Here's an example:
SPI to CAN corresponding software node: can1;
Software node of CAN1: can0;
CAN2 Software node: can2.
But if I start here, it will become the following situation:
SPI to CAN corresponding software node: can2;
Software node of CAN1: can0;
Software node of CAN2: can1.
Therefore, I would like to ask if there is any way to make the node number from spi to can fixed as can2.
My dts configuration is as follows:
Do you mean the spi->can number will change every time you boot up?
Or do you have a way to convert spi to can? I can try it here.
yes。