Merge tag 'sound-5.3-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[linux-2.6-block.git] / Documentation / iio / ep93xx_adc.rst
CommitLineData
1c349f4f
MCC
1==============================
2Cirrus Logic EP93xx ADC driver
3==============================
8614206a
AS
4
51. Overview
1c349f4f 6===========
8614206a
AS
7
8The driver is intended to work on both low-end (EP9301, EP9302) devices with
95-channel ADC and high-end (EP9307, EP9312, EP9315) devices with 10-channel
10touchscreen/ADC module.
11
122. Channel numbering
1c349f4f 13====================
8614206a
AS
14
15Numbering scheme for channels 0..4 is defined in EP9301 and EP9302 datasheets.
16EP9307, EP9312 and EP9312 have 3 channels more (total 8), but the numbering is
17not defined. So the last three are numbered randomly, let's say.
18
19Assuming ep93xx_adc is IIO device0, you'd find the following entries under
20/sys/bus/iio/devices/iio:device0/:
21
22 +-----------------+---------------+
23 | sysfs entry | ball/pin name |
1c349f4f 24 +=================+===============+
8614206a 25 | in_voltage0_raw | YM |
1c349f4f 26 +-----------------+---------------+
8614206a 27 | in_voltage1_raw | SXP |
1c349f4f 28 +-----------------+---------------+
8614206a 29 | in_voltage2_raw | SXM |
1c349f4f 30 +-----------------+---------------+
8614206a 31 | in_voltage3_raw | SYP |
1c349f4f 32 +-----------------+---------------+
8614206a 33 | in_voltage4_raw | SYM |
1c349f4f 34 +-----------------+---------------+
8614206a 35 | in_voltage5_raw | XP |
1c349f4f 36 +-----------------+---------------+
8614206a 37 | in_voltage6_raw | XM |
1c349f4f 38 +-----------------+---------------+
8614206a
AS
39 | in_voltage7_raw | YP |
40 +-----------------+---------------+