2019-06-19 04:53:40 +08:00
|
|
|
==============================
|
|
|
|
Cirrus Logic EP93xx ADC driver
|
|
|
|
==============================
|
2017-07-25 04:51:45 +08:00
|
|
|
|
|
|
|
1. Overview
|
2019-06-19 04:53:40 +08:00
|
|
|
===========
|
2017-07-25 04:51:45 +08:00
|
|
|
|
|
|
|
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
|
2019-06-19 04:53:40 +08:00
|
|
|
====================
|
2017-07-25 04:51:45 +08:00
|
|
|
|
|
|
|
Numbering scheme for channels 0..4 is defined in EP9301 and EP9302 datasheets.
|
2021-01-19 11:03:20 +08:00
|
|
|
EP9307, EP9312 and EP9315 have 3 channels more (total 8), but the numbering is
|
2017-07-25 04:51:45 +08:00
|
|
|
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 |
|
2019-06-19 04:53:40 +08:00
|
|
|
+=================+===============+
|
2017-07-25 04:51:45 +08:00
|
|
|
| in_voltage0_raw | YM |
|
2019-06-19 04:53:40 +08:00
|
|
|
+-----------------+---------------+
|
2017-07-25 04:51:45 +08:00
|
|
|
| in_voltage1_raw | SXP |
|
2019-06-19 04:53:40 +08:00
|
|
|
+-----------------+---------------+
|
2017-07-25 04:51:45 +08:00
|
|
|
| in_voltage2_raw | SXM |
|
2019-06-19 04:53:40 +08:00
|
|
|
+-----------------+---------------+
|
2017-07-25 04:51:45 +08:00
|
|
|
| in_voltage3_raw | SYP |
|
2019-06-19 04:53:40 +08:00
|
|
|
+-----------------+---------------+
|
2017-07-25 04:51:45 +08:00
|
|
|
| in_voltage4_raw | SYM |
|
2019-06-19 04:53:40 +08:00
|
|
|
+-----------------+---------------+
|
2017-07-25 04:51:45 +08:00
|
|
|
| in_voltage5_raw | XP |
|
2019-06-19 04:53:40 +08:00
|
|
|
+-----------------+---------------+
|
2017-07-25 04:51:45 +08:00
|
|
|
| in_voltage6_raw | XM |
|
2019-06-19 04:53:40 +08:00
|
|
|
+-----------------+---------------+
|
2017-07-25 04:51:45 +08:00
|
|
|
| in_voltage7_raw | YP |
|
|
|
|
+-----------------+---------------+
|