w83791d 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. Kernel driver w83791d
  2. =====================
  3. Supported chips:
  4. * Winbond W83791D
  5. Prefix: 'w83791d'
  6. Addresses scanned: I2C 0x2c - 0x2f
  7. Datasheet: http://www.winbond-usa.com/products/winbond_products/pdfs/PCIC/W83791D_W83791Gb.pdf
  8. Author: Charles Spirakis <bezaur@gmail.com>
  9. This driver was derived from the w83781d.c and w83792d.c source files.
  10. Credits:
  11. w83781d.c:
  12. Frodo Looijaard <frodol@dds.nl>,
  13. Philip Edelbrock <phil@netroedge.com>,
  14. and Mark Studebaker <mdsxyz123@yahoo.com>
  15. w83792d.c:
  16. Chunhao Huang <DZShen@Winbond.com.tw>,
  17. Rudolf Marek <r.marek@sh.cvut.cz>
  18. Additional contributors:
  19. Sven Anders <anders@anduras.de>
  20. Module Parameters
  21. -----------------
  22. * init boolean
  23. (default 0)
  24. Use 'init=1' to have the driver do extra software initializations.
  25. The default behavior is to do the minimum initialization possible
  26. and depend on the BIOS to properly setup the chip. If you know you
  27. have a w83791d and you're having problems, try init=1 before trying
  28. reset=1.
  29. * reset boolean
  30. (default 0)
  31. Use 'reset=1' to reset the chip (via index 0x40, bit 7). The default
  32. behavior is no chip reset to preserve BIOS settings.
  33. * force_subclients=bus,caddr,saddr,saddr
  34. This is used to force the i2c addresses for subclients of
  35. a certain chip. Example usage is `force_subclients=0,0x2f,0x4a,0x4b'
  36. to force the subclients of chip 0x2f on bus 0 to i2c addresses
  37. 0x4a and 0x4b.
  38. Description
  39. -----------
  40. This driver implements support for the Winbond W83791D chip. The W83791G
  41. chip appears to be the same as the W83791D but is lead free.
  42. Detection of the chip can sometimes be foiled because it can be in an
  43. internal state that allows no clean access (Bank with ID register is not
  44. currently selected). If you know the address of the chip, use a 'force'
  45. parameter; this will put it into a more well-behaved state first.
  46. The driver implements three temperature sensors, five fan rotation speed
  47. sensors, and ten voltage sensors.
  48. Temperatures are measured in degrees Celsius and measurement resolution is 1
  49. degC for temp1 and 0.5 degC for temp2 and temp3. An alarm is triggered when
  50. the temperature gets higher than the Overtemperature Shutdown value; it stays
  51. on until the temperature falls below the Hysteresis value.
  52. Fan rotation speeds are reported in RPM (rotations per minute). An alarm is
  53. triggered if the rotation speed has dropped below a programmable limit. Fan
  54. readings can be divided by a programmable divider (1, 2, 4, 8 for fan 1/2/3
  55. and 1, 2, 4, 8, 16, 32, 64 or 128 for fan 4/5) to give the readings more
  56. range or accuracy.
  57. Voltage sensors (also known as IN sensors) report their values in millivolts.
  58. An alarm is triggered if the voltage has crossed a programmable minimum
  59. or maximum limit.
  60. The bit ordering for the alarm "realtime status register" and the
  61. "beep enable registers" are different.
  62. in0 (VCORE) : alarms: 0x000001 beep_enable: 0x000001
  63. in1 (VINR0) : alarms: 0x000002 beep_enable: 0x002000 <== mismatch
  64. in2 (+3.3VIN): alarms: 0x000004 beep_enable: 0x000004
  65. in3 (5VDD) : alarms: 0x000008 beep_enable: 0x000008
  66. in4 (+12VIN) : alarms: 0x000100 beep_enable: 0x000100
  67. in5 (-12VIN) : alarms: 0x000200 beep_enable: 0x000200
  68. in6 (-5VIN) : alarms: 0x000400 beep_enable: 0x000400
  69. in7 (VSB) : alarms: 0x080000 beep_enable: 0x010000 <== mismatch
  70. in8 (VBAT) : alarms: 0x100000 beep_enable: 0x020000 <== mismatch
  71. in9 (VINR1) : alarms: 0x004000 beep_enable: 0x004000
  72. temp1 : alarms: 0x000010 beep_enable: 0x000010
  73. temp2 : alarms: 0x000020 beep_enable: 0x000020
  74. temp3 : alarms: 0x002000 beep_enable: 0x000002 <== mismatch
  75. fan1 : alarms: 0x000040 beep_enable: 0x000040
  76. fan2 : alarms: 0x000080 beep_enable: 0x000080
  77. fan3 : alarms: 0x000800 beep_enable: 0x000800
  78. fan4 : alarms: 0x200000 beep_enable: 0x200000
  79. fan5 : alarms: 0x400000 beep_enable: 0x400000
  80. tart1 : alarms: 0x010000 beep_enable: 0x040000 <== mismatch
  81. tart2 : alarms: 0x020000 beep_enable: 0x080000 <== mismatch
  82. tart3 : alarms: 0x040000 beep_enable: 0x100000 <== mismatch
  83. case_open : alarms: 0x001000 beep_enable: 0x001000
  84. user_enable : alarms: -------- beep_enable: 0x800000
  85. *** NOTE: It is the responsibility of user-space code to handle the fact
  86. that the beep enable and alarm bits are in different positions when using that
  87. feature of the chip.
  88. When an alarm goes off, you can be warned by a beeping signal through your
  89. computer speaker. It is possible to enable all beeping globally, or only
  90. the beeping for some alarms.
  91. The driver only reads the chip values each 3 seconds; reading them more
  92. often will do no harm, but will return 'old' values.
  93. W83791D TODO:
  94. ---------------
  95. Provide a patch for per-file alarms and beep enables as defined in the hwmon
  96. documentation (Documentation/hwmon/sysfs-interface)
  97. Provide a patch for smart-fan control (still need appropriate motherboard/fans)