ina238.rst 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. .. SPDX-License-Identifier: GPL-2.0-only
  2. Kernel driver ina238
  3. ====================
  4. Supported chips:
  5. * Texas Instruments INA238
  6. Prefix: 'ina238'
  7. Addresses: I2C 0x40 - 0x4f
  8. Datasheet:
  9. https://www.ti.com/lit/gpn/ina238
  10. Author: Nathan Rossi <[email protected]>
  11. Description
  12. -----------
  13. The INA238 is a current shunt, power and temperature monitor with an I2C
  14. interface. It includes a number of programmable functions including alerts,
  15. conversion rate, sample averaging and selectable shunt voltage accuracy.
  16. The shunt value in micro-ohms can be set via platform data or device tree at
  17. compile-time or via the shunt_resistor attribute in sysfs at run-time. Please
  18. refer to the Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml for bindings
  19. if the device tree is used.
  20. Sysfs entries
  21. -------------
  22. ======================= =======================================================
  23. in0_input Shunt voltage (mV)
  24. in0_min Minimum shunt voltage threshold (mV)
  25. in0_min_alarm Minimum shunt voltage alarm
  26. in0_max Maximum shunt voltage threshold (mV)
  27. in0_max_alarm Maximum shunt voltage alarm
  28. in1_input Bus voltage (mV)
  29. in1_min Minimum bus voltage threshold (mV)
  30. in1_min_alarm Minimum shunt voltage alarm
  31. in1_max Maximum bus voltage threshold (mV)
  32. in1_max_alarm Maximum shunt voltage alarm
  33. power1_input Power measurement (uW)
  34. power1_max Maximum power threshold (uW)
  35. power1_max_alarm Maximum power alarm
  36. curr1_input Current measurement (mA)
  37. temp1_input Die temperature measurement (mC)
  38. temp1_max Maximum die temperature threshold (mC)
  39. temp1_max_alarm Maximum die temperature alarm
  40. ======================= =======================================================