Re: [PATCH v2 3/5] of-bindings: Add binding documentation for SPIbussesand devices

From: Grant Likely
Date: Fri Jul 04 2008 - 00:06:34 EST


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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/