[PATCH 1/3] SPI bus core infrastructure

Dan Malek dan at embeddededge.com
Sun Jul 24 01:11:57 EST 2005


On Jul 23, 2005, at 10:22 AM, Eugene Surovegin wrote:

> This isn't enough.
>
> You must have a way to specify clock frequency, data order (which bit
> goes first, char length.

...  and there is more.  Some devices, even when not selected, still
use the SPI clock for clocking internal logic.  You have to ensure with
such devices you don't ever run the SPI faster than their spec.  This
is application specific, but something that has to be considered when
there are multiple devices on the SPI bus.

Also, many boards use external logic for the assertion of the
device select, which is necessary if there is more than one device
on the bus.  Sometimes it's a multiplexer that routes the controller
SPI select, other times the multiplexer drives the selects directly.
In my review of the patch, I didn't see anything that would provide
for this.

I think the SPI driver is a great idea, I hope we can find a way
to make it work at least as well as the I2C.

Thanks!


	-- Dan




More information about the Linuxppc-embedded mailing list