Fixed can sequence

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fixed can sequence

887 Views
qwerqq
Contributor I

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!

qwerqq_0-1701048246947.jpeg

 

 

0 Kudos
Reply
6 Replies

872 Views
jimmychan
NXP TechSupport
NXP TechSupport

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?

0 Kudos
Reply

865 Views
qwerqq
Contributor I

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:Image_20231127115311.png

0 Kudos
Reply

822 Views
jimmychan
NXP TechSupport
NXP TechSupport

Do you mean the spi->can number will change every time you boot up?

0 Kudos
Reply

817 Views
qwerqq
Contributor I

Or do you have a way to convert spi to can? I can try it here.

0 Kudos
Reply

818 Views
qwerqq
Contributor I

yes。

0 Kudos
Reply

810 Views
jimmychan
NXP TechSupport
NXP TechSupport
0 Kudos
Reply