]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
spi: pl022: Specify 'num-cs' property as required in devicetree binding
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Mon, 11 May 2015 15:20:18 +0000 (12:20 -0300)
committerMark Brown <broonie@kernel.org>
Mon, 11 May 2015 17:22:44 +0000 (18:22 +0100)
Since commit 39a6ac11df65 ("spi/pl022: Devicetree support w/o platform data")
the 'num-cs' parameter cannot be passed through platform data when probing
with devicetree. Instead, it's a required devicetree property.

Fix the binding documentation so the property is properly specified.

Fixes: 39a6ac11df65 ("spi/pl022: Devicetree support w/o platform data")
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/spi/spi_pl022.txt

index 22ed6797216d70e3ddcf6f30e40a07d7ea559f1d..4d1673ca8cf802d4b9e13fb53538baa3d5372a48 100644 (file)
@@ -4,9 +4,9 @@ Required properties:
 - compatible : "arm,pl022", "arm,primecell"
 - reg : Offset and length of the register set for the device
 - interrupts : Should contain SPI controller interrupt
+- num-cs : total number of chipselects
 
 Optional properties:
-- num-cs : total number of chipselects
 - cs-gpios : should specify GPIOs used for chipselects.
   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.