Skip to content

Commit bc9ab1b

Browse files
hanxu-nxpbroonie
authored andcommitted
spi: spi-fsl-lpspi: add num-cs binding for lpspi
Add num-cs property to support multiple cs for lpspi. This property is optional. Signed-off-by: Han Xu <han.xu@nxp.com> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20221206225410.604482-2-han.xu@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 5f94774 commit bc9ab1b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ properties:
5656
this property to re-config the chipselect value in the LPSPI driver.
5757
type: boolean
5858

59+
num-cs:
60+
description:
61+
number of chip selects.
62+
minimum: 1
63+
maximum: 2
64+
default: 1
65+
5966
required:
6067
- compatible
6168
- reg
@@ -80,4 +87,5 @@ examples:
8087
clock-names = "per", "ipg";
8188
spi-slave;
8289
fsl,spi-only-use-cs1-sel;
90+
num-cs = <2>;
8391
};

0 commit comments

Comments
 (0)