Embedded Intel® Core™ Processors
Communicate Intel® Core™ Hardware, Software, Firmware, Graphics Concerns
1194 Discussions

How to configure Linux SPI driver mcp251x?

MSchu26
Beginner
3,403 Views

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
2,176 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.

0 Kudos
MSchu26
Beginner
2,176 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.html https://www.kontron.de/products/boards-and-standard-form-factors/smarc/smarc-evaluation-carrier-2.0.html.

# 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

0 Kudos
CarlosAM_INTEL
Moderator
2,176 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.

0 Kudos
Reply