1.cat /sys/bus/iio/devices/iio\:device0/in_voltage1_raw
cat: read error: Device or resource busy
Why do I get this error? what is the solution?
2. ls -al /sys/bus/iio/devices/iio\:device0/
drwxr-xr-x 3 root root 0 Jan 1 1970 .
drwxr-xr-x 4 root root 0 Jan 1 1970 ..
-r--r--r-- 1 root root 4096 Mar 31 02:34 dev
-rw-r--r-- 1 root root 4096 Mar 31 02:34 in_voltage0_raw
-rw-r--r-- 1 root root 4096 Mar 31 02:34 in_voltage1_raw
-r--r--r-- 1 root root 4096 Mar 31 02:34 name
drwxr-xr-x 2 root root 0 Mar 31 02:34 power
lrwxrwxrwx 1 root root 0 Jan 1 1970 subsystem -> ../../../../../bus/iio
-rw-r--r-- 1 root root 4096 Jan 1 1970 uevent
3. In .config file,
a. CONFIG_MFD_TI_AM335X_TSCADC=y
b. CONFIG_TI_ADC081C=y
c. CONFIG_TI_AM335X_ADC=y
4. dts entry
&tscadc {
status = "okay";
/*0 - LED_BIN
1 - DISP_TEMP
*/
adc {
ti,adc-channels = <0 1>;
};
};
5. I'm using SDK7.0 ti filesystem
Regards,
Gangadhar