Re: mcp251xfd on RPi 5.4 downstream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 26, 2020 at 9:22 PM Drew Fustini <drew@xxxxxxxxxxxxxxx> wrote:
>
> Thank you the feedback.
>
> I think it may be any issue with spi interface and/or chip select config.
>
> [    6.812079] DEBUG mcp251xfd mcp251xfd_probe(): ENTER
> [    6.812174] mcp251xfd spi0.0: DEBUG mcp251xfd mcp251xfd_probe():
> devm_clk_get()
> [    6.812208] mcp251xfd spi0.0: DEBUG mcp251xfd mcp251xfd_probe():
> feq=0x2625a00
> [    6.850106] mcp251xfd spi0.0 (unnamed net_device) (uninitialized):
> Failed to detect MCP251xFD (osc=0x00000000).
>
> This proves that the driver is getting the 40 MHz from the device tree
> properties.  The board does have a 40 MHz osc.
>
> It is the Waveshare CANFD Hat [1].  They have their own tarball for
> download [2] with a mcp25xxfd driver that is copyright 2019 by Martin
> Sperl <kernel@xxxxxxxxxxxxxxxx>.  I'm looking at that to see why it
> works and the newer, proper driver does not.
>
> Thanks,
> Drew
>
> [1] https://www.waveshare.com/wiki/2-CH_CAN_FD_HAT
> [2] https://www.waveshare.com/wiki/File:2-CH-CAN-FD-HAT-Demo.7z

This is the overlay that the Waveshare download is using:
https://gist.github.com/pdp7/784d0ba8b9648d20ab055747ec945225

It is different but I'm having trouble understanding why it works and
the new overlay for the newer driver does not.

-Drew



[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux