Documentation / hwmon / max127.rst


Based on kernel version 6.8. Page generated on 2024-03-11 21:26 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
.. SPDX-License-Identifier: GPL-2.0-or-later

Kernel driver max127
====================

Author:

  * Tao Ren <rentao.bupt@gmail.com>

Supported chips:

  * Maxim MAX127

    Prefix: 'max127'

    Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX127-MAX128.pdf

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.

Sysfs interface
---------------

  ============== ==============================================================
  in[0-7]_input  The input voltage (in mV) of the corresponding channel.
		 RO

  in[0-7]_min    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

  in[0-7]_max    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
  ============== ==============================================================