| 1 | Kernel driver `mtp008.o' |
|---|
| 2 | ========================= |
|---|
| 3 | |
|---|
| 4 | Status: Complete; Beta. |
|---|
| 5 | This chip is quite configurable and many settings cannot |
|---|
| 6 | be done through the driver. Hopefully the BIOS settings will |
|---|
| 7 | be correct for most motherboards. |
|---|
| 8 | |
|---|
| 9 | Supported chips: |
|---|
| 10 | * Myson MTP008 |
|---|
| 11 | Prefix: 'mtp008' |
|---|
| 12 | Addresses scanned: I2C 0x2c - 0x2e |
|---|
| 13 | Datasheet: Publicly available at the Myson website |
|---|
| 14 | |
|---|
| 15 | Author: Kris Van Hees <aedil@alchar.org> |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | Description |
|---|
| 19 | ----------- |
|---|
| 20 | |
|---|
| 21 | The Myson MTP008 is similar in function to the Winbond W83781D and the |
|---|
| 22 | National Semi LM78. See documentation for those chips for an overview. |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | The MTP008 chip has several pins that are configurable. |
|---|
| 26 | |
|---|
| 27 | The three temperature sensors are configurable via the driver |
|---|
| 28 | using either the /proc entries or 'set sensorx y' statements in |
|---|
| 29 | /etc/sensors.conf. |
|---|
| 30 | One temperature input is always temp1, and the sensor type is configured |
|---|
| 31 | with the sensor1 entry in /proc. |
|---|
| 32 | One input is either in4 or temp2, and is configured with the sensor2 entry. |
|---|
| 33 | One input is either in5 or temp3, and is configured with the sensor3 entry. |
|---|
| 34 | |
|---|
| 35 | For example, on the Tyan S1824D motherboard, |
|---|
| 36 | AIN4 is configured as PII temp sensor 2 and |
|---|
| 37 | AIN5 is hooked up to the -12V sensing circuit. |
|---|
| 38 | |
|---|
| 39 | Other Tyan motherboards (the 2510 Thunder and the Tiger 200) appear to |
|---|
| 40 | have different configurations. |
|---|
| 41 | |
|---|
| 42 | For the 2510, which has two MTP008 chips, each with a different |
|---|
| 43 | configuration, follow the instructions in the mtp008 section of |
|---|
| 44 | etc/sensors.conf.eg to configure 'sensors' correctly. |
|---|
| 45 | |
|---|
| 46 | The PWM outputs are configurable via the driver. |
|---|
| 47 | PWM values are from 0 to 255. The first value in the /proc entry is |
|---|
| 48 | the pwm value; the second is the enable (0 or 1). |
|---|
| 49 | |
|---|
| 50 | The fan3 and pwm1 functions share a pin. |
|---|
| 51 | If pwm1 is enabled than fan3 will read as 0. |
|---|
| 52 | |
|---|
| 53 | The Fan input types (2 wire or 3 wire) are configurable but |
|---|
| 54 | not via the driver. |
|---|
| 55 | |
|---|
| 56 | The driver now preserves pin settings that the BIOS configures. |
|---|
| 57 | If your BIOS did it right then the driver should work great. |
|---|
| 58 | |
|---|
| 59 | The MTP008 has sensor type selection in /proc like the Winbond W83782D. |
|---|
| 60 | However, the appropriate values used to make the selection are different. |
|---|
| 61 | |
|---|
| 62 | To select a sensor type, echo the value to the /proc entry, for example: |
|---|
| 63 | echo 1 > /proc/sys/dev/sensors/mtp008-i2c-0-2d/sensor1 |
|---|
| 64 | Or, use /etc/sensors.conf and add a line 'set sensor1 1', for example. |
|---|
| 65 | Hopefully the BIOS has set these already. |
|---|
| 66 | |
|---|
| 67 | Sensor selection is as follows: |
|---|
| 68 | |
|---|
| 69 | Value Function Valid on sensors |
|---|
| 70 | ----- -------- ---------------- |
|---|
| 71 | 1 Analog input (not for temperature sensing) 2,3 |
|---|
| 72 | 2 Thermistor 1,2,3 |
|---|
| 73 | 3 Pentium diode 1,2 |
|---|