V
V
Vasily Kononov2015-10-04 14:35:43
linux
Vasily Kononov, 2015-10-04 14:35:43

How to add SPI interface in Linux for AM335x (BeagleBone)?

Good day!
When assembling the core for a custom board based on the AM335x core (BeagleBone), it became necessary to use the SPI bus. How to connect the bus to work with an external microcontroller?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
spot62, 2015-10-05
@spot62

Fix dts file. Look here for example:
stackoverflow.com/questions/21276090/beaglebone-bl...
hipstercircuits.com/enable-spi-with-device-tree-on...

V
Vasily Kononov, 2015-10-06
@1kvi1

In total, to add an SPI port, you need to do the following:
- fix DTS files in one form or another according to the example https://github.com/osuosl/fedpkg-kernel/blob/maste... or any other;
- be sure to enable Device drivers->SPI support->User mode SPI driver support - nowhere is it written that you need to enable this one in addition to McSPI driver for OMAP;
- SPI0 - referred to as spidev1.
In general, it works fine after these changes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question