Lines Matching +full:cooling +full:- +full:device
16 devices (sensors) and thermal cooling devices (fan, processor...) to register
19 This how-to focuses on enabling new thermal zone and cooling devices to
22 and cooling devices should be able to make use of the infrastructure.
25 as well as cooling device attributes to the user space.
30 - `[0-*]` denotes any positive number starting from 0
31 - `[1-*]` denotes any positive number starting from 1
36 1.1 thermal zone device interface
37 ---------------------------------
48 This interface function adds a new thermal zone device (sensor) to
49 /sys/class/thermal folder as `thermal_zone[0-*]`. It tries to bind all the
50 thermal cooling devices registered at the same time.
59 device private data
61 thermal zone device call-backs.
64 bind the thermal zone device with a thermal cooling device.
66 unbind the thermal zone device with a thermal cooling device.
76 - "enabled" means the kernel thermal management is
78 - "disabled" will prevent kernel thermal driver action
95 performing passive cooling.
104 This interface function removes the thermal zone device.
106 unbinds all the thermal cooling devices it uses.
111 *thermal_zone_of_sensor_register(struct device *dev, int sensor_id,
117 device tree and look for the zone that refer to the sensor device
118 pointed by dev->of_node as temperature providers. For the zone
120 thermal zone device.
125 Device node of sensor containing valid node pointer in
126 dev->of_node.
154 It returns error pointer if fails otherwise valid thermal zone device
160 void thermal_zone_of_sensor_unregister(struct device *dev,
166 thermal zone device registered with thermal_zone_of_sensor_register()
168 get_trend() thermal zone device callbacks.
173 *devm_thermal_zone_of_sensor_register(struct device *dev,
191 void devm_thermal_zone_of_sensor_unregister(struct device *dev,
206 for the thermal zone device, which might be useful for platform
214 for the thermal zone device, which might be useful for platform
217 1.2 thermal cooling device interface
218 ------------------------------------
227 This interface function adds a new thermal cooling device (fan/processor/...)
228 to /sys/class/thermal/ folder as `cooling_device[0-*]`. It tries to bind itself
232 the cooling device name.
234 device private data.
236 thermal cooling devices call-backs.
239 get the Maximum throttle state of the cooling device.
242 cooling device.
244 set the Current throttle state of the cooling device.
250 This interface function removes the thermal cooling device.
254 1.3 interface for binding a thermal zone device with a thermal cooling device
255 -----------------------------------------------------------------------------
263 This interface function binds a thermal cooling device to a particular trip
264 point of a thermal zone device.
266 This function is usually called in the thermal zone device .bind callback.
269 the thermal zone device
271 thermal cooling device
273 indicates which trip point in this thermal zone the cooling device
276 the Maximum cooling state for this trip point.
278 and the cooling device can be in max_state.
280 the Minimum cooling state can be used for this trip point.
282 and the cooling device can be in cooling state 0.
284 the influence of this cooling device in this thermal
292 This interface function unbinds a thermal cooling device from a particular
293 trip point of a thermal zone device. This function is usually called in
294 the thermal zone device .unbind callback.
297 the thermal zone device
299 thermal cooling device
301 indicates which trip point in this thermal zone the cooling device
305 ---------------------------
312 a zone with a cooling device for a particular trip point.
315 The cooling device pointer
317 The 'influence' of a particular cooling device on this
318 zone. This is relative to the rest of the cooling
319 devices. For example, if all cooling devices have a
322 weight of 0 means that this cooling device doesn't
323 contribute to the cooling of this zone unless all cooling
332 This is an array of cooling state limits. Must have
334 array consisting of tuples <lower-state upper-state> of
378 Thermal zone device sys I/F, created once it's registered::
380 /sys/class/thermal/thermal_zone[0-*]:
381 |---type: Type of the thermal zone
382 |---temp: Current temperature
383 |---mode: Working mode of the thermal zone
384 |---policy: Thermal governor used for this zone
385 |---available_policies: Available thermal governors for this zone
386 |---trip_point_[0-*]_temp: Trip point temperature
387 |---trip_point_[0-*]_type: Trip point type
388 |---trip_point_[0-*]_hyst: Hysteresis value for this trip point
389 |---emul_temp: Emulated temperature set node
390 |---sustainable_power: Sustainable dissipatable power
391 |---k_po: Proportional term during temperature overshoot
392 |---k_pu: Proportional term during temperature undershoot
393 |---k_i: PID's integral term in the power allocator gov
394 |---k_d: PID's derivative term in the power allocator
395 |---integral_cutoff: Offset above which errors are accumulated
396 |---slope: Slope constant applied as linear extrapolation
397 |---offset: Offset constant applied as linear extrapolation
399 Thermal cooling device sys I/F, created once it's registered::
401 /sys/class/thermal/cooling_device[0-*]:
402 |---type: Type of the cooling device(processor/fan/...)
403 |---max_state: Maximum cooling state of the cooling device
404 |---cur_state: Current cooling state of the cooling device
405 |---stats: Directory containing cooling device's statistics
406 |---stats/reset: Writing any value resets the statistics
407 |---stats/time_in_state_ms: Time (msec) spent in various cooling states
408 |---stats/total_trans: Total number of times cooling state is changed
409 |---stats/trans_table: Cooling state transition table
413 the relationship between a thermal zone and its associated cooling device.
419 /sys/class/thermal/thermal_zone[0-*]:
420 |---cdev[0-*]: [0-*]th cooling device in current thermal zone
421 |---cdev[0-*]_trip_point: Trip point that cdev[0-*] is associated with
422 |---cdev[0-*]_weight: Influence of the cooling device in
425 Besides the thermal zone device sysfs I/F and cooling device sysfs I/F,
427 of thermal zone device. E.g. the generic thermal driver registers one hwmon
428 class device and build the associated hwmon sysfs I/F for all the registered
431 Please read Documentation/ABI/testing/sysfs-class-thermal for thermal
432 zone and cooling device attribute details.
436 /sys/class/hwmon/hwmon[0-*]:
437 |---name: The type of the thermal zone devices
438 |---temp[1-*]_input: The current temperature of thermal zone [1-*]
439 |---temp[1-*]_critical: The critical trip point of thermal zone [1-*]
441 Please read Documentation/hwmon/sysfs-interface.rst for additional information.
452 effectiveness in cooling the thermal zone.
459 |---type: acpitz
460 |---temp: 37000
461 |---mode: enabled
462 |---policy: step_wise
463 |---available_policies: step_wise fair_share
464 |---trip_point_0_temp: 100000
465 |---trip_point_0_type: critical
466 |---trip_point_1_temp: 80000
467 |---trip_point_1_type: passive
468 |---trip_point_2_temp: 70000
469 |---trip_point_2_type: active0
470 |---trip_point_3_temp: 60000
471 |---trip_point_3_type: active1
472 |---cdev0: --->/sys/class/thermal/cooling_device0
473 |---cdev0_trip_point: 1 /* cdev0 can be used for passive */
474 |---cdev0_weight: 1024
475 |---cdev1: --->/sys/class/thermal/cooling_device3
476 |---cdev1_trip_point: 2 /* cdev1 can be used for active[0]*/
477 |---cdev1_weight: 1024
480 |---type: Processor
481 |---max_state: 8
482 |---cur_state: 0
485 |---type: Fan
486 |---max_state: 2
487 |---cur_state: 0
491 |---name: acpitz
492 |---temp1_input: 37000
493 |---temp1_crit: 100000
499 -----------------
508 -------------------------
515 ------------------------
517 This function serves as an arbitrator to set the state of a cooling
518 device. It sets the cooling device to the deepest cooling state if
527 but accepts a delay after which it proceeds doing a forced power-off
534 carefully profiled non-zero positive value is a must for emergency