Skip to content

Commit

Permalink
spi: spi-fsl-lpspi: add num-cs binding for lpspi
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Han Xu authored and Mark Brown committed Dec 7, 2022
1 parent 5f94774 commit bc9ab1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ properties:
this property to re-config the chipselect value in the LPSPI driver.
type: boolean

num-cs:
description:
number of chip selects.
minimum: 1
maximum: 2
default: 1

required:
- compatible
- reg
Expand All @@ -80,4 +87,5 @@ examples:
clock-names = "per", "ipg";
spi-slave;
fsl,spi-only-use-cs1-sel;
num-cs = <2>;
};

0 comments on commit bc9ab1b

Please sign in to comment.