Community
cancel
Showing results for 
Search instead for 
Did you mean: 
MSchu26
Beginner
1,489 Views

How to configure Linux SPI driver mcp251x?

Hello,

I use an Intel Atom processor E3930 with CAN controller MCP2515 with SPI interface. In the Linux kernel there is a driver "drivers/net/can/spi/mcp251x.c".

I am only famiiliar with Linux device tree. But there is no device tree on the Intel Atom platform. Hence my question:

How to configure the mcp251x Linux driver on an Intel Atom platform?

Every hint is gratefully accepted.

With kind regards

Mario

0 Kudos
3 Replies
CarlosAM_INTEL
Moderator
262 Views

Hello, Mario1:

Thank you for contacting Intel Embedded Community.

Based on your previous communication, could you please clarify if the project related to your question has been manufactured by you or by a third-party company? In case that it is a third-party device, could you please give us the part number, model, and where to find its documentation?

Thanks in advance for your cooperation.

Best regards,

Carlos_A.

MSchu26
Beginner
262 Views

Thanks for the quick response.

I use the SMARC-sXAL (E2) SMARC 2.0 module https://www.kontron.de/products/boards-and-standard-form-factors/smarc/smarc-sxal-e2-.html https://www.kontron.de/products/boards-and-standard-form-factors/smarc/smarc-sxal-e2-.html with the SMARC Evaluation Carrier 2.0 evaluation system https://www.kontron.de/products/boards-and-standard-form-factors/smarc/smarc-evaluation-carrier-2.0.... https://www.kontron.de/products/boards-and-standard-form-factors/smarc/smarc-evaluation-carrier-2.0.....

# cat /proc/cpuinfo | grep "model name" | head -1

model name : Intel(R) Atom(TM) Processor E3930 @ 1.30GHz

Do you need more information about the hardware?

The operating system is Linux with kernel 4.12.14.

The mcp251x driver can be loaded

# modprobe mcp251x

but nothing happens.

How can I tell the mcp251x driver which SPI pins and chip select pin to use?

Regards,

Mario

CarlosAM_INTEL
Moderator
262 Views

Hello, Mario1:

Thanks for your reply.

We suggest you as a reference review the information stated at the following website, please address your consultations related to the cited driver to the emails listed there:

https://elixir.bootlin.com/linux/v3.6/source/drivers/net/can/mcp251x.c https://elixir.bootlin.com/linux/v3.6/source/drivers/net/can/mcp251x.c

We hope that this information may help you.

Best regards,

Carlos_A.