diff options
author | Guenter Roeck <linux@roeck-us.net> | 2018-02-21 16:09:39 -0500 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2018-03-10 22:00:14 -0500 |
commit | 81820059a42848742dbabd4d606737093c84e260 (patch) | |
tree | 9b59dbe5fb45b678bebf275201ba66da6d248e09 /Documentation/hwmon | |
parent | 1b20624090d905fdf8e52f058020e585249c1af9 (diff) |
hwmon: (nct6775) Add support for NCT6796D
NCT6796D is mostly compatible to NCT6795D. It supports an additional
pwm control and fan speed channel.
While we are at it, update documentation for NCT6795D.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/hwmon')
-rw-r--r-- | Documentation/hwmon/nct6775 | 56 |
1 files changed, 32 insertions, 24 deletions
diff --git a/Documentation/hwmon/nct6775 b/Documentation/hwmon/nct6775 index 76add4c9cd68..bd59834d310f 100644 --- a/Documentation/hwmon/nct6775 +++ b/Documentation/hwmon/nct6775 | |||
@@ -36,6 +36,14 @@ Supported chips: | |||
36 | Prefix: 'nct6793' | 36 | Prefix: 'nct6793' |
37 | Addresses scanned: ISA address retrieved from Super I/O registers | 37 | Addresses scanned: ISA address retrieved from Super I/O registers |
38 | Datasheet: Available from Nuvoton upon request | 38 | Datasheet: Available from Nuvoton upon request |
39 | * Nuvoton NCT6795D | ||
40 | Prefix: 'nct6795' | ||
41 | Addresses scanned: ISA address retrieved from Super I/O registers | ||
42 | Datasheet: Available from Nuvoton upon request | ||
43 | * Nuvoton NCT6796D | ||
44 | Prefix: 'nct6796' | ||
45 | Addresses scanned: ISA address retrieved from Super I/O registers | ||
46 | Datasheet: Available from Nuvoton upon request | ||
39 | 47 | ||
40 | Authors: | 48 | Authors: |
41 | Guenter Roeck <linux@roeck-us.net> | 49 | Guenter Roeck <linux@roeck-us.net> |
@@ -88,10 +96,10 @@ The mode works for fan1-fan5. | |||
88 | sysfs attributes | 96 | sysfs attributes |
89 | ---------------- | 97 | ---------------- |
90 | 98 | ||
91 | pwm[1-5] - this file stores PWM duty cycle or DC value (fan speed) in range: | 99 | pwm[1-7] - this file stores PWM duty cycle or DC value (fan speed) in range: |
92 | 0 (lowest speed) to 255 (full) | 100 | 0 (lowest speed) to 255 (full) |
93 | 101 | ||
94 | pwm[1-5]_enable - this file controls mode of fan/temperature control: | 102 | pwm[1-7]_enable - this file controls mode of fan/temperature control: |
95 | * 0 Fan control disabled (fans set to maximum speed) | 103 | * 0 Fan control disabled (fans set to maximum speed) |
96 | * 1 Manual mode, write to pwm[0-5] any value 0-255 | 104 | * 1 Manual mode, write to pwm[0-5] any value 0-255 |
97 | * 2 "Thermal Cruise" mode | 105 | * 2 "Thermal Cruise" mode |
@@ -99,16 +107,16 @@ pwm[1-5]_enable - this file controls mode of fan/temperature control: | |||
99 | * 4 "Smart Fan III" mode (NCT6775F only) | 107 | * 4 "Smart Fan III" mode (NCT6775F only) |
100 | * 5 "Smart Fan IV" mode | 108 | * 5 "Smart Fan IV" mode |
101 | 109 | ||
102 | pwm[1-5]_mode - controls if output is PWM or DC level | 110 | pwm[1-7]_mode - controls if output is PWM or DC level |
103 | * 0 DC output | 111 | * 0 DC output |
104 | * 1 PWM output | 112 | * 1 PWM output |
105 | 113 | ||
106 | Common fan control attributes | 114 | Common fan control attributes |
107 | ----------------------------- | 115 | ----------------------------- |
108 | 116 | ||
109 | pwm[1-5]_temp_sel Temperature source. Value is temperature sensor index. | 117 | pwm[1-7]_temp_sel Temperature source. Value is temperature sensor index. |
110 | For example, select '1' for temp1_input. | 118 | For example, select '1' for temp1_input. |
111 | pwm[1-5]_weight_temp_sel | 119 | pwm[1-7]_weight_temp_sel |
112 | Secondary temperature source. Value is temperature | 120 | Secondary temperature source. Value is temperature |
113 | sensor index. For example, select '1' for temp1_input. | 121 | sensor index. For example, select '1' for temp1_input. |
114 | Set to 0 to disable secondary temperature control. | 122 | Set to 0 to disable secondary temperature control. |
@@ -116,16 +124,16 @@ pwm[1-5]_weight_temp_sel | |||
116 | If secondary temperature functionality is enabled, it is controlled with the | 124 | If secondary temperature functionality is enabled, it is controlled with the |
117 | following attributes. | 125 | following attributes. |
118 | 126 | ||
119 | pwm[1-5]_weight_duty_step | 127 | pwm[1-7]_weight_duty_step |
120 | Duty step size. | 128 | Duty step size. |
121 | pwm[1-5]_weight_temp_step | 129 | pwm[1-7]_weight_temp_step |
122 | Temperature step size. With each step over | 130 | Temperature step size. With each step over |
123 | temp_step_base, the value of weight_duty_step is added | 131 | temp_step_base, the value of weight_duty_step is added |
124 | to the current pwm value. | 132 | to the current pwm value. |
125 | pwm[1-5]_weight_temp_step_base | 133 | pwm[1-7]_weight_temp_step_base |
126 | Temperature at which secondary temperature control kicks | 134 | Temperature at which secondary temperature control kicks |
127 | in. | 135 | in. |
128 | pwm[1-5]_weight_temp_step_tol | 136 | pwm[1-7]_weight_temp_step_tol |
129 | Temperature step tolerance. | 137 | Temperature step tolerance. |
130 | 138 | ||
131 | Thermal Cruise mode (2) | 139 | Thermal Cruise mode (2) |
@@ -133,9 +141,9 @@ Thermal Cruise mode (2) | |||
133 | 141 | ||
134 | If the temperature is in the range defined by: | 142 | If the temperature is in the range defined by: |
135 | 143 | ||
136 | pwm[1-5]_target_temp Target temperature, unit millidegree Celsius | 144 | pwm[1-7]_target_temp Target temperature, unit millidegree Celsius |
137 | (range 0 - 127000) | 145 | (range 0 - 127000) |
138 | pwm[1-5]_temp_tolerance | 146 | pwm[1-7]_temp_tolerance |
139 | Target temperature tolerance, unit millidegree Celsius | 147 | Target temperature tolerance, unit millidegree Celsius |
140 | 148 | ||
141 | there are no changes to fan speed. Once the temperature leaves the interval, fan | 149 | there are no changes to fan speed. Once the temperature leaves the interval, fan |
@@ -143,14 +151,14 @@ speed increases (if temperature is higher that desired) or decreases (if | |||
143 | temperature is lower than desired), using the following limits and time | 151 | temperature is lower than desired), using the following limits and time |
144 | intervals. | 152 | intervals. |
145 | 153 | ||
146 | pwm[1-5]_start fan pwm start value (range 1 - 255), to start fan | 154 | pwm[1-7]_start fan pwm start value (range 1 - 255), to start fan |
147 | when the temperature is above defined range. | 155 | when the temperature is above defined range. |
148 | pwm[1-5]_floor lowest fan pwm (range 0 - 255) if temperature is below | 156 | pwm[1-7]_floor lowest fan pwm (range 0 - 255) if temperature is below |
149 | the defined range. If set to 0, the fan is expected to | 157 | the defined range. If set to 0, the fan is expected to |
150 | stop if the temperature is below the defined range. | 158 | stop if the temperature is below the defined range. |
151 | pwm[1-5]_step_up_time milliseconds before fan speed is increased | 159 | pwm[1-7]_step_up_time milliseconds before fan speed is increased |
152 | pwm[1-5]_step_down_time milliseconds before fan speed is decreased | 160 | pwm[1-7]_step_down_time milliseconds before fan speed is decreased |
153 | pwm[1-5]_stop_time how many milliseconds must elapse to switch | 161 | pwm[1-7]_stop_time how many milliseconds must elapse to switch |
154 | corresponding fan off (when the temperature was below | 162 | corresponding fan off (when the temperature was below |
155 | defined range). | 163 | defined range). |
156 | 164 | ||
@@ -159,8 +167,8 @@ Speed Cruise mode (3) | |||
159 | 167 | ||
160 | This modes tries to keep the fan speed constant. | 168 | This modes tries to keep the fan speed constant. |
161 | 169 | ||
162 | fan[1-5]_target Target fan speed | 170 | fan[1-7]_target Target fan speed |
163 | fan[1-5]_tolerance | 171 | fan[1-7]_tolerance |
164 | Target speed tolerance | 172 | Target speed tolerance |
165 | 173 | ||
166 | 174 | ||
@@ -177,19 +185,19 @@ points should be set to higher temperatures and higher pwm values to achieve | |||
177 | higher fan speeds with increasing temperature. The last data point reflects | 185 | higher fan speeds with increasing temperature. The last data point reflects |
178 | critical temperature mode, in which the fans should run at full speed. | 186 | critical temperature mode, in which the fans should run at full speed. |
179 | 187 | ||
180 | pwm[1-5]_auto_point[1-7]_pwm | 188 | pwm[1-7]_auto_point[1-7]_pwm |
181 | pwm value to be set if temperature reaches matching | 189 | pwm value to be set if temperature reaches matching |
182 | temperature range. | 190 | temperature range. |
183 | pwm[1-5]_auto_point[1-7]_temp | 191 | pwm[1-7]_auto_point[1-7]_temp |
184 | Temperature over which the matching pwm is enabled. | 192 | Temperature over which the matching pwm is enabled. |
185 | pwm[1-5]_temp_tolerance | 193 | pwm[1-7]_temp_tolerance |
186 | Temperature tolerance, unit millidegree Celsius | 194 | Temperature tolerance, unit millidegree Celsius |
187 | pwm[1-5]_crit_temp_tolerance | 195 | pwm[1-7]_crit_temp_tolerance |
188 | Temperature tolerance for critical temperature, | 196 | Temperature tolerance for critical temperature, |
189 | unit millidegree Celsius | 197 | unit millidegree Celsius |
190 | 198 | ||
191 | pwm[1-5]_step_up_time milliseconds before fan speed is increased | 199 | pwm[1-7]_step_up_time milliseconds before fan speed is increased |
192 | pwm[1-5]_step_down_time milliseconds before fan speed is decreased | 200 | pwm[1-7]_step_down_time milliseconds before fan speed is decreased |
193 | 201 | ||
194 | Usage Notes | 202 | Usage Notes |
195 | ----------- | 203 | ----------- |