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.

AM335X ADC Interrupt Support in Linux

Other Parts Discussed in Thread: AM3359

Dear all,

We are developing a embedded system based on AM3359 running Linux for a Industrial automation application. The system gets Analog inputs which will be interfaced to the ADC of the AM3359. The analog input is a voltage level signal which has a specific range. The technical reference manual says that the ADC can generate interrupts for the following two conditions

  • Interrupt after a sequence of conversions
  • Interrupt if sampled data is out of a programmable range

Our requirement is to make use of these interrupts in the software. Does the existing Linux kernel of am3359 support handling these interrupts ? If not, would it be fine to write a new driver to make use of these interrupts. Which is the best possible way to do so ?

Also in the linux kernel source tree, which is the existing platform driver for the ADC.

  • drivers/mfd/ti_tscadc.c
  • drivers/staging/iio/adc/ti_adc.c