> -----Ursprüngliche Nachricht----- > Von: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> > Gesendet: Sonntag, 6. Dezember 2020 20:35 > An: Sven Schuchmann <schuchmann@xxxxxxxxxxxxxxxxx>; linux-can@xxxxxxxxxxxxxxx > Betreff: Re: mcp251xfd No Oscillator (clock) defined > > On 12/6/20 8:26 PM, Kurt Van Dijck wrote: > > On Sun, 06 Dec 2020 11:32:39 +0100, Marc Kleine-Budde wrote: > >> On 12/6/20 11:18 AM, Sven Schuchmann wrote: > >>> > >>> $ sudo dtoverlay spi0-1cs cs0_pin=24 > >>> $ sudo dtoverlay mcp251xfd spi0-1 oscillator=40000000 speed=20000000 interrupt=18 > >> > >> Better add the overlays statically in the bootloader via config.txt: > > > > why is it better in the bootloader than from linux? > > > > I personnaly favor loading overlays from linux, where there are way more > > possibilities to determing which overlays to load. > > I only tested to setup the overlays from config.txt > > As it's now working in general, Sven can test from setup under Linux. if I try to load under linux with: sudo dtoverlay mcp251xfd spi0-0 interrupt=25 I get: [ 36.154548] CAN device driver interface [ 36.158644] mcp251xfd spi0.0: No Oscillator (clock) defined. Sven -- Sven Schuchmann Schleißheimer Soft- und Hardwareentwicklung GmbH Am Kalkofen 10 61206 Nieder-Wöllstadt GERMANY Phone: +49 6034 9148 711 Fax: +49 6034 9148 91 Email: schuchmann@xxxxxxxxxxxxxxxxx