SPI device on Raspberry PI

Bernd Walter ticso at cicely7.cicely.de
Mon Oct 13 21:50:44 UTC 2014


On Wed, Oct 30, 2013 at 05:22:26PM +0700, Alie Tan wrote:
> Its already commited to the HEAD
> http://svnweb.freebsd.org/base?view=revision&revision=257062

I just need SPI for a small test.
Hoped that the BBB has SPI, but it seems we have no driver yet, so I
will use a PI (currently building current).
In the meantime I've read the sourcecode to get an idea on how to use
it from userland.
What puzzles me is the clock rate, which is set by SPI globaly.
Since I never used SPI in FreeBSD I wonder if this is just on the
PI, if this always done that way, or if I understood something wrong?
Usually I would expect either globaly atomic with transfer setup, or
per CS setting, because it is not untypical to mix different speed SPI
slaves.

-- 
B.Walter <bernd at bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.


More information about the freebsd-arm mailing list