Re: [PATCH v2 13/15] dt-bindings: iio: adc: adi,ad4134: Add high data throughput example

From: Rob Herring

Date: Thu Sep 24 2026 - 17:25:58 EST


On Tue, Sep 15, 2026 at 04:16:06PM -0300, Marcelo Schmitt wrote:
> Add device tree example for AD4134 operation in 4-wire SPI mode with 4
> lines to transfer data samples to the host controller.
>
> Signed-off-by: Marcelo Schmitt <marcelo.schmitt@xxxxxxxxxx>
> ---
> No changes since v1.
>
> .../bindings/iio/adc/adi,ad4134.yaml | 42 +++++++++++++++++++
> 1 file changed, 42 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad4134.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad4134.yaml
> index ad67d1cdacec..133996917ee2 100644
> --- a/Documentation/devicetree/bindings/iio/adc/adi,ad4134.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4134.yaml
> @@ -243,4 +243,46 @@ examples:
>
> };
> };
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> +
> + ad4134_sdo_dout0_mux: mux-controller {
> + compatible = "gpio-mux";
> + #mux-state-cells = <1>;
> + mux-gpios = <&gpio0 100 GPIO_ACTIVE_HIGH>;
> + };

Drop. We don't put providers in examples.

> +
> + spi {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + adc@0 {
> + compatible = "adi,ad4134";
> + reg = <0>;
> +
> + spi-max-frequency = <1000000>;
> + spi-rx-bus-width = <1>, <1>, <1>, <1>; /* 4 lanes of 1 bit each */
> +
> + pwms = <&ad4134_odr_generator 1 1000000 0>;
> + reset-gpios = <&gpio0 86 GPIO_ACTIVE_LOW>;
> + odr-gpios = <&gpio0 87 GPIO_ACTIVE_HIGH>;
> + powerdown-gpios = <&gpio0 88 GPIO_ACTIVE_LOW>;
> +
> + clocks = <&sys_clk>;
> + clock-names = "clkin";
> +
> + avdd5-supply = <&avdd5>;
> + dvdd5-supply = <&dvdd5>;
> + iovdd-supply = <&iovdd>;
> + refin-supply = <&refin>;
> + avdd1v8-supply = <&avdd1v8>;
> + dvdd1v8-supply = <&dvdd1v8>;
> + clkvdd-supply = <&clkvdd>;
> +
> + mux-states = <&ad4134_sdo_dout0_mux 0>, <&ad4134_sdo_dout0_mux 1>;
> + mux-state-names = "data_read", "reg_access";
> +
> + adi,spi-mode = "4-wire";
> + };
> + };
> ...
> --
> 2.53.0
>