[beagleboard] Devkit 8000, spi in expansion ports

128 views
Skip to first unread message

prabu

unread,
Apr 29, 2010, 5:09:08 AM4/29/10
to beagl...@googlegroups.com
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 beagl...@googlegroups.com.
To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.

Andruk Tatum

unread,
Apr 29, 2010, 1:22:08 PM4/29/10
to beagl...@googlegroups.com
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.

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:

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

Good luck.
-- Andruk Tatum
board-omap3beagle.c
mux.c
mux.h

prabu

unread,
May 4, 2010, 8:43:18 AM5/4/10
to beagl...@googlegroups.com, andruk...@gmail.com
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: http://elinux.org/BeagleBoardUbuntu
> Get the kernel from
> here: https://code.launchpad.net/~beagleboard-kernel/+junk/2.6-stable
> <https://code.launchpad.net/%7Ebeagleboard-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 <http://elinux.org> that will
> help you.
>
> Good luck.
> -- Andruk Tatum
>
> On Thu, Apr 29, 2010 at 3:09 AM, prabu <prabu...@gmail.com
> <mailto:prabu...@gmail.com>> wrote:
>
> 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 beagl...@googlegroups.com
> <mailto:beagl...@googlegroups.com>.
> To unsubscribe from this group, send email to
> beagleboard...@googlegroups.com
> <mailto:beagleboard%2Bunsu...@googlegroups.com>.

Thomas Weber

unread,
May 4, 2010, 11:57:59 AM5/4/10
to beagl...@googlegroups.com, prabu, andruk...@gmail.com
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

prabu

unread,
May 10, 2010, 6:41:55 AM5/10/10
to Thomas Weber, beagl...@googlegroups.com
Thomas Weber wrote:
> On 05/06/10 08:31, prabu 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
> 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

--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
Reply all
Reply to author
Forward
0 new messages