Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: pl022: Specify 'num-cs' property as required in devicetree binding

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>

authored by

Ezequiel Garcia and committed by
Mark Brown
ea6055c4 b787f68c

+1 -1
+1 -1
Documentation/devicetree/bindings/spi/spi_pl022.txt
··· 4 4 - compatible : "arm,pl022", "arm,primecell" 5 5 - reg : Offset and length of the register set for the device 6 6 - interrupts : Should contain SPI controller interrupt 7 + - num-cs : total number of chipselects 7 8 8 9 Optional properties: 9 - - num-cs : total number of chipselects 10 10 - cs-gpios : should specify GPIOs used for chipselects. 11 11 The gpios will be referred to as reg = <index> in the SPI child nodes. 12 12 If unspecified, a single SPI device without a chip select can be used.