Date: Mon, 13 Oct 2014 23:50:12 +0200 From: Bernd Walter <ticso@cicely7.cicely.de> To: Alie Tan <alie@afflemedialab.com> Cc: "freebsd-arm@FreeBSD.org" <freebsd-arm@freebsd.org> Subject: Re: SPI device on Raspberry PI Message-ID: <20141013215012.GH38905@cicely7.cicely.de> In-Reply-To: <CANuCnH8kWMh40W0NUqMVcuHnJA=-XJ6%2BTSCPn-JjGSndk_yW%2Bg@mail.gmail.com> References: <935B7003-F750-42E7-9100-C27028B6A111@gmail.com> <CAB=2f8x=T7u_mgAUDbDx2z3t%2BoW6w2oyKLutaFUBrxVT6NQQ3g@mail.gmail.com> <E527CB90-2206-41B8-B9F4-3FA0FB17A24D@gmail.com> <CANuCnH8kWMh40W0NUqMVcuHnJA=-XJ6%2BTSCPn-JjGSndk_yW%2Bg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@bwct.de> http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141013215012.GH38905>