1*7ebd8b66SMauro Carvalho ChehabKernel driver lm78 2*7ebd8b66SMauro Carvalho Chehab================== 3*7ebd8b66SMauro Carvalho Chehab 4*7ebd8b66SMauro Carvalho ChehabSupported chips: 5*7ebd8b66SMauro Carvalho Chehab 6*7ebd8b66SMauro Carvalho Chehab * National Semiconductor LM78 / LM78-J 7*7ebd8b66SMauro Carvalho Chehab 8*7ebd8b66SMauro Carvalho Chehab Prefix: 'lm78' 9*7ebd8b66SMauro Carvalho Chehab 10*7ebd8b66SMauro Carvalho Chehab Addresses scanned: I2C 0x28 - 0x2f, ISA 0x290 (8 I/O ports) 11*7ebd8b66SMauro Carvalho Chehab 12*7ebd8b66SMauro Carvalho Chehab Datasheet: Publicly available at the National Semiconductor website 13*7ebd8b66SMauro Carvalho Chehab 14*7ebd8b66SMauro Carvalho Chehab http://www.national.com/ 15*7ebd8b66SMauro Carvalho Chehab 16*7ebd8b66SMauro Carvalho Chehab * National Semiconductor LM79 17*7ebd8b66SMauro Carvalho Chehab 18*7ebd8b66SMauro Carvalho Chehab Prefix: 'lm79' 19*7ebd8b66SMauro Carvalho Chehab 20*7ebd8b66SMauro Carvalho Chehab Addresses scanned: I2C 0x28 - 0x2f, ISA 0x290 (8 I/O ports) 21*7ebd8b66SMauro Carvalho Chehab 22*7ebd8b66SMauro Carvalho Chehab Datasheet: Publicly available at the National Semiconductor website 23*7ebd8b66SMauro Carvalho Chehab 24*7ebd8b66SMauro Carvalho Chehab http://www.national.com/ 25*7ebd8b66SMauro Carvalho Chehab 26*7ebd8b66SMauro Carvalho Chehab 27*7ebd8b66SMauro Carvalho ChehabAuthors: 28*7ebd8b66SMauro Carvalho Chehab - Frodo Looijaard <frodol@dds.nl> 29*7ebd8b66SMauro Carvalho Chehab - Jean Delvare <jdelvare@suse.de> 30*7ebd8b66SMauro Carvalho Chehab 31*7ebd8b66SMauro Carvalho ChehabDescription 32*7ebd8b66SMauro Carvalho Chehab----------- 33*7ebd8b66SMauro Carvalho Chehab 34*7ebd8b66SMauro Carvalho ChehabThis driver implements support for the National Semiconductor LM78, LM78-J 35*7ebd8b66SMauro Carvalho Chehaband LM79. They are described as 'Microprocessor System Hardware Monitors'. 36*7ebd8b66SMauro Carvalho Chehab 37*7ebd8b66SMauro Carvalho ChehabThere is almost no difference between the three supported chips. Functionally, 38*7ebd8b66SMauro Carvalho Chehabthe LM78 and LM78-J are exactly identical. The LM79 has one more VID line, 39*7ebd8b66SMauro Carvalho Chehabwhich is used to report the lower voltages newer Pentium processors use. 40*7ebd8b66SMauro Carvalho ChehabFrom here on, LM7* means either of these three types. 41*7ebd8b66SMauro Carvalho Chehab 42*7ebd8b66SMauro Carvalho ChehabThe LM7* implements one temperature sensor, three fan rotation speed sensors, 43*7ebd8b66SMauro Carvalho Chehabseven voltage sensors, VID lines, alarms, and some miscellaneous stuff. 44*7ebd8b66SMauro Carvalho Chehab 45*7ebd8b66SMauro Carvalho ChehabTemperatures are measured in degrees Celsius. An alarm is triggered once 46*7ebd8b66SMauro Carvalho Chehabwhen the Overtemperature Shutdown limit is crossed; it is triggered again 47*7ebd8b66SMauro Carvalho Chehabas soon as it drops below the Hysteresis value. A more useful behavior 48*7ebd8b66SMauro Carvalho Chehabcan be found by setting the Hysteresis value to +127 degrees Celsius; in 49*7ebd8b66SMauro Carvalho Chehabthis case, alarms are issued during all the time when the actual temperature 50*7ebd8b66SMauro Carvalho Chehabis above the Overtemperature Shutdown value. Measurements are guaranteed 51*7ebd8b66SMauro Carvalho Chehabbetween -55 and +125 degrees, with a resolution of 1 degree. 52*7ebd8b66SMauro Carvalho Chehab 53*7ebd8b66SMauro Carvalho ChehabFan rotation speeds are reported in RPM (rotations per minute). An alarm is 54*7ebd8b66SMauro Carvalho Chehabtriggered if the rotation speed has dropped below a programmable limit. Fan 55*7ebd8b66SMauro Carvalho Chehabreadings can be divided by a programmable divider (1, 2, 4 or 8) to give 56*7ebd8b66SMauro Carvalho Chehabthe readings more range or accuracy. Not all RPM values can accurately be 57*7ebd8b66SMauro Carvalho Chehabrepresented, so some rounding is done. With a divider of 2, the lowest 58*7ebd8b66SMauro Carvalho Chehabrepresentable value is around 2600 RPM. 59*7ebd8b66SMauro Carvalho Chehab 60*7ebd8b66SMauro Carvalho ChehabVoltage sensors (also known as IN sensors) report their values in volts. 61*7ebd8b66SMauro Carvalho ChehabAn alarm is triggered if the voltage has crossed a programmable minimum 62*7ebd8b66SMauro Carvalho Chehabor maximum limit. Note that minimum in this case always means 'closest to 63*7ebd8b66SMauro Carvalho Chehabzero'; this is important for negative voltage measurements. All voltage 64*7ebd8b66SMauro Carvalho Chehabinputs can measure voltages between 0 and 4.08 volts, with a resolution 65*7ebd8b66SMauro Carvalho Chehabof 0.016 volt. 66*7ebd8b66SMauro Carvalho Chehab 67*7ebd8b66SMauro Carvalho ChehabThe VID lines encode the core voltage value: the voltage level your processor 68*7ebd8b66SMauro Carvalho Chehabshould work with. This is hardcoded by the mainboard and/or processor itself. 69*7ebd8b66SMauro Carvalho ChehabIt is a value in volts. When it is unconnected, you will often find the 70*7ebd8b66SMauro Carvalho Chehabvalue 3.50 V here. 71*7ebd8b66SMauro Carvalho Chehab 72*7ebd8b66SMauro Carvalho ChehabIf an alarm triggers, it will remain triggered until the hardware register 73*7ebd8b66SMauro Carvalho Chehabis read at least once. This means that the cause for the alarm may 74*7ebd8b66SMauro Carvalho Chehabalready have disappeared! Note that in the current implementation, all 75*7ebd8b66SMauro Carvalho Chehabhardware registers are read whenever any data is read (unless it is less 76*7ebd8b66SMauro Carvalho Chehabthan 1.5 seconds since the last update). This means that you can easily 77*7ebd8b66SMauro Carvalho Chehabmiss once-only alarms. 78*7ebd8b66SMauro Carvalho Chehab 79*7ebd8b66SMauro Carvalho ChehabThe LM7* only updates its values each 1.5 seconds; reading it more often 80*7ebd8b66SMauro Carvalho Chehabwill do no harm, but will return 'old' values. 81