lm63 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. Kernel driver lm63
  2. ==================
  3. Supported chips:
  4. * National Semiconductor LM63
  5. Prefix: 'lm63'
  6. Addresses scanned: I2C 0x4c
  7. Datasheet: Publicly available at the National Semiconductor website
  8. http://www.national.com/pf/LM/LM63.html
  9. * National Semiconductor LM64
  10. Prefix: 'lm64'
  11. Addresses scanned: I2C 0x18 and 0x4e
  12. Datasheet: Publicly available at the National Semiconductor website
  13. http://www.national.com/pf/LM/LM64.html
  14. Author: Jean Delvare <khali@linux-fr.org>
  15. Thanks go to Tyan and especially Alex Buckingham for setting up a remote
  16. access to their S4882 test platform for this driver.
  17. http://www.tyan.com/
  18. Description
  19. -----------
  20. The LM63 is a digital temperature sensor with integrated fan monitoring
  21. and control.
  22. The LM63 is basically an LM86 with fan speed monitoring and control
  23. capabilities added. It misses some of the LM86 features though:
  24. - No low limit for local temperature.
  25. - No critical limit for local temperature.
  26. - Critical limit for remote temperature can be changed only once. We
  27. will consider that the critical limit is read-only.
  28. The datasheet isn't very clear about what the tachometer reading is.
  29. An explanation from National Semiconductor: The two lower bits of the read
  30. value have to be masked out. The value is still 16 bit in width.
  31. All temperature values are given in degrees Celsius. Resolution is 1.0
  32. degree for the local temperature, 0.125 degree for the remote temperature.
  33. The fan speed is measured using a tachometer. Contrary to most chips which
  34. store the value in an 8-bit register and have a selectable clock divider
  35. to make sure that the result will fit in the register, the LM63 uses 16-bit
  36. value for measuring the speed of the fan. It can measure fan speeds down to
  37. 83 RPM, at least in theory.
  38. Note that the pin used for fan monitoring is shared with an alert out
  39. function. Depending on how the board designer wanted to use the chip, fan
  40. speed monitoring will or will not be possible. The proper chip configuration
  41. is left to the BIOS, and the driver will blindly trust it.
  42. A PWM output can be used to control the speed of the fan. The LM63 has two
  43. PWM modes: manual and automatic. Automatic mode is not fully implemented yet
  44. (you cannot define your custom PWM/temperature curve), and mode change isn't
  45. supported either.
  46. The lm63 driver will not update its values more frequently than every
  47. second; reading them more often will do no harm, but will return 'old'
  48. values.
  49. The LM64 is effectively an LM63 with GPIO lines. The driver does not
  50. support these GPIO lines at present.