ina209 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. Kernel driver ina209
  2. =====================
  3. Supported chips:
  4. * Burr-Brown / Texas Instruments INA209
  5. Prefix: 'ina209'
  6. Addresses scanned: -
  7. Datasheet:
  8. http://www.ti.com/lit/gpn/ina209
  9. Author: Paul Hays <Paul.Hays@cattail.ca>
  10. Author: Ira W. Snyder <iws@ovro.caltech.edu>
  11. Author: Guenter Roeck <linux@roeck-us.net>
  12. Description
  13. -----------
  14. The TI / Burr-Brown INA209 monitors voltage, current, and power on the high side
  15. of a D.C. power supply. It can perform measurements and calculations in the
  16. background to supply readings at any time. It includes a programmable
  17. calibration multiplier to scale the displayed current and power values.
  18. Sysfs entries
  19. -------------
  20. The INA209 chip is highly configurable both via hardwiring and via
  21. the I2C bus. See the datasheet for details.
  22. This tries to expose most monitoring features of the hardware via
  23. sysfs. It does not support every feature of this chip.
  24. in0_input shunt voltage (mV)
  25. in0_input_highest shunt voltage historical maximum reading (mV)
  26. in0_input_lowest shunt voltage historical minimum reading (mV)
  27. in0_reset_history reset shunt voltage history
  28. in0_max shunt voltage max alarm limit (mV)
  29. in0_min shunt voltage min alarm limit (mV)
  30. in0_crit_max shunt voltage crit max alarm limit (mV)
  31. in0_crit_min shunt voltage crit min alarm limit (mV)
  32. in0_max_alarm shunt voltage max alarm limit exceeded
  33. in0_min_alarm shunt voltage min alarm limit exceeded
  34. in0_crit_max_alarm shunt voltage crit max alarm limit exceeded
  35. in0_crit_min_alarm shunt voltage crit min alarm limit exceeded
  36. in1_input bus voltage (mV)
  37. in1_input_highest bus voltage historical maximum reading (mV)
  38. in1_input_lowest bus voltage historical minimum reading (mV)
  39. in1_reset_history reset bus voltage history
  40. in1_max bus voltage max alarm limit (mV)
  41. in1_min bus voltage min alarm limit (mV)
  42. in1_crit_max bus voltage crit max alarm limit (mV)
  43. in1_crit_min bus voltage crit min alarm limit (mV)
  44. in1_max_alarm bus voltage max alarm limit exceeded
  45. in1_min_alarm bus voltage min alarm limit exceeded
  46. in1_crit_max_alarm bus voltage crit max alarm limit exceeded
  47. in1_crit_min_alarm bus voltage crit min alarm limit exceeded
  48. power1_input power measurement (uW)
  49. power1_input_highest power historical maximum reading (uW)
  50. power1_reset_history reset power history
  51. power1_max power max alarm limit (uW)
  52. power1_crit power crit alarm limit (uW)
  53. power1_max_alarm power max alarm limit exceeded
  54. power1_crit_alarm power crit alarm limit exceeded
  55. curr1_input current measurement (mA)
  56. update_interval data conversion time; affects number of samples used
  57. to average results for shunt and bus voltages.
  58. General Remarks
  59. ---------------
  60. The power and current registers in this chip require that the calibration
  61. register is programmed correctly before they are used. Normally this is expected
  62. to be done in the BIOS. In the absence of BIOS programming, the shunt resistor
  63. voltage can be provided using platform data. The driver uses platform data from
  64. the ina2xx driver for this purpose. If calibration register data is not provided
  65. via platform data, the driver checks if the calibration register has been
  66. programmed (ie has a value not equal to zero). If so, this value is retained.
  67. Otherwise, a default value reflecting a shunt resistor value of 10 mOhm is
  68. programmed into the calibration register.
  69. Output Pins
  70. -----------
  71. Output pin programming is a board feature which depends on the BIOS. It is
  72. outside the scope of a hardware monitoring driver to enable or disable output
  73. pins.