From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: [PATCH] of: added documentation for spi chipselects Date: Tue, 16 Feb 2010 12:00:12 -0700 Message-ID: References: <20100216193957.ccdffee2.eschwab@online.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Ernst Schwab Return-path: In-Reply-To: <20100216193957.ccdffee2.eschwab-BGeptl67XyCzQB+pC5nmwQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: linux-spi.vger.kernel.org On Tue, Feb 16, 2010 at 11:39 AM, Ernst Schwab wrote: > From: Ernst Schwab > > Added devicetree binding documentation for gpios used as chipselect. The > code to evaluate these is already present in spi_mpc8xxx.c. > > Signed-off-by: Ernst Schwab Merged, thanks. > --- > diff -upr a/Documentation/powerpc/dts-bindings/fsl/spi.txt b/Documentatio= n/powerpc/dts-bindings/fsl/spi.txt > --- a/Documentation/powerpc/dts-bindings/fsl/spi.txt > +++ b/Documentation/powerpc/dts-bindings/fsl/spi.txt > @@ -13,6 +13,11 @@ Required properties: > =A0- interrupt-parent : the phandle for the interrupt controller that > =A0 services interrupts for this device. > > +Optional properties: > +- gpios : specifies the gpio pins to be used for chipselects. > + =A0The gpios will be referred to as reg=3D in the SPI child node= s. > + =A0If unspecified, a single SPI device without a chip select can be use= d. > + > =A0Example: > =A0 =A0 =A0 =A0spi@4c0 { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0cell-index =3D <0>; > @@ -21,4 +26,6 @@ Example: > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0interrupts =3D <82 0>; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0interrupt-parent =3D <700>; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0mode =3D "cpu"; > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 gpios =3D <&gpio 18 1 =A0 =A0 // device reg= =3D<0>, low-active > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0&gpio 19 1>; =A0 // devi= ce reg=3D<1>, low-active > =A0 =A0 =A0 =A0}; > > > -- = Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.