Mauro Carvalho Chehab | 1c349f4 | 2019-06-18 17:53:40 -0300 | [diff] [blame] | 1 | ============================== |
| 2 | Cirrus Logic EP93xx ADC driver |
| 3 | ============================== |
Alexander Sverdlin | 8614206 | 2017-07-24 22:51:45 +0200 | [diff] [blame] | 4 | |
| 5 | 1. Overview |
Mauro Carvalho Chehab | 1c349f4 | 2019-06-18 17:53:40 -0300 | [diff] [blame] | 6 | =========== |
Alexander Sverdlin | 8614206 | 2017-07-24 22:51:45 +0200 | [diff] [blame] | 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 |
Mauro Carvalho Chehab | 1c349f4 | 2019-06-18 17:53:40 -0300 | [diff] [blame] | 13 | ==================== |
Alexander Sverdlin | 8614206 | 2017-07-24 22:51:45 +0200 | [diff] [blame] | 14 | |
| 15 | Numbering scheme for channels 0..4 is defined in EP9301 and EP9302 datasheets. |
| 16 | EP9307, EP9312 and EP9312 have 3 channels more (total 8), but the numbering is |
| 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 | |
Mauro Carvalho Chehab | 1c349f4 | 2019-06-18 17:53:40 -0300 | [diff] [blame] | 24 | +=================+===============+ |
Alexander Sverdlin | 8614206 | 2017-07-24 22:51:45 +0200 | [diff] [blame] | 25 | | in_voltage0_raw | YM | |
Mauro Carvalho Chehab | 1c349f4 | 2019-06-18 17:53:40 -0300 | [diff] [blame] | 26 | +-----------------+---------------+ |
Alexander Sverdlin | 8614206 | 2017-07-24 22:51:45 +0200 | [diff] [blame] | 27 | | in_voltage1_raw | SXP | |
Mauro Carvalho Chehab | 1c349f4 | 2019-06-18 17:53:40 -0300 | [diff] [blame] | 28 | +-----------------+---------------+ |
Alexander Sverdlin | 8614206 | 2017-07-24 22:51:45 +0200 | [diff] [blame] | 29 | | in_voltage2_raw | SXM | |
Mauro Carvalho Chehab | 1c349f4 | 2019-06-18 17:53:40 -0300 | [diff] [blame] | 30 | +-----------------+---------------+ |
Alexander Sverdlin | 8614206 | 2017-07-24 22:51:45 +0200 | [diff] [blame] | 31 | | in_voltage3_raw | SYP | |
Mauro Carvalho Chehab | 1c349f4 | 2019-06-18 17:53:40 -0300 | [diff] [blame] | 32 | +-----------------+---------------+ |
Alexander Sverdlin | 8614206 | 2017-07-24 22:51:45 +0200 | [diff] [blame] | 33 | | in_voltage4_raw | SYM | |
Mauro Carvalho Chehab | 1c349f4 | 2019-06-18 17:53:40 -0300 | [diff] [blame] | 34 | +-----------------+---------------+ |
Alexander Sverdlin | 8614206 | 2017-07-24 22:51:45 +0200 | [diff] [blame] | 35 | | in_voltage5_raw | XP | |
Mauro Carvalho Chehab | 1c349f4 | 2019-06-18 17:53:40 -0300 | [diff] [blame] | 36 | +-----------------+---------------+ |
Alexander Sverdlin | 8614206 | 2017-07-24 22:51:45 +0200 | [diff] [blame] | 37 | | in_voltage6_raw | XM | |
Mauro Carvalho Chehab | 1c349f4 | 2019-06-18 17:53:40 -0300 | [diff] [blame] | 38 | +-----------------+---------------+ |
Alexander Sverdlin | 8614206 | 2017-07-24 22:51:45 +0200 | [diff] [blame] | 39 | | in_voltage7_raw | YP | |
| 40 | +-----------------+---------------+ |