Fixed can sequence

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Fixed can sequence

648件の閲覧回数
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 返答(返信)

633件の閲覧回数
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 件の賞賛
返信

626件の閲覧回数
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 件の賞賛
返信

583件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信

578件の閲覧回数
qwerqq
Contributor I

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

0 件の賞賛
返信

579件の閲覧回数
qwerqq
Contributor I

yes。

0 件の賞賛
返信

571件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信