R.Marek@sh.cvut.cz | 7f15b66 | 2005-05-26 12:42:19 +0000 | [diff] [blame] | 1 | Kernel driver lm87 |
| 2 | ================== |
| 3 | |
| 4 | Supported chips: |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 5 | |
R.Marek@sh.cvut.cz | 7f15b66 | 2005-05-26 12:42:19 +0000 | [diff] [blame] | 6 | * National Semiconductor LM87 |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 7 | |
R.Marek@sh.cvut.cz | 7f15b66 | 2005-05-26 12:42:19 +0000 | [diff] [blame] | 8 | Prefix: 'lm87' |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 9 | |
Jean Delvare | c7fa373 | 2007-10-09 15:22:22 +0200 | [diff] [blame] | 10 | Addresses scanned: I2C 0x2c - 0x2e |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 11 | |
R.Marek@sh.cvut.cz | 7f15b66 | 2005-05-26 12:42:19 +0000 | [diff] [blame] | 12 | Datasheet: http://www.national.com/pf/LM/LM87.html |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 13 | |
Jean Delvare | c7fa373 | 2007-10-09 15:22:22 +0200 | [diff] [blame] | 14 | * Analog Devices ADM1024 |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 15 | |
Jean Delvare | c7fa373 | 2007-10-09 15:22:22 +0200 | [diff] [blame] | 16 | Prefix: 'adm1024' |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 17 | |
Jean Delvare | c7fa373 | 2007-10-09 15:22:22 +0200 | [diff] [blame] | 18 | Addresses scanned: I2C 0x2c - 0x2e |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 19 | |
Jean Delvare | c7fa373 | 2007-10-09 15:22:22 +0200 | [diff] [blame] | 20 | Datasheet: http://www.analog.com/en/prod/0,2877,ADM1024,00.html |
R.Marek@sh.cvut.cz | 7f15b66 | 2005-05-26 12:42:19 +0000 | [diff] [blame] | 21 | |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 22 | |
R.Marek@sh.cvut.cz | 7f15b66 | 2005-05-26 12:42:19 +0000 | [diff] [blame] | 23 | Authors: |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 24 | - Frodo Looijaard <frodol@dds.nl>, |
| 25 | - Philip Edelbrock <phil@netroedge.com>, |
| 26 | - Mark Studebaker <mdsxyz123@yahoo.com>, |
| 27 | - Stephen Rousset <stephen.rousset@rocketlogix.com>, |
| 28 | - Dan Eaton <dan.eaton@rocketlogix.com>, |
| 29 | - Jean Delvare <jdelvare@suse.de>, |
| 30 | - Original 2.6 port Jeff Oliver |
R.Marek@sh.cvut.cz | 7f15b66 | 2005-05-26 12:42:19 +0000 | [diff] [blame] | 31 | |
| 32 | Description |
| 33 | ----------- |
| 34 | |
Jean Delvare | c7fa373 | 2007-10-09 15:22:22 +0200 | [diff] [blame] | 35 | This driver implements support for the National Semiconductor LM87 |
| 36 | and the Analog Devices ADM1024. |
R.Marek@sh.cvut.cz | 7f15b66 | 2005-05-26 12:42:19 +0000 | [diff] [blame] | 37 | |
| 38 | The LM87 implements up to three temperature sensors, up to two fan |
| 39 | rotation speed sensors, up to seven voltage sensors, alarms, and some |
Jean Delvare | c7fa373 | 2007-10-09 15:22:22 +0200 | [diff] [blame] | 40 | miscellaneous stuff. The ADM1024 is fully compatible. |
R.Marek@sh.cvut.cz | 7f15b66 | 2005-05-26 12:42:19 +0000 | [diff] [blame] | 41 | |
| 42 | Temperatures are measured in degrees Celsius. Each input has a high |
| 43 | and low alarm settings. A high limit produces an alarm when the value |
| 44 | goes above it, and an alarm is also produced when the value goes below |
| 45 | the low limit. |
| 46 | |
| 47 | Fan rotation speeds are reported in RPM (rotations per minute). An alarm is |
| 48 | triggered if the rotation speed has dropped below a programmable limit. Fan |
| 49 | readings can be divided by a programmable divider (1, 2, 4 or 8) to give |
| 50 | the readings more range or accuracy. Not all RPM values can accurately be |
| 51 | represented, so some rounding is done. With a divider of 2, the lowest |
| 52 | representable value is around 2600 RPM. |
| 53 | |
| 54 | Voltage sensors (also known as IN sensors) report their values in |
| 55 | volts. An alarm is triggered if the voltage has crossed a programmable |
| 56 | minimum or maximum limit. Note that minimum in this case always means |
| 57 | 'closest to zero'; this is important for negative voltage measurements. |
| 58 | |
| 59 | If an alarm triggers, it will remain triggered until the hardware register |
| 60 | is read at least once. This means that the cause for the alarm may |
| 61 | already have disappeared! Note that in the current implementation, all |
| 62 | hardware registers are read whenever any data is read (unless it is less |
| 63 | than 1.0 seconds since the last update). This means that you can easily |
| 64 | miss once-only alarms. |
| 65 | |
| 66 | The lm87 driver only updates its values each 1.0 seconds; reading it more |
| 67 | often will do no harm, but will return 'old' values. |
| 68 | |
| 69 | |
| 70 | Hardware Configurations |
| 71 | ----------------------- |
| 72 | |
| 73 | The LM87 has four pins which can serve one of two possible functions, |
| 74 | depending on the hardware configuration. |
| 75 | |
| 76 | Some functions share pins, so not all functions are available at the same |
Ben Hutchings | 47064d6 | 2008-10-17 17:51:12 +0200 | [diff] [blame] | 77 | time. Which are depends on the hardware setup. This driver normally |
| 78 | assumes that firmware configured the chip correctly. Where this is not |
| 79 | the case, platform code must set the I2C client's platform_data to point |
| 80 | to a u8 value to be written to the channel register. |
R.Marek@sh.cvut.cz | 7f15b66 | 2005-05-26 12:42:19 +0000 | [diff] [blame] | 81 | |
| 82 | For reference, here is the list of exclusive functions: |
| 83 | - in0+in5 (default) or temp3 |
| 84 | - fan1 (default) or in6 |
| 85 | - fan2 (default) or in7 |
| 86 | - VID lines (default) or IRQ lines (not handled by this driver) |