oLinuxino MAXI mcp2515?

Started by lakshadvio, April 27, 2020, 02:20:07 pm

Previous topic - Next topic


Hello All

I've been playing around with the olinuxino maxi board and have been trying for a few days now to get the mcp2515 to play nice with my board.  I learned about the device tree as I am a bit new at modifying device/board level kernel paramters..  I understand the concept but still seem to be missing some key low level paramters.

Anyways, here goes...

I have the following electrical connections:
1) CS tied to UEXT_CS
2) SCK tied to SSP2_SCK
3) SI tied to SSP2_MOSI
4) SO tied to PIN9/LCD_D08/SSP2_MISO
5) INT tied to AUART1_TXD
I am guessing that I have the wrong gpio setting or something like that, or maybe I do not have a complete dts definition for the mcp2515 part to work... any guidance would be greatly appreciated!



it's better to attach the complete dts file instead of a single part. The "oscillator-frequency" property is wrong according to devicetree binding. You will need to define a clock node which specify the oscillator-frequency and add reference in your can0 node:


compatible = "fixed-clock";
clock-frequency = <16000000>;
#clock-cells = <0>;

Btw you didn't say nothing about how about the power is connected to the mcp2515 or a kernel version.