BeagleBoard-xM SPI?

Hello everybody,

I'm trying to do something that I figured would be simple - use spidev to interface a few simple SPI devices on the BeagleBoard-xM. All of the googling I've done has yielded a lot of bits of information, but nothing "concrete" listing the typical steps to getting spidev working on the BeagleBoard-xM.

Can anybody provide some detailed steps that worked for you?

Looking at my BeagleBoard after bootup into Angstrom I have the following entries in /sys for SPI:

root@beagleboard:/sys# find ./* -name spi*

Is this an indication that SPI is hooked up to the driver and if so, what mknod or mdev command and additional steps do I follow so that I can open a /dev file and start communicating over SPI?

I have the BeagleBoard-xM Trainer board from tincantools that provides the SPI level shifted etc if that matters.

Thanks everybody,

Hi Jim,

You could try the following:

I have done something very similar and used SPI successfully with the
Beagle (xM).

What it boils down to is needing to add a few entries to the board definition
file in the kernel; this will create a few device nodes like /dev/spidev0.1
(first SPI controller, first chip select) etc. depending on what you defined.

Bye for now,

Thank you Laurence.. I will check that page out and report back. :slight_smile:


Got some good tricks from here:


I hope you have successfully done this.

I'm about to start on the XM's SPI as well.
Can you please provide some updated guidelines.
I've seen the old posts. But uboot,pin mux, kernels patches etc. They
change over time.

The image i'm using is from Narcissus. I check marked all kernel
modules. If that helps.