doc: drivers: mipi-dbi: detail write-only and duplex options

Add clarifications to mipi-dbi bindings to avoid the confusion
between two options, write-only and duplex.

Signed-off-by: Eve Redero <eve.redero@gmail.com>
This commit is contained in:
Eve Redero 2024-02-08 19:08:13 +01:00 committed by Maureen Helm
commit f0ea359858
2 changed files with 7 additions and 2 deletions

View file

@ -12,6 +12,8 @@ properties:
description: | description: |
SPI Duplex mode, full or half. By default it's always full duplex thus 0 SPI Duplex mode, full or half. By default it's always full duplex thus 0
as this is, by far, the most common mode. as this is, by far, the most common mode.
Selecting half duplex allows to use SPI MOSI as a bidirectional line,
typically used when only one data line is connected.
Use the macros not the actual enum value, here is the concordance Use the macros not the actual enum value, here is the concordance
list (see dt-bindings/spi/spi.h) list (see dt-bindings/spi/spi.h)
0 SPI_FULL_DUPLEX 0 SPI_FULL_DUPLEX

View file

@ -30,5 +30,8 @@ properties:
write-only: write-only:
type: boolean type: boolean
description: | description: |
Controller is not readable, IE only DOUT pin is connected on the SPI Only writes to display controller, do not perform reads.
interface. If all controllers are write-only, read functions will be
optimized out for size.
It can also be used as an alternative to half duplex when
only one data line is connected.