# Kernel driver max127

_Peios Kernel / Hardware and drivers / Hardware monitoring_

> Author:

<a id="rst-kernel-driver-max127"></a>

<!-- SPDX-License-Identifier: GPL-2.0-or-later -->

Author:

> - Tao Ren &lt;[rentao.bupt@gmail.com](<mailto:rentao.bupt@gmail.com>)&gt;

Supported chips:

> - Maxim MAX127
>
>   Prefix: 'max127'
>
>   Datasheet: [https://www.analog.com/media/en/technical-documentation/data-sheets/max127-max128.pdf](<https://www.analog.com/media/en/technical-documentation/data-sheets/max127-max128.pdf>)

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

## Description

The MAX127 is a multirange, 12-bit data acquisition system (DAS) providing 8 analog input channels that are independently software programmable for a variety of ranges. The available ranges are \{0,5V\}, \{0,10V\}, \{-5,5V\} and \{-10,10V\}.

The MAX127 features a 2-wire, I2C-compatible serial interface that allows communication among multiple devices using SDA and SCL lines.

<a id="rst-sysfs-interface"></a>

## Sysfs interface

>
> <table>
> <tbody>
> <tr>
> <td>
>
>
> in\[0-7\]\_input
>
> </td>
> <td>
>
>
> The input voltage (in mV) of the corresponding channel. RO
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> in\[0-7\]\_min
>
> </td>
> <td>
>
>
> The lower input limit (in mV) for the corresponding channel. ADC range and LSB will be updated when the limit is changed. For the MAX127, it will be adjusted to -10000, -5000, or 0. RW
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> in\[0-7\]\_max
>
> </td>
> <td>
>
>
> The higher input limit (in mV) for the corresponding channel. ADC range and LSB will be updated when the limit is changed. For the MAX127, it will be adjusted to 0, 5000, or 10000. RW
>
> </td>
> </tr>
> </tbody>
> </table>
