beagleboard/kernel — pull request #47 by ZubairLK (2013-07-06 00:23:36+00:00)
Title: 3.11

And we have one-shot ADC reading on 3.11 :+1:

1)Starts by enabling IIO in Kconfig.
2)updates all tsadc files to the point of mfd-next.
3)fix the first sample read bug. It is derived from a patch in Arago.
4)fix the Ebusy thing. It is also derived from a patch in Arago.
5)Add scaled values in /sys/bus/iio/*

TSC functionality was tested using resisters and evtest as I do not have the TSC yet.

One-shot ADC reading seems to be working correctly. :)

Main things to note.
Changes in DT names and bindings.

Steps to configure is now known as coordinate readouts.
ADC channels used to be described as total channels i.e. <8> or <4>
Now they are described individually. i.e. <0 1 2 3 4 5 6 7>
The ADC/TSC compatible names have been changed to TI-am335x-adc /TI-am3359-adc etc.
Exact changes can be seen in the code.

I couldn't get DT overlaying to work. And didn't spend much time on it.
So I added the following at the end of the boneblack.dts file to get things working for my development.

&tscadc {
status = "okay";
tsc {
ti,wires = <4>;
ti,x-plate-resistance = <200>;
ti,coordiante-readouts = <5>;
ti,wire-config = <0x00 0x11 0x22 0x33>;
};

adc {
ti,adc-channels = <4 5 6 7>;
};
};

Thats not in the commits at the moment. So if you are checking this do add this in the dts file.