diff mbox series

[2/2] dt-bindings: spi: spi-fsl-lpspi: add num-cs for lpspi

Message ID 20221206225410.604482-2-han.xu@nxp.com
State Accepted
Commit bc9ab1b7a6c687370b5d4edf34064bf04af8d369
Headers show
Series [1/2] spi: spi-fsl-lpspi: support multiple cs for lpspi | expand

Commit Message

Han Xu Dec. 6, 2022, 10:54 p.m. UTC
Add num-cs property to support multiple cs for lpspi. This property is
optional.

Signed-off-by: Han Xu <han.xu@nxp.com>
---
 Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Krzysztof Kozlowski Dec. 7, 2022, 8:33 a.m. UTC | #1
On 06/12/2022 23:54, Han Xu wrote:
> Add num-cs property to support multiple cs for lpspi. This property is
> optional.
> 
> Signed-off-by: Han Xu <han.xu@nxp.com>
> ---
>  Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml b/Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml
> index 8b44284d30c6..94caa2b7e241 100644
> --- a/Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml
> +++ b/Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml
> @@ -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.

You do not need description, it's already in spi-controller.yaml.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml b/Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml
index 8b44284d30c6..94caa2b7e241 100644
--- a/Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml
+++ b/Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml
@@ -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
@@ -80,4 +87,5 @@  examples:
         clock-names = "per", "ipg";
         spi-slave;
         fsl,spi-only-use-cs1-sel;
+        num-cs = <2>;
     };