0001 ==============================
0002 Cirrus Logic EP93xx ADC driver
0003 ==============================
0004
0005 1. Overview
0006 ===========
0007
0008 The driver is intended to work on both low-end (EP9301, EP9302) devices with
0009 5-channel ADC and high-end (EP9307, EP9312, EP9315) devices with 10-channel
0010 touchscreen/ADC module.
0011
0012 2. Channel numbering
0013 ====================
0014
0015 Numbering scheme for channels 0..4 is defined in EP9301 and EP9302 datasheets.
0016 EP9307, EP9312 and EP9315 have 3 channels more (total 8), but the numbering is
0017 not defined. So the last three are numbered randomly, let's say.
0018
0019 Assuming ep93xx_adc is IIO device0, you'd find the following entries under
0020 /sys/bus/iio/devices/iio:device0/:
0021
0022 +-----------------+---------------+
0023 | sysfs entry | ball/pin name |
0024 +=================+===============+
0025 | in_voltage0_raw | YM |
0026 +-----------------+---------------+
0027 | in_voltage1_raw | SXP |
0028 +-----------------+---------------+
0029 | in_voltage2_raw | SXM |
0030 +-----------------+---------------+
0031 | in_voltage3_raw | SYP |
0032 +-----------------+---------------+
0033 | in_voltage4_raw | SYM |
0034 +-----------------+---------------+
0035 | in_voltage5_raw | XP |
0036 +-----------------+---------------+
0037 | in_voltage6_raw | XM |
0038 +-----------------+---------------+
0039 | in_voltage7_raw | YP |
0040 +-----------------+---------------+