making the SPI work

Hi all,
Here is my attempt at making the SPI work:

*first I compiled the 2.6.29 kernel with OE, with the following
options in the "make menuconfig" menu:
-Debug support for SPI drivers
-McSPI driver for OMAP24xx/OMAP34xx
-User mode SPI device driver support

*then I made the pin muxing in u-boot by replacing 3 lines in beagle.h
with :
MUXVAL(CP(MMC2CLK), (IEN | PTU | DIS | M1)) /*MCSPI3CLK*/\
MUXVAL(CP(MMC2CMD), (IEN | PTU | DIS | M1)) /*MCSPI3SIMO*/\
MUXVAL(CP(MMC2DAT0), (IEN | PTU | EN | M1)) /*MCSPI3_SOMI*/\
(found in the patch attached to the 1st message in the thread
http://groups.google.com/group/beagleboard/browse_thread/thread/42988f0e14db0f01/df889508056f7cbd?lnk=gst&q=mcspi3#df889508056f7cbd
)

*I compiled u-boot

*I copied the u-boot.bin on my SD card, and made sure to boot from the
u-boot.bin located on the mmc (and not in the nand)

*I then launched the kernel I previously made

In /sys/class, there is a file called spidev. I guess that's good.
However, in /dev/ there are no file containing "spidev", so the spidev
test ( http://www.mjmwired.net/kernel/Documentation/spi/spidev_test.c
) will not work.

Somebody on #beagle told me to try doing 'rm /etc/dev.tar' and reboot,
but that did not change anything.

Can you tell me what I did wrong ? Also, I listed nearly everything I
did, so if there is a step missing (even if it's stupid), I probably
missed it.

Tue, 23 Jun 2009, Jyaif wrote:

Hi all,
Here is my attempt at making the SPI work:

*first I compiled the 2.6.29 kernel with OE, with the following
options in the "make menuconfig" menu:
-Debug support for SPI drivers
-McSPI driver for OMAP24xx/OMAP34xx
-User mode SPI device driver support

In addition to this you will need to give kernel some hints. Take a look at step 3 in this one: http://groups.google.com/group/beagleboard/msg/bc4140655d615b7a

*then I made the pin muxing in u-boot by replacing 3 lines in beagle.h
with :
MUXVAL(CP(MMC2CLK), (IEN | PTU | DIS | M1)) /*MCSPI3CLK*/\
MUXVAL(CP(MMC2CMD), (IEN | PTU | DIS | M1)) /*MCSPI3SIMO*/\
MUXVAL(CP(MMC2DAT0), (IEN | PTU | EN | M1)) /*MCSPI3_SOMI*/\

You should propably add also CS0 or CS1 to this list.