Two thoughts about SPI chip-selects in the DTS

Anton Vorontsov avorontsov at ru.mvista.com
Fri Feb 27 23:57:42 EST 2009


On Thu, Feb 26, 2009 at 01:13:34PM +0100, Henk Stegeman wrote:
> As far as I understand the DTS bindings now support an SPI master controller to
> - use the chip-selects controlled directly by the SPI master controller hardware
> or
> - to use GPIO's trough gpiolib as chip selects
> but not a combination of both, am I right?
> 
> Now every SPI driver needs to be adapted to provide support for using
> gpios as chip-selects, Wouldn't it be possible to let the
> divers/of/of_spi take care of all the work required to use gpios as
> chip-selects?

It's certainly possible. Though, I'm not sure if it should be of_spi's
matter. Maybe some generic "SPI GPIO chip-selects" framework, and then
OF bindings for it...

Thanks,

-- 
Anton Vorontsov
email: cbouatmailru at gmail.com
irc://irc.freenode.net/bd2



More information about the Linuxppc-dev mailing list