Answer the question
In order to leave comments, you need to log in
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
Fix dts file. Look here for example:
stackoverflow.com/questions/21276090/beaglebone-bl...
hipstercircuits.com/enable-spi-with-device-tree-on...
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 questionAsk a Question
731 491 924 answers to any question