summaryrefslogtreecommitdiffstats
path: root/Documentation/hwmon
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2018-02-21 16:09:39 -0500
committerGuenter Roeck <linux@roeck-us.net>2018-03-10 22:00:14 -0500
commit81820059a42848742dbabd4d606737093c84e260 (patch)
tree9b59dbe5fb45b678bebf275201ba66da6d248e09 /Documentation/hwmon
parent1b20624090d905fdf8e52f058020e585249c1af9 (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/nct677556
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
40Authors: 48Authors:
41 Guenter Roeck <linux@roeck-us.net> 49 Guenter Roeck <linux@roeck-us.net>
@@ -88,10 +96,10 @@ The mode works for fan1-fan5.
88sysfs attributes 96sysfs attributes
89---------------- 97----------------
90 98
91pwm[1-5] - this file stores PWM duty cycle or DC value (fan speed) in range: 99pwm[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
94pwm[1-5]_enable - this file controls mode of fan/temperature control: 102pwm[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
102pwm[1-5]_mode - controls if output is PWM or DC level 110pwm[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
106Common fan control attributes 114Common fan control attributes
107----------------------------- 115-----------------------------
108 116
109pwm[1-5]_temp_sel Temperature source. Value is temperature sensor index. 117pwm[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.
111pwm[1-5]_weight_temp_sel 119pwm[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
116If secondary temperature functionality is enabled, it is controlled with the 124If secondary temperature functionality is enabled, it is controlled with the
117following attributes. 125following attributes.
118 126
119pwm[1-5]_weight_duty_step 127pwm[1-7]_weight_duty_step
120 Duty step size. 128 Duty step size.
121pwm[1-5]_weight_temp_step 129pwm[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.
125pwm[1-5]_weight_temp_step_base 133pwm[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.
128pwm[1-5]_weight_temp_step_tol 136pwm[1-7]_weight_temp_step_tol
129 Temperature step tolerance. 137 Temperature step tolerance.
130 138
131Thermal Cruise mode (2) 139Thermal Cruise mode (2)
@@ -133,9 +141,9 @@ Thermal Cruise mode (2)
133 141
134If the temperature is in the range defined by: 142If the temperature is in the range defined by:
135 143
136pwm[1-5]_target_temp Target temperature, unit millidegree Celsius 144pwm[1-7]_target_temp Target temperature, unit millidegree Celsius
137 (range 0 - 127000) 145 (range 0 - 127000)
138pwm[1-5]_temp_tolerance 146pwm[1-7]_temp_tolerance
139 Target temperature tolerance, unit millidegree Celsius 147 Target temperature tolerance, unit millidegree Celsius
140 148
141there are no changes to fan speed. Once the temperature leaves the interval, fan 149there 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
143temperature is lower than desired), using the following limits and time 151temperature is lower than desired), using the following limits and time
144intervals. 152intervals.
145 153
146pwm[1-5]_start fan pwm start value (range 1 - 255), to start fan 154pwm[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.
148pwm[1-5]_floor lowest fan pwm (range 0 - 255) if temperature is below 156pwm[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.
151pwm[1-5]_step_up_time milliseconds before fan speed is increased 159pwm[1-7]_step_up_time milliseconds before fan speed is increased
152pwm[1-5]_step_down_time milliseconds before fan speed is decreased 160pwm[1-7]_step_down_time milliseconds before fan speed is decreased
153pwm[1-5]_stop_time how many milliseconds must elapse to switch 161pwm[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
160This modes tries to keep the fan speed constant. 168This modes tries to keep the fan speed constant.
161 169
162fan[1-5]_target Target fan speed 170fan[1-7]_target Target fan speed
163fan[1-5]_tolerance 171fan[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
177higher fan speeds with increasing temperature. The last data point reflects 185higher fan speeds with increasing temperature. The last data point reflects
178critical temperature mode, in which the fans should run at full speed. 186critical temperature mode, in which the fans should run at full speed.
179 187
180pwm[1-5]_auto_point[1-7]_pwm 188pwm[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.
183pwm[1-5]_auto_point[1-7]_temp 191pwm[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.
185pwm[1-5]_temp_tolerance 193pwm[1-7]_temp_tolerance
186 Temperature tolerance, unit millidegree Celsius 194 Temperature tolerance, unit millidegree Celsius
187pwm[1-5]_crit_temp_tolerance 195pwm[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
191pwm[1-5]_step_up_time milliseconds before fan speed is increased 199pwm[1-7]_step_up_time milliseconds before fan speed is increased
192pwm[1-5]_step_down_time milliseconds before fan speed is decreased 200pwm[1-7]_step_down_time milliseconds before fan speed is decreased
193 201
194Usage Notes 202Usage Notes
195----------- 203-----------