w83791d 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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/W83791Da.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. Module Parameters
  19. -----------------
  20. * init boolean
  21. (default 0)
  22. Use 'init=1' to have the driver do extra software initializations.
  23. The default behavior is to do the minimum initialization possible
  24. and depend on the BIOS to properly setup the chip. If you know you
  25. have a w83791d and you're having problems, try init=1 before trying
  26. reset=1.
  27. * reset boolean
  28. (default 0)
  29. Use 'reset=1' to reset the chip (via index 0x40, bit 7). The default
  30. behavior is no chip reset to preserve BIOS settings.
  31. * force_subclients=bus,caddr,saddr,saddr
  32. This is used to force the i2c addresses for subclients of
  33. a certain chip. Example usage is `force_subclients=0,0x2f,0x4a,0x4b'
  34. to force the subclients of chip 0x2f on bus 0 to i2c addresses
  35. 0x4a and 0x4b.
  36. Description
  37. -----------
  38. This driver implements support for the Winbond W83791D chip.
  39. Detection of the chip can sometimes be foiled because it can be in an
  40. internal state that allows no clean access (Bank with ID register is not
  41. currently selected). If you know the address of the chip, use a 'force'
  42. parameter; this will put it into a more well-behaved state first.
  43. The driver implements three temperature sensors, five fan rotation speed
  44. sensors, and ten voltage sensors.
  45. Temperatures are measured in degrees Celsius and measurement resolution is 1
  46. degC for temp1 and 0.5 degC for temp2 and temp3. An alarm is triggered when
  47. the temperature gets higher than the Overtemperature Shutdown value; it stays
  48. on until the temperature falls below the Hysteresis value.
  49. Fan rotation speeds are reported in RPM (rotations per minute). An alarm is
  50. triggered if the rotation speed has dropped below a programmable limit. Fan
  51. readings can be divided by a programmable divider (1, 2, 4, 8 for fan 1/2/3
  52. and 1, 2, 4, 8, 16, 32, 64 or 128 for fan 4/5) to give the readings more
  53. range or accuracy.
  54. Voltage sensors (also known as IN sensors) report their values in millivolts.
  55. An alarm is triggered if the voltage has crossed a programmable minimum
  56. or maximum limit.
  57. Alarms are provided as output from a "realtime status register". The
  58. following bits are defined:
  59. bit - alarm on:
  60. 0 - Vcore
  61. 1 - VINR0
  62. 2 - +3.3VIN
  63. 3 - 5VDD
  64. 4 - temp1
  65. 5 - temp2
  66. 6 - fan1
  67. 7 - fan2
  68. 8 - +12VIN
  69. 9 - -12VIN
  70. 10 - -5VIN
  71. 11 - fan3
  72. 12 - chassis
  73. 13 - temp3
  74. 14 - VINR1
  75. 15 - reserved
  76. 16 - tart1
  77. 17 - tart2
  78. 18 - tart3
  79. 19 - VSB
  80. 20 - VBAT
  81. 21 - fan4
  82. 22 - fan5
  83. 23 - reserved
  84. When an alarm goes off, you can be warned by a beeping signal through your
  85. computer speaker. It is possible to enable all beeping globally, or only
  86. the beeping for some alarms.
  87. The driver only reads the chip values each 3 seconds; reading them more
  88. often will do no harm, but will return 'old' values.
  89. W83791D TODO:
  90. ---------------
  91. Provide a patch for per-file alarms as discussed on the mailing list
  92. Provide a patch for smart-fan control (still need appropriate motherboard/fans)