Using AD7606 with Toradex hardware "Verdin iMX8M Plus"

Hello @doelken ,

i am trying to use AD7606 as an external ADC to get higher sample rate than what Toradex hardware provides.
Could you please share with me the device tree and the steps that should be taken?

Best regards

Hello @MohannadD,

can you share your schematic and how you connected the AD7606.

Best Regards,

Matthias Gohlke

Hi @MohannadD ,

here’s an example of a device-tree entry that I found in the sources under linux-toradex/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml.

    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/interrupt-controller/irq.h>
    spi0 {
        #address-cells = <1>;
        #size-cells = <0>;

        adc@0 {
                compatible = "adi,ad7606-8";
                reg = <0>;
                spi-max-frequency = <1000000>;

                avcc-supply = <&adc_vref>;

                interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
                interrupt-parent = <&gpio>;

                adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
                reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
                adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
                adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>,
                                               <&gpio 23 GPIO_ACTIVE_HIGH>,
                                               <&gpio 26 GPIO_ACTIVE_HIGH>;
                standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;

Hope this helps.

Best Regards