Thanks.  I was able to use the device tree compiler to make the analog inputs 
available.  I started with:

ubuntu@arm:~$ ls /sys/bus/iio/devices/iio\:device0
buffer  in_voltage4_raw  in_voltage6_raw  power          subsystem
dev     in_voltage5_raw  name             scan_elements  uevent

The commands I used to add analog inputs 0-3 are:

$ sudo apt-get install device-tree-compiler
$ sudo dtc -I dtb -O dts /boot/uboot/dtbs/am335x-boneblack.dtb > 
am335x-boneblack.dts

Change the section:

 adc {
          #io-channel-cells = <0x1>;
          compatible = "ti,am3359-adc";
          ti,adc-channels = <0x4 0x5 0x6>;
 };

to

 adc {
          #io-channel-cells = <0x1>;
          compatible = "ti,am3359-adc";
          ti,adc-channels = <0x0 0x1 0x2 0x3 0x4 0x5 0x6>;
 };

then recompile, install and reboot:

$ dtc -O dtb -o am335x-boneblack.dtb am335x-boneblack.dts
$ sudo cp am335x-boneblack.dtb /boot/uboot/dtbs

Once rebooted, the devices show up:

ubuntu@arm:~$ ls /sys/bus/iio/devices/iio\:device0
buffer  in_voltage0_raw  in_voltage2_raw  in_voltage4_raw  in_voltage6_raw  
power          subsystem
dev     in_voltage1_raw  in_voltage3_raw  in_voltage5_raw  name             
scan_elements  uevent
ubuntu@arm:~$ 

-- jda

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to