On 10/27/20 7:35 AM, Drew Fustini wrote: >> 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. Have you actually tested the waveshare driver and overlay with your setup? If you have a scope or logic analyser attach it to SPI bus (MISO, MOSI, Clock, Chipselect and the IRQ Line of the Chip) and check what's going on there. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: OpenPGP digital signature