# Cirrus Logic EP93xx ADC driver

_Peios Kernel / Hardware and drivers / Industrial I/O_

> 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.

<a id="rst-cirrus-logic-ep93xx-adc-driver"></a>

<a id="rst-overview"></a>

## 1. Overview

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.

<a id="rst-channel-numbering"></a>

## 2. Channel numbering

Numbering scheme for channels 0..4 is defined in EP9301 and EP9302 datasheets. EP9307, EP9312 and EP9315 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/:

>
> <table>
> <thead>
> <tr>
> <th>
>
>
> sysfs entry
>
> </th>
> <th>
>
>
> ball/pin name
>
> </th>
> </tr>
> </thead>
> <tbody>
> <tr>
> <td>
>
>
> in_voltage0_raw
>
> </td>
> <td>
>
>
> YM
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> in_voltage1_raw
>
> </td>
> <td>
>
>
> SXP
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> in_voltage2_raw
>
> </td>
> <td>
>
>
> SXM
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> in_voltage3_raw
>
> </td>
> <td>
>
>
> SYP
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> in_voltage4_raw
>
> </td>
> <td>
>
>
> SYM
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> in_voltage5_raw
>
> </td>
> <td>
>
>
> XP
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> in_voltage6_raw
>
> </td>
> <td>
>
>
> XM
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> in_voltage7_raw
>
> </td>
> <td>
>
>
> YP
>
> </td>
> </tr>
> </tbody>
> </table>
