AnsweredAssumed Answered

imx8m Yocto Zeus:Cannot initialize MCP2517. Wrong wiring?

Question asked by Antony Abee Prakash on Jun 29, 2020
Latest reply on Jun 29, 2020 by Antony Abee Prakash

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

Outcomes