SPI devices and OF

Sascha Hauer s.hauer at pengutronix.de
Thu Apr 5 18:33:37 EST 2007


On Wed, Apr 04, 2007 at 11:34:11AM -0500, Kumar Gala wrote:
> 
> On Apr 4, 2007, at 6:51 AM, Vitaly Wool wrote:
> 
> 
> I don't think this is a good idea for SPI devices.  The effort vs  
> reward isn't worth it.  The simple fact that the 'chip select'  
> mechanism ends up being board specific is too much of a pain to  
> figure out how to deal with in the device tree.  I think its ok if we  
> put information about the controller in the tree, but trying to do  
> the devices as well at this point doesn't seem like its much of a win.

It would be much easier to provide some board specific functions which
registers the spi devices instead of doing it in the device tree.
But there is one problem with that: If there is more than one spi
controller in the tree, how do you differentiate them?


Sascha




More information about the Linuxppc-dev mailing list