2005-05-26 16:42:19 +04:00
|
|
|
Kernel driver lm63
|
|
|
|
==================
|
|
|
|
|
|
|
|
Supported chips:
|
2019-04-17 12:46:28 +03:00
|
|
|
|
2005-05-26 16:42:19 +04:00
|
|
|
* National Semiconductor LM63
|
2019-04-17 12:46:28 +03:00
|
|
|
|
2005-05-26 16:42:19 +04:00
|
|
|
Prefix: 'lm63'
|
2019-04-17 12:46:28 +03:00
|
|
|
|
2005-05-26 16:42:19 +04:00
|
|
|
Addresses scanned: I2C 0x4c
|
2019-04-17 12:46:28 +03:00
|
|
|
|
2005-05-26 16:42:19 +04:00
|
|
|
Datasheet: Publicly available at the National Semiconductor website
|
2019-04-17 12:46:28 +03:00
|
|
|
|
|
|
|
http://www.national.com/pf/LM/LM63.html
|
|
|
|
|
2010-05-27 21:58:38 +04:00
|
|
|
* National Semiconductor LM64
|
2019-04-17 12:46:28 +03:00
|
|
|
|
2010-05-27 21:58:38 +04:00
|
|
|
Prefix: 'lm64'
|
2019-04-17 12:46:28 +03:00
|
|
|
|
2010-05-27 21:58:38 +04:00
|
|
|
Addresses scanned: I2C 0x18 and 0x4e
|
2019-04-17 12:46:28 +03:00
|
|
|
|
2010-05-27 21:58:38 +04:00
|
|
|
Datasheet: Publicly available at the National Semiconductor website
|
2019-04-17 12:46:28 +03:00
|
|
|
|
|
|
|
http://www.national.com/pf/LM/LM64.html
|
|
|
|
|
2012-01-17 01:51:45 +04:00
|
|
|
* National Semiconductor LM96163
|
2019-04-17 12:46:28 +03:00
|
|
|
|
2012-01-17 01:51:45 +04:00
|
|
|
Prefix: 'lm96163'
|
2019-04-17 12:46:28 +03:00
|
|
|
|
2012-01-17 01:51:45 +04:00
|
|
|
Addresses scanned: I2C 0x4c
|
2019-04-17 12:46:28 +03:00
|
|
|
|
2012-01-17 01:51:45 +04:00
|
|
|
Datasheet: Publicly available at the National Semiconductor website
|
2019-04-17 12:46:28 +03:00
|
|
|
|
|
|
|
http://www.national.com/pf/LM/LM96163.html
|
|
|
|
|
2005-05-26 16:42:19 +04:00
|
|
|
|
2014-01-29 23:40:08 +04:00
|
|
|
Author: Jean Delvare <jdelvare@suse.de>
|
2005-05-26 16:42:19 +04:00
|
|
|
|
|
|
|
Thanks go to Tyan and especially Alex Buckingham for setting up a remote
|
|
|
|
access to their S4882 test platform for this driver.
|
2019-04-17 12:46:28 +03:00
|
|
|
|
2020-07-19 20:55:12 +03:00
|
|
|
https://www.tyan.com/
|
2005-05-26 16:42:19 +04:00
|
|
|
|
|
|
|
Description
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The LM63 is a digital temperature sensor with integrated fan monitoring
|
|
|
|
and control.
|
|
|
|
|
|
|
|
The LM63 is basically an LM86 with fan speed monitoring and control
|
|
|
|
capabilities added. It misses some of the LM86 features though:
|
2019-04-17 12:46:28 +03:00
|
|
|
|
2005-05-26 16:42:19 +04:00
|
|
|
- No low limit for local temperature.
|
|
|
|
- No critical limit for local temperature.
|
|
|
|
- Critical limit for remote temperature can be changed only once. We
|
|
|
|
will consider that the critical limit is read-only.
|
|
|
|
|
|
|
|
The datasheet isn't very clear about what the tachometer reading is.
|
|
|
|
|
|
|
|
An explanation from National Semiconductor: The two lower bits of the read
|
|
|
|
value have to be masked out. The value is still 16 bit in width.
|
|
|
|
|
|
|
|
All temperature values are given in degrees Celsius. Resolution is 1.0
|
|
|
|
degree for the local temperature, 0.125 degree for the remote temperature.
|
|
|
|
|
|
|
|
The fan speed is measured using a tachometer. Contrary to most chips which
|
|
|
|
store the value in an 8-bit register and have a selectable clock divider
|
|
|
|
to make sure that the result will fit in the register, the LM63 uses 16-bit
|
|
|
|
value for measuring the speed of the fan. It can measure fan speeds down to
|
|
|
|
83 RPM, at least in theory.
|
|
|
|
|
|
|
|
Note that the pin used for fan monitoring is shared with an alert out
|
|
|
|
function. Depending on how the board designer wanted to use the chip, fan
|
|
|
|
speed monitoring will or will not be possible. The proper chip configuration
|
2012-01-17 01:51:46 +04:00
|
|
|
is left to the BIOS, and the driver will blindly trust it. Only the original
|
|
|
|
LM63 suffers from this limitation, the LM64 and LM96163 have separate pins
|
|
|
|
for fan monitoring and alert out. On the LM64, monitoring is always enabled;
|
|
|
|
on the LM96163 it can be disabled.
|
2005-05-26 16:42:19 +04:00
|
|
|
|
|
|
|
A PWM output can be used to control the speed of the fan. The LM63 has two
|
|
|
|
PWM modes: manual and automatic. Automatic mode is not fully implemented yet
|
|
|
|
(you cannot define your custom PWM/temperature curve), and mode change isn't
|
|
|
|
supported either.
|
|
|
|
|
2012-01-17 01:51:46 +04:00
|
|
|
The lm63 driver will not update its values more frequently than configured with
|
|
|
|
the update_interval sysfs attribute; reading them more often will do no harm,
|
2012-01-17 01:51:47 +04:00
|
|
|
but will return 'old' values. Values in the automatic fan control lookup table
|
|
|
|
(attributes pwm1_auto_*) have their own independent lifetime of 5 seconds.
|
2005-05-26 16:42:19 +04:00
|
|
|
|
2010-05-27 21:58:38 +04:00
|
|
|
The LM64 is effectively an LM63 with GPIO lines. The driver does not
|
|
|
|
support these GPIO lines at present.
|
2012-01-17 01:51:45 +04:00
|
|
|
|
|
|
|
The LM96163 is an enhanced version of LM63 with improved temperature accuracy
|
2012-01-17 01:51:46 +04:00
|
|
|
and better PWM resolution. For LM96163, the external temperature sensor type is
|
|
|
|
configurable as CPU embedded diode(1) or 3904 transistor(2).
|