Fixed can sequence

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Fixed can sequence

1,825 次查看
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 项奖励
回复
6 回复数

1,810 次查看
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 项奖励
回复

1,803 次查看
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 项奖励
回复

1,760 次查看
jimmychan
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复

1,755 次查看
qwerqq
Contributor I

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

0 项奖励
回复

1,756 次查看
qwerqq
Contributor I

yes。

0 项奖励
回复

1,748 次查看
jimmychan
NXP TechSupport
NXP TechSupport
0 项奖励
回复