imx8m Yocto Zeus:Cannot initialize MCP2517. Wrong wiring?

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

imx8m Yocto Zeus:Cannot initialize MCP2517. Wrong wiring?

1,765 Views
antonyabeepraka
Contributor II

Hi,

We are working on MCP2517FD CAN interface bring up on our imx8m custom board. We are using yocto Zeus kernel 5.4.3

We have two ecspi in our custom board. This CAN controller is connected in ecspi2 of our custom board. We have done required devicetree changes for ecspi2 and can0 interface. We are facing probe failed, no device issue.

mcp2517fd spi1.0: Cannot initialize MCP2517. Wrong wiring?

mcp2517fd spi1.0: Probe failed, err=19

When we debug further found that the Oscillator clock is not ready. We tried to increase the oscillator frequency to 40000000 from 20000000 and delay from 3ms to 10ms. But no impact on this. SPI CAN read on clock register to check clock is ready or not is giving value zero. Because of this mcp2517fd_hw_probe gives ENODEV error.

The same changes is working with imx8m yocto warrior kernel. Issues is with Zeus kernel-5.4.3 What could be the problem here ?

Also we are finding another error log regarding spi as below:

spi_imx 30820000.spi: dma setup error -19, use pio

spi_imx 30820000.spi: probed

spi_imx 30830000.spi: dma setup error -19, use pio

spi_imx 30830000.spi: probed

Will this impact probing? Please provide your inputs to resolve probing NO device issue.

Thanks,

Antony

Labels (1)
0 Kudos
Reply
3 Replies

1,641 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Antony,

The error spi_imx 30820000.spi: dma setup error -19, use pio
spi_imx 30820000.spi: probed

means that you have connected nothing on spi, so please check your spi connection, or you have bad MPC5217.

Regards

0 Kudos
Reply

1,641 Views
antonyabeepraka
Contributor II

But the same hardware doesn't give dma setup error -19 in yocto sumo kernel 4.14.78

Issue is only with yocto zeus kernel 5.4.3. What kernel changes I have to look for ?

Is this the reason for the below error too ?

mcp2517fd spi1.0: Cannot initialize MCP2517. Wrong wiring?

mcp2517fd spi1.0: Probe failed, err=19

Thanks,

Antony

0 Kudos
Reply

1,641 Views
eric_lee1
Contributor II

Hello Anthony,

I have exactly the same issues as you met. The same hardware works well on Yocto Warrior 4.14.98. I got the same error messages when working on Yocto Zeus 5.4.24. Have you workaround this issue yet?

-Eric

0 Kudos
Reply