[PATCH V2] of: added documentation for spi chipselects
Wolfram Sang
w.sang at pengutronix.de
Thu Feb 18 00:41:38 EST 2010
On Wed, Feb 17, 2010 at 01:23:22PM +0100, Ernst Schwab wrote:
> From: Ernst Schwab <eschwab at online.de>
>
> 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 <eschwab at online.de>
Hmm, as Grant merged the original patch already, it might be necessary to
convert this into a follow-up patch. He will surely tell you. For both
versions, you can add my
Reviewed-by: Wolfram Sang <w.sang at pengutronix.de>
...
> ---
> diff -upr a/Documentation/powerpc/dts-bindings/fsl/spi.txt b/Documentation/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:
> - interrupt-parent : the phandle for the interrupt controller that
> services interrupts for this device.
>
> +Optional properties:
> +- gpios : specifies the gpio pins to be used for chipselects.
...and perhaps remove the trailing white space here.
> + The gpios will be referred to as reg = <index> in the SPI child nodes.
> + If unspecified, a single SPI device without a chip select can be used.
> +
> Example:
> spi at 4c0 {
> cell-index = <0>;
> @@ -21,4 +26,6 @@ Example:
> interrupts = <82 0>;
> interrupt-parent = <700>;
> mode = "cpu";
> + gpios = <&gpio 18 1 // device reg = <0>
> + &gpio 19 1>; // device reg = <1>
> };
>
>
>
>
> _______________________________________________
> devicetree-discuss mailing list
> devicetree-discuss at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/devicetree-discuss
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20100217/2b195fc7/attachment.pgp>
More information about the devicetree-discuss
mailing list