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*
./bus/spi
./bus/spi/drivers/spidev
./class/spi_master
./class/spi_master/spi1
./class/spi_master/spi2
./class/spi_master/spi3
./class/spi_master/spi4
./class/spidev
./devices/platform/omap2_mcspi.1/spi_master
./devices/platform/omap2_mcspi.1/spi_master/spi1
./devices/platform/omap2_mcspi.2/spi_master
./devices/platform/omap2_mcspi.2/spi_master/spi2
./devices/platform/omap2_mcspi.3/spi_master
./devices/platform/omap2_mcspi.3/spi_master/spi3
./devices/platform/omap2_mcspi.4/spi_master
./devices/platform/omap2_mcspi.4/spi_master/spi4
./module/spidev

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,
Jim

Hi Jim,

You could try the following:
  http://elinux.org/BeagleBoard/SPI

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:

Regards,
Jim

Got some good tricks from here: http://elinux.org/BeagleBoard/SPI

Hello

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.