[beagleboard] Devkit 8000, spi in expansion ports

HI,

I am new to Devkit 8000, i am developing an application using spi,
i tired to access spi pin in expansion slots, i did not find the devices in
/dev/spi1.0 or /dev/spi2.0 or /dev/spi4.0 in linux, how can i use it. what can be done to access the spi in userspace in linux. Do any one help in this or where could i find the solution to solve this.

Regards,
Prabu.J

Did you pinmux the SPI ports in either U-boot or the kernel? Here are the relevant files that must be changed to pinmux McSPI4 (amongst UART2 and a bunch of GPIOs) out to the expansion header.

Follow this page: http://elinux.org/BeagleBoardUbuntu
Get the kernel from here: https://code.launchpad.net/~beagleboard-kernel/+junk/2.6-stable
And change the files:
KERNEL/arch/arm/mach-omap2/board-omap3beagle.c
KERNEL/arch/arm/mach-omap2/mux.c
KERNEL/arch/arm/plat-omap/include/plat/mux.h
with the files (attached).
If you want a slightly different configuration, use the directions here:
http://www.hy-research.com/omap3_pinmux.html

There are also a few pages on elinux.org that will help you.

Good luck.
– Andruk Tatum

board-omap3beagle.c (14.5 KB)

mux.c (27.3 KB)

mux.h (18.8 KB)

HI

thank u for your reply, i got the spi3.0, spi3.1, spi4.0, but in /sys/bus/spi/devices/ folder,
still i could can not get the spi in /dev/ folder, i did the configuration in board-omap3devkit8000.c, mux.c, mux.h but could not get it.
what could be done to develop a userspace spi application for interfacing with a adc in devkit8000 board.

Regards,
Prabu.J

Andruk Tatum wrote:

Hi,
can you please try

git clone git://gitorious.org/devkit8000/linux-omap-devkit8000.git

I hope I configured the spi correctly in mux_init in board-devkit8000.c

Did you try CONFIG_SPI_SPIDEV?

Best regard,
Thomas

Thomas Weber wrote:

  

HI

thank you, i enable the CONFIG_SPI_SPIDEV and i got the spidev in dev
folder,
i enabled CONFIG_OMAP_MUX but have some problems while loading the kernel.
i need to check it

regards
Prabu.J

Thomas Weber wrote:
    

HI

thank u for your reply, i got the spi3.0, spi3.1, spi4.0, but in
/sys/bus/spi/devices/ folder,
still i could can not get the spi in /dev/ folder, i did the
configuration in board-omap3devkit8000.c, mux.c, mux.h but could not get
it.
what could be done to develop a userspace spi application for
interfacing with a adc in devkit8000 board.

Regards,
Prabu.J

Andruk Tatum wrote:
   

Did you pinmux the SPI ports in either U-boot or the kernel? Here are
the relevant files that must be changed to pinmux McSPI4 (amongst
UART2 and a bunch of GPIOs) out to the expansion header.

Follow this page: BeagleBoardUbuntu - eLinux.org
Get the kernel from here:
https://code.launchpad.net/~beagleboard-kernel/+junk/2.6-stable
<https://code.launchpad.net/~beagleboard-kernel/+junk/2.6-stable&gt;
And change the files:
KERNEL/arch/arm/mach-omap2/board-omap3beagle.c
KERNEL/arch/arm/mach-omap2/mux.c
KERNEL/arch/arm/plat-omap/include/plat/mux.h
with the files (attached).
If you want a slightly different configuration, use the directions
here:
http://www.hy-research.com/omap3_pinmux.html

There are also a few pages on elinux.org <http://elinux.org> that will
help you.

Good luck.
-- Andruk Tatum

    HI,

    I am new to Devkit 8000, i am developing an application using spi,
    i tired to access spi pin in expansion slots, i did not find the
    devices in
    /dev/spi1.0 or /dev/spi2.0 or /dev/spi4.0 in linux, how can i use
    it. what can be done to access the spi in userspace in linux. Do
    any one help in this or where could i find the solution to solve
this.

    Regards,
    Prabu.J

    -- You received this message because you are subscribed to the
Google
    Groups "Beagle Board" group.
    To post to this group, send email to beagleboard@googlegroups.com
    <mailto:beagleboard@googlegroups.com>.
    To unsubscribe from this group, send email to
    beagleboard+unsubscribe@googlegroups.com
    <mailto:beagleboard%2Bunsubscribe@googlegroups.com>.
    For more options, visit this group at
    http://groups.google.com/group/beagleboard?hl=en.

--
You received this message because you are subscribed to the Google
Groups "Beagle Board" group.
To post to this group, send email to beagleboard@googlegroups.com.
To unsubscribe from this group, send email to
beagleboard+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/beagleboard?hl=en.
      

Hi,
can you please try

git clone git://gitorious.org/devkit8000/linux-omap-devkit8000.git

I hope I configured the spi correctly in mux_init in board-devkit8000.c

Did you try CONFIG_SPI_SPIDEV?

Best regard,
Thomas

Hi Prabu,

i am working at the moment with spidev4.0. I used spidev_test from
Documentation folder.

Thomas

Hi Thomas,

I have got the output for the spidev1.0/spidev1.3 in Devkit8000 BOARD in /Dev/ folder , i could not get the spidev for spidev3.0/ spidev3.1/ spidev4.0.
i also verified that spidev1.0 and spidev1.3 can be accessed without pin muxing as the use the MODE0,
whereas spidev3.0, spidev3.1 and spidev4.0 are in MODE1, this that i need to configure any additional setting in the configurations file to accesss these spi pins.
i checked for spidev1.0 and spidev1.3 by using the spidev_test.c file i could receive the data by connecting SIMO and SOMI pins, but not for the spi3 and spi4.
what could be done for this problem.

Thank you,

Regards,
Prabu.J