blob: 4ed3fe6b999a458cab632c7dd96a823e01f8137b [file] [log] [blame]
R.Marek@sh.cvut.cz7f15b662005-05-26 12:42:19 +00001Kernel driver lm77
2==================
3
4Supported chips:
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -03005
R.Marek@sh.cvut.cz7f15b662005-05-26 12:42:19 +00006 * National Semiconductor LM77
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -03007
R.Marek@sh.cvut.cz7f15b662005-05-26 12:42:19 +00008 Prefix: 'lm77'
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -03009
R.Marek@sh.cvut.cz7f15b662005-05-26 12:42:19 +000010 Addresses scanned: I2C 0x48 - 0x4b
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030011
R.Marek@sh.cvut.cz7f15b662005-05-26 12:42:19 +000012 Datasheet: Publicly available at the National Semiconductor website
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030013
14 http://www.national.com/
15
R.Marek@sh.cvut.cz7f15b662005-05-26 12:42:19 +000016
17Author: Andras BALI <drewie@freemail.hu>
18
19Description
20-----------
21
22The LM77 implements one temperature sensor. The temperature
23sensor incorporates a band-gap type temperature sensor,
2410-bit ADC, and a digital comparator with user-programmable upper
25and lower limit values.
26
Guenter Roeck50bf4652014-04-20 08:07:42 -070027The LM77 implements 3 limits: low (temp1_min), high (temp1_max) and
28critical (temp1_crit.) It also implements an hysteresis mechanism which
29applies to all 3 limits. The relative difference is stored in a single
30register on the chip, which means that the relative difference between
31the limit and its hysteresis is always the same for all 3 limits.
32
33This implementation detail implies the following:
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030034
Guenter Roeck50bf4652014-04-20 08:07:42 -070035* When setting a limit, its hysteresis will automatically follow, the
36 difference staying unchanged. For example, if the old critical limit
37 was 80 degrees C, and the hysteresis was 75 degrees C, and you change
38 the critical limit to 90 degrees C, then the hysteresis will
39 automatically change to 85 degrees C.
40* All 3 hysteresis can't be set independently. We decided to make
41 temp1_crit_hyst writable, while temp1_min_hyst and temp1_max_hyst are
42 read-only. Setting temp1_crit_hyst writes the difference between
43 temp1_crit_hyst and temp1_crit into the chip, and the same relative
44 hysteresis applies automatically to the low and high limits.
45* The limits should be set before the hysteresis.