17ebd8b66SMauro Carvalho ChehabKernel driver sis5595
27ebd8b66SMauro Carvalho Chehab=====================
37ebd8b66SMauro Carvalho Chehab
47ebd8b66SMauro Carvalho ChehabSupported chips:
57ebd8b66SMauro Carvalho Chehab
67ebd8b66SMauro Carvalho Chehab  * Silicon Integrated Systems Corp. SiS5595 Southbridge Hardware Monitor
77ebd8b66SMauro Carvalho Chehab
87ebd8b66SMauro Carvalho Chehab    Prefix: 'sis5595'
97ebd8b66SMauro Carvalho Chehab
107ebd8b66SMauro Carvalho Chehab    Addresses scanned: ISA in PCI-space encoded address
117ebd8b66SMauro Carvalho Chehab
127ebd8b66SMauro Carvalho Chehab    Datasheet: Publicly available at the Silicon Integrated Systems Corp. site.
137ebd8b66SMauro Carvalho Chehab
147ebd8b66SMauro Carvalho Chehab
157ebd8b66SMauro Carvalho Chehab
167ebd8b66SMauro Carvalho ChehabAuthors:
177ebd8b66SMauro Carvalho Chehab
187ebd8b66SMauro Carvalho Chehab      - Kyösti Mälkki <kmalkki@cc.hut.fi>,
197ebd8b66SMauro Carvalho Chehab      - Mark D. Studebaker <mdsxyz123@yahoo.com>,
207ebd8b66SMauro Carvalho Chehab      - Aurelien Jarno <aurelien@aurel32.net> 2.6 port
217ebd8b66SMauro Carvalho Chehab
227ebd8b66SMauro Carvalho Chehab   SiS southbridge has a LM78-like chip integrated on the same IC.
237ebd8b66SMauro Carvalho Chehab   This driver is a customized copy of lm78.c
247ebd8b66SMauro Carvalho Chehab
257ebd8b66SMauro Carvalho Chehab   Supports following revisions:
267ebd8b66SMauro Carvalho Chehab
277ebd8b66SMauro Carvalho Chehab       =============== =============== ==============
287ebd8b66SMauro Carvalho Chehab       Version         PCI ID          PCI Revision
297ebd8b66SMauro Carvalho Chehab       =============== =============== ==============
307ebd8b66SMauro Carvalho Chehab       1               1039/0008       AF or less
317ebd8b66SMauro Carvalho Chehab       2               1039/0008       B0 or greater
327ebd8b66SMauro Carvalho Chehab       =============== =============== ==============
337ebd8b66SMauro Carvalho Chehab
347ebd8b66SMauro Carvalho Chehab   Note: these chips contain a 0008 device which is incompatible with the
357ebd8b66SMauro Carvalho Chehab	5595. We recognize these by the presence of the listed
367ebd8b66SMauro Carvalho Chehab	"blacklist" PCI ID and refuse to load.
377ebd8b66SMauro Carvalho Chehab
387ebd8b66SMauro Carvalho Chehab   =================== =============== ================
397ebd8b66SMauro Carvalho Chehab   NOT SUPPORTED       PCI ID          BLACKLIST PCI ID
407ebd8b66SMauro Carvalho Chehab   =================== =============== ================
417ebd8b66SMauro Carvalho Chehab	540            0008            0540
427ebd8b66SMauro Carvalho Chehab	550            0008            0550
437ebd8b66SMauro Carvalho Chehab       5513            0008            5511
447ebd8b66SMauro Carvalho Chehab       5581            0008            5597
457ebd8b66SMauro Carvalho Chehab       5582            0008            5597
467ebd8b66SMauro Carvalho Chehab       5597            0008            5597
477ebd8b66SMauro Carvalho Chehab	630            0008            0630
487ebd8b66SMauro Carvalho Chehab	645            0008            0645
497ebd8b66SMauro Carvalho Chehab	730            0008            0730
507ebd8b66SMauro Carvalho Chehab	735            0008            0735
517ebd8b66SMauro Carvalho Chehab   =================== =============== ================
527ebd8b66SMauro Carvalho Chehab
537ebd8b66SMauro Carvalho Chehab
547ebd8b66SMauro Carvalho ChehabModule Parameters
557ebd8b66SMauro Carvalho Chehab-----------------
567ebd8b66SMauro Carvalho Chehab
577ebd8b66SMauro Carvalho Chehab======================= =====================================================
587ebd8b66SMauro Carvalho Chehabforce_addr=0xaddr	Set the I/O base address. Useful for boards
597ebd8b66SMauro Carvalho Chehab			that don't set the address in the BIOS. Does not do a
607ebd8b66SMauro Carvalho Chehab			PCI force; the device must still be present in lspci.
617ebd8b66SMauro Carvalho Chehab			Don't use this unless the driver complains that the
627ebd8b66SMauro Carvalho Chehab			base address is not set.
637ebd8b66SMauro Carvalho Chehab
647ebd8b66SMauro Carvalho Chehab			Example: 'modprobe sis5595 force_addr=0x290'
657ebd8b66SMauro Carvalho Chehab======================= =====================================================
667ebd8b66SMauro Carvalho Chehab
677ebd8b66SMauro Carvalho Chehab
687ebd8b66SMauro Carvalho ChehabDescription
697ebd8b66SMauro Carvalho Chehab-----------
707ebd8b66SMauro Carvalho Chehab
717ebd8b66SMauro Carvalho ChehabThe SiS5595 southbridge has integrated hardware monitor functions. It also
727ebd8b66SMauro Carvalho Chehabhas an I2C bus, but this driver only supports the hardware monitor. For the
737ebd8b66SMauro Carvalho ChehabI2C bus driver see i2c-sis5595.
747ebd8b66SMauro Carvalho Chehab
757ebd8b66SMauro Carvalho ChehabThe SiS5595 implements zero or one temperature sensor, two fan speed
767ebd8b66SMauro Carvalho Chehabsensors, four or five voltage sensors, and alarms.
777ebd8b66SMauro Carvalho Chehab
787ebd8b66SMauro Carvalho ChehabOn the first version of the chip, there are four voltage sensors and one
797ebd8b66SMauro Carvalho Chehabtemperature sensor.
807ebd8b66SMauro Carvalho Chehab
817ebd8b66SMauro Carvalho ChehabOn the second version of the chip, the temperature sensor (temp) and the
827ebd8b66SMauro Carvalho Chehabfifth voltage sensor (in4) share a pin which is configurable, but not
837ebd8b66SMauro Carvalho Chehabthrough the driver. Sorry. The driver senses the configuration of the pin,
847ebd8b66SMauro Carvalho Chehabwhich was hopefully set by the BIOS.
857ebd8b66SMauro Carvalho Chehab
867ebd8b66SMauro Carvalho ChehabTemperatures are measured in degrees Celsius. An alarm is triggered once
877ebd8b66SMauro Carvalho Chehabwhen the max is crossed; it is also triggered when it drops below the min
887ebd8b66SMauro Carvalho Chehabvalue. Measurements are guaranteed between -55 and +125 degrees, with a
897ebd8b66SMauro Carvalho Chehabresolution of 1 degree.
907ebd8b66SMauro Carvalho Chehab
917ebd8b66SMauro Carvalho ChehabFan rotation speeds are reported in RPM (rotations per minute). An alarm is
927ebd8b66SMauro Carvalho Chehabtriggered if the rotation speed has dropped below a programmable limit. Fan
937ebd8b66SMauro Carvalho Chehabreadings can be divided by a programmable divider (1, 2, 4 or 8) to give
947ebd8b66SMauro Carvalho Chehabthe readings more range or accuracy. Not all RPM values can accurately be
957ebd8b66SMauro Carvalho Chehabrepresented, so some rounding is done. With a divider of 2, the lowest
967ebd8b66SMauro Carvalho Chehabrepresentable value is around 2600 RPM.
977ebd8b66SMauro Carvalho Chehab
987ebd8b66SMauro Carvalho ChehabVoltage sensors (also known as IN sensors) report their values in volts. An
997ebd8b66SMauro Carvalho Chehabalarm is triggered if the voltage has crossed a programmable minimum or
1007ebd8b66SMauro Carvalho Chehabmaximum limit. Note that minimum in this case always means 'closest to
1017ebd8b66SMauro Carvalho Chehabzero'; this is important for negative voltage measurements. All voltage
1027ebd8b66SMauro Carvalho Chehabinputs can measure voltages between 0 and 4.08 volts, with a resolution of
1037ebd8b66SMauro Carvalho Chehab0.016 volt.
1047ebd8b66SMauro Carvalho Chehab
1057ebd8b66SMauro Carvalho ChehabIn addition to the alarms described above, there is a BTI alarm, which gets
1067ebd8b66SMauro Carvalho Chehabtriggered when an external chip has crossed its limits. Usually, this is
1077ebd8b66SMauro Carvalho Chehabconnected to some LM75-like chip; if at least one crosses its limits, this
1087ebd8b66SMauro Carvalho Chehabbit gets set.
1097ebd8b66SMauro Carvalho Chehab
1107ebd8b66SMauro Carvalho ChehabIf an alarm triggers, it will remain triggered until the hardware register
1117ebd8b66SMauro Carvalho Chehabis read at least once. This means that the cause for the alarm may already
1127ebd8b66SMauro Carvalho Chehabhave disappeared! Note that in the current implementation, all hardware
1137ebd8b66SMauro Carvalho Chehabregisters are read whenever any data is read (unless it is less than 1.5
1147ebd8b66SMauro Carvalho Chehabseconds since the last update). This means that you can easily miss
1157ebd8b66SMauro Carvalho Chehabonce-only alarms.
1167ebd8b66SMauro Carvalho Chehab
1177ebd8b66SMauro Carvalho ChehabThe SiS5595 only updates its values each 1.5 seconds; reading it more often
1187ebd8b66SMauro Carvalho Chehabwill do no harm, but will return 'old' values.
1197ebd8b66SMauro Carvalho Chehab
1207ebd8b66SMauro Carvalho ChehabProblems
1217ebd8b66SMauro Carvalho Chehab--------
1227ebd8b66SMauro Carvalho ChehabSome chips refuse to be enabled. We don't know why.
1237ebd8b66SMauro Carvalho ChehabThe driver will recognize this and print a message in dmesg.
124