diff mbox series

[v4,3/3] spi: dt-bindings: document zero value for spi-{rx,tx}-bus-width properties

Message ID 20201203140531.74470-3-alexandru.ardelean@analog.com
State Superseded
Headers show
Series [v4,1/3] spi: uapi: unify SPI modes into a single spi.h header | expand

Commit Message

Alexandru Ardelean Dec. 3, 2020, 2:05 p.m. UTC
Following a change to the SPI framework, providing a value of zero for
'spi-rx-bus-width' and 'spi-tx-bus-width' is now possible and will
essentially mean that no RX or TX is allowed.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
---

Changelog v3 -> v4:
* https://lore.kernel.org/linux-spi/20201127130834.136348-3-alexandru.ardelean@analog.com/
* fix typos

 Documentation/devicetree/bindings/spi/spi-controller.yaml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Rob Herring Dec. 9, 2020, 8:13 p.m. UTC | #1
On Thu, 03 Dec 2020 16:05:31 +0200, Alexandru Ardelean wrote:
> Following a change to the SPI framework, providing a value of zero for

> 'spi-rx-bus-width' and 'spi-tx-bus-width' is now possible and will

> essentially mean that no RX or TX is allowed.

> 

> Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>

> ---

> 

> Changelog v3 -> v4:

> * https://lore.kernel.org/linux-spi/20201127130834.136348-3-alexandru.ardelean@analog.com/

> * fix typos

> 

>  Documentation/devicetree/bindings/spi/spi-controller.yaml | 6 ++++--

>  1 file changed, 4 insertions(+), 2 deletions(-)

> 


Reviewed-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/spi/spi-controller.yaml b/Documentation/devicetree/bindings/spi/spi-controller.yaml
index 1b56d5e40f1f..cf663e4a4afe 100644
--- a/Documentation/devicetree/bindings/spi/spi-controller.yaml
+++ b/Documentation/devicetree/bindings/spi/spi-controller.yaml
@@ -125,8 +125,9 @@  patternProperties:
       spi-rx-bus-width:
         description:
           Bus width to the SPI bus used for read transfers.
+          If 0 is provided, then no RX will be possible on this device.
         $ref: /schemas/types.yaml#/definitions/uint32
-        enum: [1, 2, 4, 8]
+        enum: [0, 1, 2, 4, 8]
         default: 1
 
       spi-rx-delay-us:
@@ -136,8 +137,9 @@  patternProperties:
       spi-tx-bus-width:
         description:
           Bus width to the SPI bus used for write transfers.
+          If 0 is provided, then no TX will be possible on this device.
         $ref: /schemas/types.yaml#/definitions/uint32
-        enum: [1, 2, 4, 8]
+        enum: [0, 1, 2, 4, 8]
         default: 1
 
       spi-tx-delay-us: