Merge tag 'spi-v5.0' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
[linux/fpc-iii.git] / Documentation / iio / ep93xx_adc.txt
blob23053e7817bd908ddfa353538bbe1e7107f48437
1 Cirrus Logic EP93xx ADC driver.
3 1. Overview
5 The driver is intended to work on both low-end (EP9301, EP9302) devices with
6 5-channel ADC and high-end (EP9307, EP9312, EP9315) devices with 10-channel
7 touchscreen/ADC module.
9 2. Channel numbering
11 Numbering scheme for channels 0..4 is defined in EP9301 and EP9302 datasheets.
12 EP9307, EP9312 and EP9312 have 3 channels more (total 8), but the numbering is
13 not defined. So the last three are numbered randomly, let's say.
15 Assuming ep93xx_adc is IIO device0, you'd find the following entries under
16 /sys/bus/iio/devices/iio:device0/:
18   +-----------------+---------------+
19   | sysfs entry     | ball/pin name |
20   +-----------------+---------------+
21   | in_voltage0_raw | YM            |
22   | in_voltage1_raw | SXP           |
23   | in_voltage2_raw | SXM           |
24   | in_voltage3_raw | SYP           |
25   | in_voltage4_raw | SYM           |
26   | in_voltage5_raw | XP            |
27   | in_voltage6_raw | XM            |
28   | in_voltage7_raw | YP            |
29   +-----------------+---------------+