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驱动问题



ls -al /sys/bus/iio/devices/iio\:device0/
total 0
drwxr-xr-x 5 root root 0 Jan 1 00:00 .
drwxr-xr-x 4 root root 0 Jan 1 00:00 ..
drwxr-xr-x 2 root root 0 Jan 1 00:00 buffer
-r--r--r-- 1 root root 4096 Jan 1 00:00 dev
-r--r--r-- 1 root root 4096 Jan 1 00:00 in_voltage4_raw
-r--r--r-- 1 root root 4096 Jan 1 00:00 in_voltage5_raw
-r--r--r-- 1 root root 4096 Jan 1 00:00 in_voltage6_raw
-r--r--r-- 1 root root 4096 Jan 1 00:00 in_voltage7_raw
-rw-r--r-- 1 root root 4096 Jan 1 00:00 mode
-r--r--r-- 1 root root 4096 Jan 1 00:00 name
drwxr-xr-x 2 root root 0 Jan 1 00:00 power
drwxr-xr-x 2 root root 0 Jan 1 00:00 scan_elements
lrwxrwxrwx 1 root root 0 Jan 1 00:00 subsystem -> ../../../../../../bus/iio
-rw-r--r-- 1 root root 4096 Jan 1 00:00 uevent

cat /sys/bus/iio/devices/iio\:device0/mode
oneshot

cat /sys/bus/iio/devices/iio\:device0/in_voltage4_raw
cat: read error: Resource temporarily unavailable

跟踪代码 

tiadc_read_raw:

while (adc_readl(adc_dev, TSCADC_REG_ADCFSM) &
TSCADC_SEQ_STATUS) {
if (time_after(jiffies, timeout))
return -EAGAIN;
}

这里超时退出了,这是什么原因呢?

/dev目录下也没有生成iio\:device0设备节点