blob: 4fd8dea3f6b8c7f26c8aac8ae5b1fcc335d49719 [file] [log] [blame]
Mauro Carvalho Chehab1c349f42019-06-18 17:53:40 -03001==============================
2Cirrus Logic EP93xx ADC driver
3==============================
Alexander Sverdlin86142062017-07-24 22:51:45 +02004
51. Overview
Mauro Carvalho Chehab1c349f42019-06-18 17:53:40 -03006===========
Alexander Sverdlin86142062017-07-24 22:51:45 +02007
8The driver is intended to work on both low-end (EP9301, EP9302) devices with
95-channel ADC and high-end (EP9307, EP9312, EP9315) devices with 10-channel
10touchscreen/ADC module.
11
122. Channel numbering
Mauro Carvalho Chehab1c349f42019-06-18 17:53:40 -030013====================
Alexander Sverdlin86142062017-07-24 22:51:45 +020014
15Numbering scheme for channels 0..4 is defined in EP9301 and EP9302 datasheets.
16EP9307, EP9312 and EP9312 have 3 channels more (total 8), but the numbering is
17not defined. So the last three are numbered randomly, let's say.
18
19Assuming 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 Chehab1c349f42019-06-18 17:53:40 -030024 +=================+===============+
Alexander Sverdlin86142062017-07-24 22:51:45 +020025 | in_voltage0_raw | YM |
Mauro Carvalho Chehab1c349f42019-06-18 17:53:40 -030026 +-----------------+---------------+
Alexander Sverdlin86142062017-07-24 22:51:45 +020027 | in_voltage1_raw | SXP |
Mauro Carvalho Chehab1c349f42019-06-18 17:53:40 -030028 +-----------------+---------------+
Alexander Sverdlin86142062017-07-24 22:51:45 +020029 | in_voltage2_raw | SXM |
Mauro Carvalho Chehab1c349f42019-06-18 17:53:40 -030030 +-----------------+---------------+
Alexander Sverdlin86142062017-07-24 22:51:45 +020031 | in_voltage3_raw | SYP |
Mauro Carvalho Chehab1c349f42019-06-18 17:53:40 -030032 +-----------------+---------------+
Alexander Sverdlin86142062017-07-24 22:51:45 +020033 | in_voltage4_raw | SYM |
Mauro Carvalho Chehab1c349f42019-06-18 17:53:40 -030034 +-----------------+---------------+
Alexander Sverdlin86142062017-07-24 22:51:45 +020035 | in_voltage5_raw | XP |
Mauro Carvalho Chehab1c349f42019-06-18 17:53:40 -030036 +-----------------+---------------+
Alexander Sverdlin86142062017-07-24 22:51:45 +020037 | in_voltage6_raw | XM |
Mauro Carvalho Chehab1c349f42019-06-18 17:53:40 -030038 +-----------------+---------------+
Alexander Sverdlin86142062017-07-24 22:51:45 +020039 | in_voltage7_raw | YP |
40 +-----------------+---------------+