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
Mohannad
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
Mohannad
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>;
spi-cpol;
spi-cpha;
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>;
adi,sw-mode;
};
};
Hope this helps.
Best Regards
Kevin