Half-duplex SPI using single data wire

150 views
Skip to first unread message

Jacek Radzikowski

unread,
Jul 16, 2013, 2:52:23 AM7/16/13
to beagleboard
Hello,

I want to connect to my beaglebone an LCD display which uses a 3-wire
SPI interface: communication in both directions (to and from device)
is implemented using only CS, SCK and a single data wire. The data
wire is used in half-duplex mode, with direction switched depending
whether write or read operation is expected. The SRM says that the SPI
interface in the processor supports this mode, but how can I control
the direction of the data line from user-space program? Since I can't
control pinmuxing, changing pin direction is not possible. Will it be
enough just to flip the bit in OE register?

Thx,
j.


--
Given a choice between two theories, take the one which is funnier

Yiling Cao

unread,
Jul 16, 2013, 7:04:43 AM7/16/13
to beagl...@googlegroups.com
plz follow this guide http://communistcode.co.uk/blog/blogPost.php?blogPostID=1


I have made various devices working.


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Jacek Radzikowski

unread,
Jul 16, 2013, 9:11:47 AM7/16/13
to beagl...@googlegroups.com
Thanks. But this tutorial only shows how to enable SPI in 3.2 kernel.
I have 4-wire SPI working, I need to configure it in 3-wire mode.

j.

Jacek Radzikowski

unread,
Jul 16, 2013, 9:09:26 PM7/16/13
to beagl...@googlegroups.com
I found in device tree docs SPI property "spi-3wire" which does
exactly what I need, but I can't find in spi-omap2-mcspi.c any
references to this mode. Has anybody tried to use SPI in 3-wire mode?
Did it work?

thx,
j.

Ran Shalit

unread,
Jul 12, 2016, 10:00:10 AM7/12/16
to BeagleBoard
Hi Jacek,

How did you resolve the 3-wire issue with beagle ?
I don't se ethat the driver supports 3-wire.

Regards,
Ran
Reply all
Reply to author
Forward
0 new messages