max31760.rst 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. .. SPDX-License-Identifier: GPL-2.0-or-later
  2. Kernel driver max31760
  3. ======================
  4. Supported chips:
  5. * Analog Devices MAX31760
  6. Prefix: 'max31760'
  7. Addresses scanned: none
  8. Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX31760.pdf
  9. Author: Ibrahim Tilki <[email protected]>
  10. Description
  11. -----------
  12. The MAX31760 integrates temperature sensing along with precision PWM fan
  13. control. It accurately measures its local die temperature and the remote
  14. temperature of a discrete diode-connected transistor, such as a 2N3906,
  15. or a thermal diode commonly found on CPUs, graphics processor units (GPUs),
  16. and other ASICs. Multiple temperature thresholds, such as local
  17. high/overtemperature (OT) and remote high/overtemperature, can be set by an
  18. I2C-compatible interface. Fan speed is controlled based on the temperature
  19. reading as an index to a 48-byte lookup table (LUT) containing
  20. user-programmed PWM values. The flexible LUT-based architecture enables
  21. the user to program a smooth nonlinear fan speed vs. temperature transfer
  22. function to minimize acoustic fan noise. Two tachometer inputs allow
  23. measuring the speeds of two fans independently. When the local or remote
  24. OT threshold is exceeded, the SHDN pin is asserted low and can be used to
  25. shut down the system. A dedicated ALERT pin reports that either a local or
  26. remote high-temperature threshold has been exceeded.
  27. Temperature measurement range: from -55°C to 125°C
  28. Temperature Resolution: 11 Bits, ±0.125°C
  29. Please refer how to instantiate this driver: Documentation/i2c/instantiating-devices.rst
  30. Lookup table for auto fan control
  31. ---------------------------------
  32. ========= =================================
  33. LUT Index Name
  34. ========= =================================
  35. 1 PWM value for T < +18°C
  36. 2 PWM value for +18°C ≤ T < +20°C
  37. 3 PWM value for +20°C ≤ T < +22°C
  38. ... ...
  39. 47 PWM value for +108°C ≤ T < +110°C
  40. 48 PWM value for T ≥ +110°C
  41. ========= =================================
  42. Sysfs entries
  43. -------------
  44. =============================== =================================================================================
  45. fan[1-2]_input Fan speed (in RPM)
  46. fan[1-2]_enable Enable fan readings and fan fault alarms
  47. fan[1-2]_fault Fan fault status
  48. temp[1-2]_label "Remote" and "Local" temperature channel labels
  49. temp[1-2]_input Temperature sensor readings (in millidegrees Celsius)
  50. temp1_fault Remote temperature sensor fault status
  51. temp[1-2]_max Temperature max value. Asserts "ALERT" pin when exceeded
  52. temp[1-2]_max_alarm Temperature max alarm status
  53. temp[1-2]_crit Temperature critical value. Asserts "SHDN" pin when exceeded
  54. temp[1-2]_crit_alarm Temperature critical alarm status
  55. pwm1 PWM value for direct fan control
  56. pwm1_enable 1: direct fan control, 2: temperature based auto fan control
  57. pwm1_freq PWM frequency in hertz
  58. pwm1_auto_channels_temp Temperature source for auto fan control. 1: temp1, 2: temp2, 3: max(temp1, temp2)
  59. pwm1_auto_point[1-48]_pwm PWM value for LUT point
  60. pwm1_auto_point_temp_hyst Temperature hysteresis for auto fan control. Can be either 2000mC or 4000mC
  61. =============================== =================================================================================