I am wondering if anyone has some experience with using the ADC’s on the Overo Waterstorm Com’s or other coms that are the same?


I am using Scott Ellis’ example from http://www.jumpnowtek.com/index.php?option=com_content&view=article&id=79&Itemid=91 and code from https://github.com/scottellis/madc on my Android system (from gumdroid – 2.6.32 kernel), but I am getting an error while trying to read ADC measurements:


# madc

madc[2]: status = -1

madc[3]: status = -1

madc[4]: status = -1

madc[5]: status = -1

madc[6]: status = -1

madc[7]: status = -1



Initially I thought it might have been because of the twl4030_pwrbutton misc input button driver causing a conflict because dmesg didn’t show i2c-1 but that power button instead, so I have removed that from the kernel and can now see:


# dmesg | grep i2c

i2c_omap i2c_omap.1: bus 1 rev4.0 at 2600 kHz

i2c_omap i2c_omap.3: bus 3 rev4.0 at 400 kHz

i2c /dev entries driver

--whereas before bus 1 was not there and the pwrbutton input was.



From looking at the twl4030-madc driver source (kernel/drivers/mfd/twl4030-madc.c) it looks like the timeout of 5ms is being reached… I am unsure why this is happening and how to correct this.  


Any suggestions in fixing this or doing ADC another way is greatly appreciated.



Kind Regards,



Ben Keane





PROPRIETARY: This e-mail contains proprietary information some or all of which may be legally privileged. It is intended for the recipient only. If an addressing or transmission error has misdirected this e-mail, please notify the authority by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail.