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