[RFC PATCH v1] EP93XX: Add ADC support

H Hartley Sweeten hartleys at visionengravers.com
Tue Oct 13 13:12:14 EDT 2009


On Tuesday, October 13, 2009 5:45 AM, Christian Gagneraud wrote:

>>> +/*
>>> + * Touchscreen and Direct ADC:
>>> + *
>>> + * +------------------------+-----+-----+-----+-----+ 
>>> + * |ADC/TS driver in use    | n/n | y/n | n/y | y/y | 
>>> + * +------------------------+-----+-----+-----+-----+
>>> + * |SYSCON_DEVCFG_ADCPD     |  1  |  0  |  0  |  0  |
>>> + * |SYSCON_DEVCFG_TIN       |  X  |  1  |  0  | 1/0 |
>>> + * |SYSCON_KEYTCHCLKDIV_TSEN|  0  |  1  |  1  |  1  |
>>> + * |TS_SETUP_ENABLE (*)     |  0  |  0  |  1  | 0/1 |
>>> + * +------------------------+-----+-----+-----+-----+
>>> + * (*) 
>> 
>> Are you missing a comment about (*)?
>
> Yes I do, and I'm still missing it! The datasheet is so unclear that I 
> have the feeling there's something to take care of here, but I still 
> don't know what...

Yeah, the Analog Touch Screen Interface section of the User's Guide is
pretty confusing.

>> Is it the intention that this i/o wrapper will allow BOTH the adc
>> and the touchscreen to work at the same time?  I don't think that
>> is possible.

> For now there's no touchscreen driver mainline, and I don't have a 
> clear picture yet on how to make the 2 drivers collaborate. I think 
> this is doable but as all my boards are EP9302 based (which doesn't 
> have the touchscreen controller, just the ADC engine) I can't test 
> anything!



More information about the linux-arm-kernel mailing list