mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-21 11:39:31 +00:00
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@969 7894878c-1315-0410-8ee3-d5d059ff63e0
59 lines
1.8 KiB
Plaintext
59 lines
1.8 KiB
Plaintext
Kernel driver `mtp008.o'
|
|
=========================
|
|
|
|
Status: Complete; Alpha.
|
|
|
|
Supported chips:
|
|
* Myson MTP008
|
|
Prefix `mtp008'
|
|
Addresses scanned: I2C 0x2c - 0x2e (inclusive)
|
|
Datasheet: Publicly available at the Myson website
|
|
|
|
Author: Kris Van Hees <aedil@alchar.org>
|
|
|
|
|
|
Description
|
|
-----------
|
|
|
|
The Myson MTP008 is similar in function to the Winbond W83781D and the
|
|
National Semi LM78. See documentation for those chips for an overview.
|
|
|
|
|
|
The MTP008 chip has three inputs that are configurable.
|
|
One input is always temp1, and the sensor type is configured with the sensor1 entry.
|
|
One input is either in4 or temp2, and is configured with the sensor2 entry.
|
|
One input is either in5 or temp3, and is configured with the sensor3 entry.
|
|
|
|
We are making the initial assumption that
|
|
AIN4 is to be configured as PII temp sensor 2.
|
|
We are also making the assumption that
|
|
AIN5 is hooked up to the -12V sensing circuit.
|
|
This is the configuration on the Tyan S1824D motherboard.
|
|
|
|
Setting temp sensors 1 and 2 to be a PII sensors is done as follows:
|
|
|
|
Register 0x57: 0 0 0 0 1 1 0 0
|
|
| \ / +-- AIN5/VT3 with AIN5
|
|
| +----- AIN4/VT2/PII with PII
|
|
+-------- VT1/PII with PII
|
|
|
|
|
|
The MTP008 has sensor type selection in /proc like the Winbond W83782D.
|
|
However, the appropriate values used to make the selection are different.
|
|
|
|
To select a sensor type, echo the value to the /proc entry, for example:
|
|
echo 1 > /proc/sys/dev/sensors/mtp008-i2c-0-2d/sensor1
|
|
|
|
Sensor selection is as follows:
|
|
|
|
Value Function Valid on sensors
|
|
----- -------- ----------------
|
|
1 Analog input (not for temperature sensing) 2,3
|
|
2 Thermistor 1,2,3
|
|
3 Pentium diode 1,2
|
|
|
|
|
|
Maintainer
|
|
-----------------
|
|
Send requests to the sensors@stimpy.netroedge.com mailing list.
|