| 1 | Kernel driver `vt8231.o' |
|---|
| 2 | ======================== |
|---|
| 3 | |
|---|
| 4 | Status: Beta |
|---|
| 5 | |
|---|
| 6 | Supported chips: |
|---|
| 7 | * VIA VT8231 South Bridge |
|---|
| 8 | Prefix: 'vt8231' |
|---|
| 9 | Addresses scanned: none, address read from PCI space |
|---|
| 10 | |
|---|
| 11 | Author: Mark D. Studebaker <mdsxyz123@yahoo.com> |
|---|
| 12 | |
|---|
| 13 | License: GPL |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | Module Parameters |
|---|
| 17 | ----------------- |
|---|
| 18 | |
|---|
| 19 | * force_addr: int |
|---|
| 20 | Initialize the base address of the sensors |
|---|
| 21 | * force: short array (min = 1, max = 48) |
|---|
| 22 | List of adapter,address pairs to boldly assume to be present |
|---|
| 23 | * force_vt8231: short array (min = 1, max = 48) |
|---|
| 24 | List of adapter,address pairs which are unquestionably assumed to contain |
|---|
| 25 | a `vt8231' chip |
|---|
| 26 | * probe: short array (min = 1, max = 48) |
|---|
| 27 | List of adapter,address pairs to scan additionally |
|---|
| 28 | * probe_range: short array (min = 1, max = 48) |
|---|
| 29 | List of adapter,start-addr,end-addr triples to scan additionally |
|---|
| 30 | * ignore: short array (min = 1, max = 48) |
|---|
| 31 | List of adapter,address pairs not to scan |
|---|
| 32 | * ignore_range: short array (min = 1, max = 48) |
|---|
| 33 | List of adapter,start-addr,end-addr triples not to scan |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | Description |
|---|
| 37 | ----------- |
|---|
| 38 | |
|---|
| 39 | The VIA VT8231 South Bridge contains voltage/temperature monitoring and |
|---|
| 40 | PWM control circuitry for two fans. |
|---|
| 41 | |
|---|
| 42 | We define the sensors as follows. |
|---|
| 43 | |
|---|
| 44 | Sensor Voltage Mode Temp Mode uch_config bit |
|---|
| 45 | ------ ------------ --------- -------------- |
|---|
| 46 | Reading 1 temp1 |
|---|
| 47 | UCH1 in0 temp2 0x04 (4) |
|---|
| 48 | UCH2 in1 temp3 0x08 (8) |
|---|
| 49 | UCH3 in2 temp4 0x10 (16) |
|---|
| 50 | UCH4 in3 temp5 0x20 (32) |
|---|
| 51 | UCH5 in4 temp6 0x40 (64) |
|---|
| 52 | 3.3V in5 |
|---|
| 53 | |
|---|
| 54 | As noted above, 5 of the sensors are "universal channels" and can |
|---|
| 55 | be set for either voltage or temperature. |
|---|
| 56 | Set the uch_config bit (in /proc) to 0 for voltage and 1 for temperature. |
|---|
| 57 | Voltages will read 0 if set for temperature. |
|---|
| 58 | Temperatures will read a really low number if set for voltage. |
|---|
| 59 | |
|---|
| 60 | Fan rotation speeds are reported in RPM (rotations per minute). An alarm is |
|---|
| 61 | triggered if the rotation speed has dropped below a programmable limit. Fan |
|---|
| 62 | readings can be divided by a programmable divider (1, 2, 4 or 8) to give |
|---|
| 63 | the readings more range or accuracy. Not all RPM values can accurately be |
|---|
| 64 | represented, so some rounding is done. With a divider of 2, the lowest |
|---|
| 65 | representable value is around 2600 RPM. |
|---|
| 66 | |
|---|
| 67 | PWM values are from 0 to 255. The first value in the /proc entry is |
|---|
| 68 | the pwm value; the second is the enable (0 or 1). |
|---|
| 69 | |
|---|
| 70 | If an alarm triggers, it will remain triggered until the hardware register |
|---|
| 71 | is read at least once. This means that the cause for the alarm may |
|---|
| 72 | already have disappeared! Note that in the current implementation, all |
|---|
| 73 | hardware registers are read whenever any data is read (unless it is less |
|---|
| 74 | than 1.5 seconds since the last update). This means that you can easily |
|---|
| 75 | miss once-only alarms. |
|---|
| 76 | |
|---|
| 77 | |
|---|
| 78 | Chip Features |
|---|
| 79 | ------------- |
|---|
| 80 | |
|---|
| 81 | Chip 'vt8231' |
|---|
| 82 | |
|---|
| 83 | LABEL LABEL CLASS COMPUTE CLASS MODE MAGN |
|---|
| 84 | in0 - - R- 2 |
|---|
| 85 | in1 - - R- 2 |
|---|
| 86 | in2 - - R- 2 |
|---|
| 87 | in3 - - R- 2 |
|---|
| 88 | in4 - - R- 2 |
|---|
| 89 | in5 - - R- 2 |
|---|
| 90 | in0_min in0 in0 RW 2 |
|---|
| 91 | in1_min in1 in1 RW 2 |
|---|
| 92 | in2_min in2 in2 RW 2 |
|---|
| 93 | in3_min in3 in3 RW 2 |
|---|
| 94 | in4_min in4 in4 RW 2 |
|---|
| 95 | in5_min in5 in5 RW 2 |
|---|
| 96 | in0_max in0 in0 RW 2 |
|---|
| 97 | in1_max in1 in1 RW 2 |
|---|
| 98 | in2_max in2 in2 RW 2 |
|---|
| 99 | in3_max in3 in3 RW 2 |
|---|
| 100 | in4_max in4 in4 RW 2 |
|---|
| 101 | in5_max in5 in5 RW 2 |
|---|
| 102 | fan1 - - R- 0 |
|---|
| 103 | fan2 - - R- 0 |
|---|
| 104 | fan1_min fan1 fan1 RW 0 |
|---|
| 105 | fan2_min fan2 fan2 RW 0 |
|---|
| 106 | temp1 - - R- 1 |
|---|
| 107 | temp1_hyst temp1 temp1 RW 1 |
|---|
| 108 | temp1_over temp1 temp1 RW 1 |
|---|
| 109 | temp2 - - R- 2 |
|---|
| 110 | temp2_hyst temp2 temp2 RW 2 |
|---|
| 111 | temp2_over temp2 temp2 RW 2 |
|---|
| 112 | temp3 - - R- 2 |
|---|
| 113 | temp3_hyst temp3 temp3 RW 2 |
|---|
| 114 | temp3_over temp3 temp3 RW 2 |
|---|
| 115 | temp4 - - R- 2 |
|---|
| 116 | temp4_hyst temp4 temp4 RW 2 |
|---|
| 117 | temp4_over temp4 temp4 RW 2 |
|---|
| 118 | temp5 - - R- 2 |
|---|
| 119 | temp5_hyst temp5 temp5 RW 2 |
|---|
| 120 | temp5_over temp5 temp5 RW 2 |
|---|
| 121 | temp6 - - R- 2 |
|---|
| 122 | temp6_hyst temp6 temp6 RW 2 |
|---|
| 123 | temp6_over temp6 temp6 RW 2 |
|---|
| 124 | fan1_div fan1 - RW 0 |
|---|
| 125 | fan2_div fan2 - RW 0 |
|---|
| 126 | alarms - - R- 0 |
|---|
| 127 | vid - - R- 3 |
|---|
| 128 | vrm - - RW 1 |
|---|
| 129 | config - - R- 0 |
|---|
| 130 | |
|---|
| 131 | LABEL FEATURE SYMBOL SYSCTL FILE:N |
|---|
| 132 | in0 SENSORS_VT8231_IN0 in0:3 |
|---|
| 133 | in1 SENSORS_VT8231_IN1 in1:3 |
|---|
| 134 | in2 SENSORS_VT8231_IN2 in2:3 |
|---|
| 135 | in3 SENSORS_VT8231_IN3 in3:3 |
|---|
| 136 | in4 SENSORS_VT8231_IN4 in4:3 |
|---|
| 137 | in5 SENSORS_VT8231_IN5 in5:3 |
|---|
| 138 | in0_min SENSORS_VT8231_IN0_MIN in0:1 |
|---|
| 139 | in1_min SENSORS_VT8231_IN1_MIN in1:1 |
|---|
| 140 | in2_min SENSORS_VT8231_IN2_MIN in2:1 |
|---|
| 141 | in3_min SENSORS_VT8231_IN3_MIN in3:1 |
|---|
| 142 | in4_min SENSORS_VT8231_IN4_MIN in4:1 |
|---|
| 143 | in5_min SENSORS_VT8231_IN5_MIN in5:1 |
|---|
| 144 | in0_max SENSORS_VT8231_IN0_MAX in0:2 |
|---|
| 145 | in1_max SENSORS_VT8231_IN1_MAX in1:2 |
|---|
| 146 | in2_max SENSORS_VT8231_IN2_MAX in2:2 |
|---|
| 147 | in3_max SENSORS_VT8231_IN3_MAX in3:2 |
|---|
| 148 | in4_max SENSORS_VT8231_IN4_MAX in4:2 |
|---|
| 149 | in5_max SENSORS_VT8231_IN5_MAX in5:2 |
|---|
| 150 | fan1 SENSORS_VT8231_FAN1 fan1:2 |
|---|
| 151 | fan2 SENSORS_VT8231_FAN2 fan2:2 |
|---|
| 152 | fan1_min SENSORS_VT8231_FAN1_MIN fan1:1 |
|---|
| 153 | fan2_min SENSORS_VT8231_FAN2_MIN fan2:1 |
|---|
| 154 | temp1 SENSORS_VT8231_TEMP temp1:3 |
|---|
| 155 | temp1_hyst SENSORS_VT8231_TEMP_HYST temp1:2 |
|---|
| 156 | temp1_over SENSORS_VT8231_TEMP_OVER temp1:1 |
|---|
| 157 | temp2 SENSORS_VT8231_TEMP2 temp2:3 |
|---|
| 158 | temp2_hyst SENSORS_VT8231_TEMP2_HYST temp2:2 |
|---|
| 159 | temp2_over SENSORS_VT8231_TEMP2_OVER temp2:1 |
|---|
| 160 | temp3 SENSORS_VT8231_TEMP3 temp3:3 |
|---|
| 161 | temp3_hyst SENSORS_VT8231_TEMP3_HYST temp3:2 |
|---|
| 162 | temp3_over SENSORS_VT8231_TEMP3_OVER temp3:1 |
|---|
| 163 | temp4 SENSORS_VT8231_TEMP4 temp4:3 |
|---|
| 164 | temp4_hyst SENSORS_VT8231_TEMP4_HYST temp4:2 |
|---|
| 165 | temp4_over SENSORS_VT8231_TEMP4_OVER temp4:1 |
|---|
| 166 | temp5 SENSORS_VT8231_TEMP5 temp5:3 |
|---|
| 167 | temp5_hyst SENSORS_VT8231_TEMP5_HYST temp5:2 |
|---|
| 168 | temp5_over SENSORS_VT8231_TEMP5_OVER temp5:1 |
|---|
| 169 | temp6 SENSORS_VT8231_TEMP6 temp6:3 |
|---|
| 170 | temp6_hyst SENSORS_VT8231_TEMP6_HYST temp6:2 |
|---|
| 171 | temp6_over SENSORS_VT8231_TEMP6_OVER temp6:1 |
|---|
| 172 | fan1_div SENSORS_VT8231_FAN1_DIV fan_div:1 |
|---|
| 173 | fan2_div SENSORS_VT8231_FAN2_DIV fan_div:2 |
|---|
| 174 | alarms SENSORS_VT8231_ALARMS alarms:1 |
|---|
| 175 | vid SENSORS_VT8231_VID vid:1 |
|---|
| 176 | vrm SENSORS_VT8231_VRM vrm:1 |
|---|
| 177 | config SENSORS_VT8231_UCH uch_config:1 |
|---|
| 178 | |
|---|
| 179 | |
|---|
| 180 | Notes |
|---|
| 181 | ----- |
|---|
| 182 | |
|---|
| 183 | The lm_sensors project gratefully acknowledges the support of VIA in the |
|---|
| 184 | development of this driver. |
|---|