max127.rst 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. .. SPDX-License-Identifier: GPL-2.0-or-later
  2. Kernel driver max127
  3. ====================
  4. Author:
  5. * Tao Ren <[email protected]>
  6. Supported chips:
  7. * Maxim MAX127
  8. Prefix: 'max127'
  9. Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX127-MAX128.pdf
  10. Description
  11. -----------
  12. The MAX127 is a multirange, 12-bit data acquisition system (DAS) providing
  13. 8 analog input channels that are independently software programmable for
  14. a variety of ranges. The available ranges are {0,5V}, {0,10V}, {-5,5V}
  15. and {-10,10V}.
  16. The MAX127 features a 2-wire, I2C-compatible serial interface that allows
  17. communication among multiple devices using SDA and SCL lines.
  18. Sysfs interface
  19. ---------------
  20. ============== ==============================================================
  21. in[0-7]_input The input voltage (in mV) of the corresponding channel.
  22. RO
  23. in[0-7]_min The lower input limit (in mV) for the corresponding channel.
  24. ADC range and LSB will be updated when the limit is changed.
  25. For the MAX127, it will be adjusted to -10000, -5000, or 0.
  26. RW
  27. in[0-7]_max The higher input limit (in mV) for the corresponding channel.
  28. ADC range and LSB will be updated when the limit is changed.
  29. For the MAX127, it will be adjusted to 0, 5000, or 10000.
  30. RW
  31. ============== ==============================================================