lkml.org 
[lkml]   [2008]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 3/5] of-bindings: Add binding documentation for SPI bussesand devices
On Fri, Jul 04, 2008 at 11:59:07AM +0800, Chen Gong wrote:
> > + - reg - (required) chip select address of device.
> > + - compatible - (required) name of SPI device
> > following generic names
> > + recommended practice
> > + - max-speed - (required) Maximum SPI clocking
> > speed of device in Hz
> > + - spi,cpol - (optional) Device requires inverse
> > clock polarity
> > + - spi,cpha - (optional) Device requires shifted
> > clock phase
> > + - linux,modalias - (optional, Linux specific) Force
> > binding of SPI device
> > + to a particular spi_device driver.
> > Useful for changing
> > + driver binding between spidev and a
> > kernel SPI driver.
> > +
>
> How about adding a "model" property to describe actual devie type.
> Such as using a "sst25vf040b" device with spi-interface, we can
> use model="sst25vf040b" to describe it.

That's what "compatible" is for. First value in the compatible list is
the actual device, followed by devices it is compatible with. In
your particular example, the value would be "sst,sst25vf040b" so that it
follows device tree conventions.

g.


\
 
 \ /
  Last update: 2008-07-04 06:09    [W:2.027 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site