Jump to content
  • 0

PMODAD5 Driver activation in device tree


jan

Question

Dear all,

Is there some kind of tuttorial how to use the linux driver for the PMODAD5  4-channel 4.8 kHz 24-bit A/D Converter? More specifically how it can be activated in the device tree

Thanks

Jan

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

The driver you want is found in the linux kernel at /drivers/staging/iio/adc/ad7192.c . You will need to build this driver into the kernel you are using (or use it as a loadable module I suppose).

the device tree node will need to be a child node of your SPI controller node, and look something like:

&spi0 {
    ad7193: ad7193@0{
        compatible = "adi,ad7193";
        spi-max-frequency = <5000000>;
        reg = <0>;
    };
};

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...