• 0
jan

PMODAD5 Driver activation in device tree

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

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi Jan,

I have moved you question to the Embedded sub-section where your question will be viewed by more of our experienced embedded community.

cheers,

Jon

Share this post


Link to post
Share on other sites
  • 0

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>;
    };
};

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now