Re: [PATCH v2 09/15] dt-bindings: iio: adc: adi,ad4134: Document SPI connection mode

From: Rob Herring

Date: Wed Sep 16 2026 - 12:38:50 EST


On Tue, Sep 15, 2026 at 04:14:44PM -0300, Marcelo Schmitt wrote:
> Document how AD4134 chips are connected to the host SPI controller
> according to different wiring configurations.
>
> Signed-off-by: Marcelo Schmitt <marcelo.schmitt@xxxxxxxxxx>
> ---
> Change log v1 -> v2:
> - Set default for adi,spi-mode property.
> - Added '#daisy-chained-devices' property.
> - Documented constraints for adi,spi-mode + #daisy-chained-devices combinations.
>
> .../bindings/iio/adc/adi,ad4134.yaml | 51 ++++++++++++++++---
> 1 file changed, 44 insertions(+), 7 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad4134.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad4134.yaml
> index ea6d7e026419..012e09decf7a 100644
> --- a/Documentation/devicetree/bindings/iio/adc/adi,ad4134.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4134.yaml
> @@ -131,6 +131,26 @@ properties:
> enum: [ free-running, gated ]
> default: gated
>
> + adi,spi-mode:
> + $ref: /schemas/types.yaml#/definitions/string
> + enum: [ no-cs, 4-wire, one-channel-chain, two-channel-chain ]
> + default: no-cs
> + description: |
> + This property indicates the SPI wiring configuration.
> + * no-cs: The datasheet calls this "minimum I/O mode". In this mode, the CS
> + line is not used (tied to GND).
> + * 4-wire: Specifies a conventional SPI wiring configuration.

Absence of this property should be conventional mode.

> + * one-channel-chain: In this mode, the DOUT0 line of one chip is connected
> + to DOUT2 of the next chip upstream in the chain. Only the data interface
> + of the upmost device in the stream is in direct connection with the
> + digital host.
> + * two-channel-chain: In this mode, the DOUT0 and DOUT1 lines of one chip
> + are respectively connected to DOUT2 and DOUT3 of the next chip upstream
> + in the chain. Only the data interface of the upmost device in the stream
> + is in direct connection with the digital host.