I have been reading analog inputs for the Beaglebone Black with the most recent debian kernel (Aug 16), but I noticed similar behavior with the most recent Angstrom kernel. If during runtime I do:
echo BB-ADC > /sys/devices/bone_capemgr.8/slots
I get two sets of directories with analog input values:
/sys/devices/ocp.2/helper.15/AIN0 (values in mV) and
/sys/bus/iio/devices/iio:device0/in_voltage0_raw (with counts, 4096 counts = 1800 mV)
Also, there is a message in the log file:
[ 389.802540] bone-iio-helper helper.15: ready
On the other hand, if I add the following to uEnv.txt:
optargs=capemgr.enable_partno=BB-BONE-RTC,BB-ADC
(note, my external real time clock works very well this way)
I get the /sys/bus/iio/devices entry but not the /sys/devices/ocp.2 entry.
Also, I get the following in dmesg:
[ 2.198451] bone-iio-helper helper.10: Could not get AIN0 analog input
Of course, I can use the /sys/bus/iio/devices directories, but is this the
expected behavior?
I saw this blog:
http://beagleboard-gsoc13.blogspot.com/2013/07/sampling-analogue-signals-using-adc-on.html
Is /sys/bus/iio/devices the future, and /sys/devices/ocp.2/helper going away?
Thanks for any help/insight with this.