This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM62A7-Q1: Kernel driver for ADS1018

Part Number: AM62A7-Q1
Other Parts Discussed in Thread: AM62A7, ADS1018, ADS1015, ADS1118

Hi experts,

We are developing a board based on AM62A7 and we use a ADS1018 for ADC. The SDK version we are using is 11.01. 

I wonder whether there is kernel driver support for ADS1018? Because I did not find it after a simple search.

Best Regards.

  • Hello Mian,

    I am sending your thread to the ADS1018 team to comment. I do not see a driver associated with this part after a quick search of Linux kernel 6.12 (I do see a driver for ADS1015, but that's an I2C part instead of a SPI part), but I am also on the AM62Ax team instead of the ADC team.

    Regards,

    Nick

  • Hi Mian, 

    There is an ADS1018 driver in the mainline kernel that created in the open-source community. Please note that this is not supported by TI.
    Here's the link:  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/iio/adc/ti-ads1018.c?h=v7.0-rc3 

    Regards, 

    Andrew

  • Hi Andrew,

    It seems this driver is designed for Linux version 7.0.x. Have you tested it on EVM board? Will it be part of future version of TI SDK?

    In fact, I tried to merge it into SDK9.2 (kernel version 6.1.80), it did not work as expected...

    I'm a little confused about the interrupts and the drdy-gpios part. Are the necessary?

    Best Regards,

    Mian

  • Hi Mian, 

    We did not develop this driver so I don't know exactly how it was tested. Usually some amount of testing happens before the driver is upstreamed into the mainline kernel but I don't know what hardware or tests would've been preformed. The author's information is at the end of the driver, he might be able to give more information about the open source driver he created and how it was tested. 

    At the moment we don't publish ADC drivers into processor SDKs. For now, our best offering would be the more "generic" C example drivers that we publish to Github

    Backporting the driver from 7.0.x to 6.1.80 is not something the ADC team has experience doing but could be a question   and the Sitara team could answer. Or if there are plans to update the SDK to kernel v7.

    The ADS1118 has a dual purpose DOUT/DRDYn pin that can serve both as the output data and used indicate that a conversion is complete and new data are available. More information can be found in section 8.5.5 of the ADS1018 datasheet. The processor can monitor this line and when a data ready signal occurs this can trigger a ADC data read. 

    Regards, 

    Andrew

  • I have not had time to look at any of the links, but...

    2025's LTS version of the kernel (that's the version most people in the world use) was kernel 6.12 (and that's the kernel version used in Linux SDK 11.x). 2026's LTS version of the kernel is kernel 6.18, so this year's Linux SDKs are on kernel 6.18. If kernel 7.0 exists, and you want to use it, you are welcome to use it. But nobody from TI has tested it, and you will be on your own if you run into any problems.

    Regards,

    Nick