max34440.rst 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. Kernel driver max34440
  2. ======================
  3. Supported chips:
  4. * ADI ADPM12160
  5. Prefixes: 'adpm12160'
  6. Addresses scanned: -
  7. Datasheet: -
  8. * ADI ADPM12200
  9. Prefixes: 'adpm12200'
  10. Addresses scanned: -
  11. Datasheet: -
  12. * Maxim MAX34440
  13. Prefixes: 'max34440'
  14. Addresses scanned: -
  15. Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max34440.pdf
  16. * Maxim MAX34441
  17. PMBus 5-Channel Power-Supply Manager and Intelligent Fan Controller
  18. Prefixes: 'max34441'
  19. Addresses scanned: -
  20. Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max34441.pdf
  21. * Maxim MAX34446
  22. PMBus Power-Supply Data Logger
  23. Prefixes: 'max34446'
  24. Addresses scanned: -
  25. Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max34446.pdf
  26. * Maxim MAX34451
  27. PMBus 16-Channel V/I Monitor and 12-Channel Sequencer/Marginer
  28. Prefixes: 'max34451'
  29. Addresses scanned: -
  30. Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max34451.pdf
  31. * Maxim MAX34460
  32. PMBus 12-Channel Voltage Monitor & Sequencer
  33. Prefix: 'max34460'
  34. Addresses scanned: -
  35. Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max34460.pdf
  36. * Maxim MAX34461
  37. PMBus 16-Channel Voltage Monitor & Sequencer
  38. Prefix: 'max34461'
  39. Addresses scanned: -
  40. Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max34461.pdf
  41. Author: Guenter Roeck <linux@roeck-us.net>
  42. Description
  43. -----------
  44. This driver supports multiple devices: hardware monitoring for Maxim MAX34440
  45. PMBus 6-Channel Power-Supply Manager, MAX34441 PMBus 5-Channel Power-Supply
  46. Manager and Intelligent Fan Controller, and MAX34446 PMBus Power-Supply Data
  47. Logger; PMBus Voltage Monitor and Sequencers for MAX34451, MAX34460, and
  48. MAX34461; PMBus DC/DC Power Module ADPM12160, and ADPM12200. The MAX34451
  49. supports monitoring voltage or current of 12 channels based on GIN pins. The
  50. MAX34460 supports 12 voltage channels, and the MAX34461 supports 16 voltage
  51. channels. The ADPM12160, and ADPM12200 also monitors both input and output
  52. of voltage and current.
  53. The driver is a client driver to the core PMBus driver. Please see
  54. Documentation/hwmon/pmbus.rst for details on PMBus client drivers.
  55. Usage Notes
  56. -----------
  57. This driver does not auto-detect devices. You will have to instantiate the
  58. devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for
  59. details.
  60. For MAX34446, the value of the currX_crit attribute determines if current or
  61. voltage measurement is enabled for a given channel. Voltage measurement is
  62. enabled if currX_crit is set to 0; current measurement is enabled if the
  63. attribute is set to a positive value. Power measurement is only enabled if
  64. channel 1 (3) is configured for voltage measurement, and channel 2 (4) is
  65. configured for current measurement.
  66. Platform data support
  67. ---------------------
  68. The driver supports standard PMBus driver platform data.
  69. Sysfs entries
  70. -------------
  71. The following attributes are supported. Limits are read-write; all other
  72. attributes are read-only.
  73. In
  74. ~~
  75. ======================= =======================================================
  76. in[1-6]_label "vout[1-6]".
  77. in[1-6]_input Measured voltage. From READ_VOUT register.
  78. in[1-6]_min Minimum Voltage. From VOUT_UV_WARN_LIMIT register.
  79. in[1-6]_max Maximum voltage. From VOUT_OV_WARN_LIMIT register.
  80. in[1-6]_lcrit Critical minimum Voltage. VOUT_UV_FAULT_LIMIT register.
  81. in[1-6]_crit Critical maximum voltage. From VOUT_OV_FAULT_LIMIT
  82. register.
  83. in[1-6]_min_alarm Voltage low alarm. From VOLTAGE_UV_WARNING status.
  84. in[1-6]_max_alarm Voltage high alarm. From VOLTAGE_OV_WARNING status.
  85. in[1-6]_lcrit_alarm Voltage critical low alarm. From VOLTAGE_UV_FAULT
  86. status.
  87. in[1-6]_crit_alarm Voltage critical high alarm. From VOLTAGE_OV_FAULT
  88. status.
  89. in[1-6]_lowest Historical minimum voltage.
  90. in[1-6]_highest Historical maximum voltage.
  91. in[1-6]_reset_history Write any value to reset history.
  92. ======================= =======================================================
  93. .. note::
  94. - MAX34446 only supports in[1-4].
  95. - ADPM12160, and ADPM12200 only supports in[1-2]. Label is "vin1"
  96. and "vout1" respectively.
  97. Curr
  98. ~~~~
  99. ======================= ========================================================
  100. curr[1-6]_label "iout[1-6]".
  101. curr[1-6]_input Measured current. From READ_IOUT register.
  102. curr[1-6]_max Maximum current. From IOUT_OC_WARN_LIMIT register.
  103. curr[1-6]_crit Critical maximum current. From IOUT_OC_FAULT_LIMIT
  104. register.
  105. curr[1-6]_max_alarm Current high alarm. From IOUT_OC_WARNING status.
  106. curr[1-6]_crit_alarm Current critical high alarm. From IOUT_OC_FAULT status.
  107. curr[1-4]_average Historical average current (MAX34446/34451 only).
  108. curr[1-6]_highest Historical maximum current.
  109. curr[1-6]_reset_history Write any value to reset history.
  110. ======================= ========================================================
  111. .. note::
  112. - in6 and curr6 attributes only exist for MAX34440.
  113. - MAX34446 only supports curr[1-4].
  114. - For ADPM12160, and ADPM12200, curr[1] is "iin1" and curr[2-6]
  115. are "iout[1-5]".
  116. Power
  117. ~~~~~
  118. ======================= ========================================================
  119. power[1,3]_label "pout[1,3]"
  120. power[1,3]_input Measured power.
  121. power[1,3]_average Historical average power.
  122. power[1,3]_highest Historical maximum power.
  123. ======================= ========================================================
  124. .. note:: Power attributes only exist for MAX34446.
  125. Temp
  126. ~~~~
  127. ======================= ========================================================
  128. temp[1-8]_input Measured temperatures. From READ_TEMPERATURE_1 register.
  129. temp1 is the chip's internal temperature. temp2..temp5
  130. are remote I2C temperature sensors. For MAX34441, temp6
  131. is a remote thermal-diode sensor. For MAX34440, temp6..8
  132. are remote I2C temperature sensors.
  133. temp[1-8]_max Maximum temperature. From OT_WARN_LIMIT register.
  134. temp[1-8]_crit Critical high temperature. From OT_FAULT_LIMIT register.
  135. temp[1-8]_max_alarm Temperature high alarm.
  136. temp[1-8]_crit_alarm Temperature critical high alarm.
  137. temp[1-8]_average Historical average temperature (MAX34446 only).
  138. temp[1-8]_highest Historical maximum temperature.
  139. temp[1-8]_reset_history Write any value to reset history.
  140. ======================= ========================================================
  141. .. note::
  142. - temp7 and temp8 attributes only exist for MAX34440.
  143. - MAX34446 only supports temp[1-3].
  144. - ADPM12160, and ADPM12200 only supports temp[1].
  145. .. note::
  146. - MAX34451 supports attribute groups in[1-16] (or curr[1-16] based on
  147. input pins) and temp[1-5].
  148. - MAX34460 supports attribute groups in[1-12] and temp[1-5].
  149. - MAX34461 supports attribute groups in[1-16] and temp[1-5].