spi: dt-bindings: Add num-cs property for mpfs-spi
authorPrajna Rajendra Kumar <prajna.rajendrakumar@microchip.com>
Tue, 14 May 2024 10:45:06 +0000 (11:45 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 00:33:14 +0000 (01:33 +0100)
commit3b4c0fbc19930af0904fb5995ed4e7b6ffe0b237
tree1678ed837f50ab4db163ed34320377f41c52fb5b
parentf44b3730b038363475a3f84bee2038d8b6448ed8
spi: dt-bindings: Add num-cs property for mpfs-spi

The PolarFire SoC SPI "hard" controller supports eight CS lines, out of
which only one CS line is physically wired. The default value of
'num-cs' was never set and it did not didn't impose a maximum value.

To reflect this hardware limitation in the device tree, the binding
enforces that the 'num-cs' property cannot exceed 1 unless additional
CS lines are explicitly defined using GPIO descriptors.

Fixes: 2da187304e55 ("spi: add bindings for microchip mpfs spi")
Signed-off-by: Prajna Rajendra Kumar <prajna.rajendrakumar@microchip.com>
Link: https://msgid.link/r/20240514104508.938448-2-prajna.rajendrakumar@microchip.com
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml