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