xref: /OK3568_Linux_fs/kernel/Documentation/hwmon/adm1021.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunKernel driver adm1021
2*4882a593Smuzhiyun=====================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunSupported chips:
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun  * Analog Devices ADM1021
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun    Prefix: 'adm1021'
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun    Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun    Datasheet: Publicly available at the Analog Devices website
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun  * Analog Devices ADM1021A/ADM1023
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun    Prefix: 'adm1023'
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun    Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun    Datasheet: Publicly available at the Analog Devices website
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun  * Genesys Logic GL523SM
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun    Prefix: 'gl523sm'
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun    Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun    Datasheet:
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun  * Maxim MAX1617
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun    Prefix: 'max1617'
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun    Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun    Datasheet: Publicly available at the Maxim website
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun  * Maxim MAX1617A
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun    Prefix: 'max1617a'
41*4882a593Smuzhiyun
42*4882a593Smuzhiyun    Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
43*4882a593Smuzhiyun
44*4882a593Smuzhiyun    Datasheet: Publicly available at the Maxim website
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun  * National Semiconductor LM84
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun    Prefix: 'lm84'
49*4882a593Smuzhiyun
50*4882a593Smuzhiyun    Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
51*4882a593Smuzhiyun
52*4882a593Smuzhiyun    Datasheet: Publicly available at the National Semiconductor website
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun  * Philips NE1617
55*4882a593Smuzhiyun
56*4882a593Smuzhiyun    Prefix: 'max1617' (probably detected as a max1617)
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun    Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun    Datasheet: Publicly available at the Philips website
61*4882a593Smuzhiyun
62*4882a593Smuzhiyun  * Philips NE1617A
63*4882a593Smuzhiyun
64*4882a593Smuzhiyun    Prefix: 'max1617' (probably detected as a max1617)
65*4882a593Smuzhiyun
66*4882a593Smuzhiyun    Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
67*4882a593Smuzhiyun
68*4882a593Smuzhiyun    Datasheet: Publicly available at the Philips website
69*4882a593Smuzhiyun
70*4882a593Smuzhiyun  * TI THMC10
71*4882a593Smuzhiyun
72*4882a593Smuzhiyun    Prefix: 'thmc10'
73*4882a593Smuzhiyun
74*4882a593Smuzhiyun    Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
75*4882a593Smuzhiyun
76*4882a593Smuzhiyun    Datasheet: Publicly available at the TI website
77*4882a593Smuzhiyun
78*4882a593Smuzhiyun  * Onsemi MC1066
79*4882a593Smuzhiyun
80*4882a593Smuzhiyun    Prefix: 'mc1066'
81*4882a593Smuzhiyun
82*4882a593Smuzhiyun    Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
83*4882a593Smuzhiyun
84*4882a593Smuzhiyun    Datasheet: Publicly available at the Onsemi website
85*4882a593Smuzhiyun
86*4882a593Smuzhiyun
87*4882a593SmuzhiyunAuthors:
88*4882a593Smuzhiyun	- Frodo Looijaard <frodol@dds.nl>,
89*4882a593Smuzhiyun	- Philip Edelbrock <phil@netroedge.com>
90*4882a593Smuzhiyun
91*4882a593SmuzhiyunModule Parameters
92*4882a593Smuzhiyun-----------------
93*4882a593Smuzhiyun
94*4882a593Smuzhiyun* read_only: int
95*4882a593Smuzhiyun  Don't set any values, read only mode
96*4882a593Smuzhiyun
97*4882a593Smuzhiyun
98*4882a593SmuzhiyunDescription
99*4882a593Smuzhiyun-----------
100*4882a593Smuzhiyun
101*4882a593SmuzhiyunThe chips supported by this driver are very similar. The Maxim MAX1617 is
102*4882a593Smuzhiyunthe oldest; it has the problem that it is not very well detectable. The
103*4882a593SmuzhiyunMAX1617A solves that. The ADM1021 is a straight clone of the MAX1617A.
104*4882a593SmuzhiyunDitto for the THMC10. From here on, we will refer to all these chips as
105*4882a593SmuzhiyunADM1021-clones.
106*4882a593Smuzhiyun
107*4882a593SmuzhiyunThe ADM1021 and MAX1617A reports a die code, which is a sort of revision
108*4882a593Smuzhiyuncode. This can help us pinpoint problems; it is not very useful
109*4882a593Smuzhiyunotherwise.
110*4882a593Smuzhiyun
111*4882a593SmuzhiyunADM1021-clones implement two temperature sensors. One of them is internal,
112*4882a593Smuzhiyunand measures the temperature of the chip itself; the other is external and
113*4882a593Smuzhiyunis realised in the form of a transistor-like device. A special alarm
114*4882a593Smuzhiyunindicates whether the remote sensor is connected.
115*4882a593Smuzhiyun
116*4882a593SmuzhiyunEach sensor has its own low and high limits. When they are crossed, the
117*4882a593Smuzhiyuncorresponding alarm is set and remains on as long as the temperature stays
118*4882a593Smuzhiyunout of range. Temperatures are measured in degrees Celsius. Measurements
119*4882a593Smuzhiyunare possible between -65 and +127 degrees, with a resolution of one degree.
120*4882a593Smuzhiyun
121*4882a593SmuzhiyunIf an alarm triggers, it will remain triggered until the hardware register
122*4882a593Smuzhiyunis read at least once. This means that the cause for the alarm may already
123*4882a593Smuzhiyunhave disappeared!
124*4882a593Smuzhiyun
125*4882a593SmuzhiyunThis driver only updates its values each 1.5 seconds; reading it more often
126*4882a593Smuzhiyunwill do no harm, but will return 'old' values. It is possible to make
127*4882a593SmuzhiyunADM1021-clones do faster measurements, but there is really no good reason
128*4882a593Smuzhiyunfor that.
129*4882a593Smuzhiyun
130*4882a593Smuzhiyun
131*4882a593SmuzhiyunNetburst-based Xeon support
132*4882a593Smuzhiyun---------------------------
133*4882a593Smuzhiyun
134*4882a593SmuzhiyunSome Xeon processors based on the Netburst (early Pentium 4, from 2001 to
135*4882a593Smuzhiyun2003) microarchitecture had real MAX1617, ADM1021, or compatible chips
136*4882a593Smuzhiyunwithin them, with two temperature sensors. Other Xeon processors of this
137*4882a593Smuzhiyunera (with 400 MHz FSB) had chips with only one temperature sensor.
138*4882a593Smuzhiyun
139*4882a593SmuzhiyunIf you have such an old Xeon, and you get two valid temperatures when
140*4882a593Smuzhiyunloading the adm1021 module, then things are good.
141*4882a593Smuzhiyun
142*4882a593SmuzhiyunIf nothing happens when loading the adm1021 module, and you are certain
143*4882a593Smuzhiyunthat your specific Xeon processor model includes compatible sensors, you
144*4882a593Smuzhiyunwill have to explicitly instantiate the sensor chips from user-space. See
145*4882a593Smuzhiyunmethod 4 in Documentation/i2c/instantiating-devices.rst. Possible slave
146*4882a593Smuzhiyunaddresses are 0x18, 0x1a, 0x29, 0x2b, 0x4c, or 0x4e. It is likely that
147*4882a593Smuzhiyunonly temp2 will be correct and temp1 will have to be ignored.
148*4882a593Smuzhiyun
149*4882a593SmuzhiyunPrevious generations of the Xeon processor (based on Pentium II/III)
150*4882a593Smuzhiyundidn't have these sensors. Next generations of Xeon processors (533 MHz
151*4882a593SmuzhiyunFSB and faster) lost them, until the Core-based generation which
152*4882a593Smuzhiyunintroduced integrated digital thermal sensors. These are supported by
153*4882a593Smuzhiyunthe coretemp driver.
154