Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => iMX233 => Topic started by: lakshadvio on April 27, 2020, 02:20:07 pm

Title: oLinuxino MAXI mcp2515?
Post by: lakshadvio on April 27, 2020, 02:20:07 pm
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!

Thanks!
Title: Re: oLinuxino MAXI mcp2515?
Post by: legend1 on July 12, 2020, 02:59:13 pm
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:

CodeSelect

mcp_xtal:mcp_xtal{
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.