Commit | Line | Data |
---|---|---|
1c349f4f MCC |
1 | ============================== |
2 | Cirrus Logic EP93xx ADC driver | |
3 | ============================== | |
8614206a AS |
4 | |
5 | 1. Overview | |
1c349f4f | 6 | =========== |
8614206a AS |
7 | |
8 | The driver is intended to work on both low-end (EP9301, EP9302) devices with | |
9 | 5-channel ADC and high-end (EP9307, EP9312, EP9315) devices with 10-channel | |
10 | touchscreen/ADC module. | |
11 | ||
12 | 2. Channel numbering | |
1c349f4f | 13 | ==================== |
8614206a AS |
14 | |
15 | Numbering scheme for channels 0..4 is defined in EP9301 and EP9302 datasheets. | |
1008bfd8 | 16 | EP9307, EP9312 and EP9315 have 3 channels more (total 8), but the numbering is |
8614206a AS |
17 | not defined. So the last three are numbered randomly, let's say. |
18 | ||
19 | Assuming 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 | +-----------------+---------------+ |