linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Two thoughts about SPI chip-selects in the DTS
@ 2009-02-26 12:13 Henk Stegeman
  2009-02-27 12:57 ` Anton Vorontsov
  0 siblings, 1 reply; 2+ messages in thread
From: Henk Stegeman @ 2009-02-26 12:13 UTC (permalink / raw)
  To: linuxppc-dev

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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Two thoughts about SPI chip-selects in the DTS
  2009-02-26 12:13 Two thoughts about SPI chip-selects in the DTS Henk Stegeman
@ 2009-02-27 12:57 ` Anton Vorontsov
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Vorontsov @ 2009-02-27 12:57 UTC (permalink / raw)
  To: Henk Stegeman; +Cc: linuxppc-dev

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@gmail.com
irc://irc.freenode.net/bd2

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-27 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-26 12:13 Two thoughts about SPI chip-selects in the DTS Henk Stegeman
2009-02-27 12:57 ` Anton Vorontsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).