AnsweredAssumed Answered

Read ADC on mx28evk

Question asked by Jerome Baron on Oct 3, 2014
Latest reply on Oct 9, 2014 by Jerome Baron

Hi everyone,

 

I want to do a simple read on the lradc pins on the mx28evk. I have read a lot of threads but I could not find the answer to my question or could wrap my head around what I'm missing there.

- In the kernel menuconfig, I have "Low Resolution ADC support" checked, which set CONFIG_MXS_LRADC=y.

- In the target filesystem, I have some files related to lradc:

/sys/devices/platform/mxs-lradc.0

/sys/devices/system/mxs-lradc

/sys/devices/system/mxs-lradc/mxs-lradc-1

/sys/bus/platform/devices/mxs-lradc.0

/sys/bus/platform/drivers/mxs-lradc

/sys/bus/platform/drivers/mxs-lradc/mxs-lradc.0

- I have one dev related to that: /dev/input/ts0

 

Now, can I, in the filesystem, read the ADCs?

If not, should I do a simple program that use ioctl of a driver? Which driver file?

 

Regards,

Jerome

Outcomes