On 10/31/20 4:14 PM, Patrick Menschel wrote: [...] > The waveshare overlay is strange in one point. It uses Pin 26 (instead > of 18) for Chip selection but that is no chip select pin. This can work > if the pin is output and luckily pulls the CE line in the right direction. > > https://gist.github.com/pdp7/784d0ba8b9648d20ab055747ec945225#file-2xmcp2517fd-overlay-dts-L40 > > https://pinout.xyz/pinout/pin37_gpio26# According to the schematics: https://www.waveshare.com/w/upload/e/e2/2-CH-CAN-FD-HAT-Schematic.pdf the waveshare uses per default the CS0 and CS1 of SPI0. But you can configure via JPAD3 it to P25, which is GPIO26. 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 |