Lines Matching +full:temperature +full:- +full:sensor
19 This how-to focuses on enabling new thermal zone and cooling devices to
27 inputs from thermal zone attributes (the current temperature and trip point
28 temperature) and throttle appropriate devices.
30 - `[0-*]` denotes any positive number starting from 0
31 - `[1-*]` denotes any positive number starting from 1
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
61 thermal zone device call-backs.
68 get the current temperature of the thermal zone.
70 set the trip points window. Whenever the current temperature
72 current temperature are found.
76 - "enabled" means the kernel thermal management is
78 - "disabled" will prevent kernel thermal driver action
86 get the temperature above which the certain trip point
89 set the emulation temperature which helps in debugging
90 different threshold temperature points.
115 This interface adds a new sensor to a DT thermal zone.
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
119 pointing to the sensor node, the sensor will be added to the DT
125 Device node of sensor containing valid node pointer in
126 dev->of_node.
128 a sensor identifier, in case the sensor IP has more
132 passed back, when a temperature reading is needed.
138 sensor temperature. This is mandatory
139 callback provided by sensor driver.
141 temperature window. When this window is
145 sensor temperature trend.
147 sensor emulated temperature.
150 The thermal zone temperature is provided by the get_temp() function
163 This interface unregisters a sensor from a DT thermal zone which was
165 This function removes the sensor callbacks and private data from the
184 The benefit of using this interface to register sensor is that it
207 drivers for temperature calculations.
215 drivers for temperature calculations.
218 ------------------------------------
228 to /sys/class/thermal/ folder as `cooling_device[0-*]`. It tries to bind itself
236 thermal cooling devices call-backs.
255 -----------------------------------------------------------------------------
305 ---------------------------
334 array consisting of tuples <lower-state upper-state> of
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
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
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
433 /sys/class/hwmon/hwmon[0-*]:
434 |---name: The type of the thermal zone devices
435 |---temp[1-*]_input: The current temperature of thermal zone [1-*]
436 |---temp[1-*]_critical: The critical trip point of thermal zone [1-*]
438 Please read Documentation/hwmon/sysfs-interface.rst for additional information.
441 -----------------------
452 Current temperature as reported by thermal zone (sensor).
481 `trip_point_[0-*]_temp`
482 The temperature above which trip point will be fired.
488 `trip_point_[0-*]_type`
491 E.g. it can be one of critical, hot, passive, `active[0-*]` for ACPI
496 `trip_point_[0-*]_hyst`
501 `cdev[0-*]`
507 `cdev[0-*]_trip_point`
508 The trip point in this thermal zone which `cdev[0-*]` is associated
509 with; -1 means the cooling device is not associated with any trip
514 `cdev[0-*]_weight`
515 The influence of `cdev[0-*]` in this thermal zone. This value
524 Interface to set the emulated temperature method in thermal zone
525 (sensor). After setting this temperature, the thermal zone may pass
526 this temperature to platform emulation function if registered or
527 cache it locally. This is useful in debugging different temperature
537 flooding this sysfs node with low temperature values.
542 more information see Documentation/driver-api/thermal/power_allocator.rst
550 controller during temperature overshoot. Temperature overshoot
551 is when the current temperature is above the "desired
552 temperature" trip point. For more information see
553 Documentation/driver-api/thermal/power_allocator.rst
559 controller during temperature undershoot. Temperature undershoot
560 is when the current temperature is below the "desired
561 temperature" trip point. For more information see
562 Documentation/driver-api/thermal/power_allocator.rst
570 Documentation/driver-api/thermal/power_allocator.rst
577 Documentation/driver-api/thermal/power_allocator.rst
582 Temperature offset from the desired temperature trip point
586 accumulates error when temperature is above the desired
587 temperature trip point. For more information see
588 Documentation/driver-api/thermal/power_allocator.rst
596 to determine a hotspot temperature based off the sensor's
604 to determine a hotspot temperature based off the sensor's
611 -------------------------
616 - for generic ACPI: should be "Fan", "Processor" or "LCD"
617 - for memory controller device on intel_menlow platform:
631 - cur_state == 0 means no cooling
632 - cur_state == max_state means the maximum cooling.
659 reading this will return an -EFBIG error.
678 |---type: acpitz
679 |---temp: 37000
680 |---mode: enabled
681 |---policy: step_wise
682 |---available_policies: step_wise fair_share
683 |---trip_point_0_temp: 100000
684 |---trip_point_0_type: critical
685 |---trip_point_1_temp: 80000
686 |---trip_point_1_type: passive
687 |---trip_point_2_temp: 70000
688 |---trip_point_2_type: active0
689 |---trip_point_3_temp: 60000
690 |---trip_point_3_type: active1
691 |---cdev0: --->/sys/class/thermal/cooling_device0
692 |---cdev0_trip_point: 1 /* cdev0 can be used for passive */
693 |---cdev0_weight: 1024
694 |---cdev1: --->/sys/class/thermal/cooling_device3
695 |---cdev1_trip_point: 2 /* cdev1 can be used for active[0]*/
696 |---cdev1_weight: 1024
699 |---type: Processor
700 |---max_state: 8
701 |---cur_state: 0
704 |---type: Fan
705 |---max_state: 2
706 |---cur_state: 0
710 |---name: acpitz
711 |---temp1_input: 37000
712 |---temp1_crit: 100000
718 -----------------
721 of temperature of the thermal zone. Ideally, the thermal sensor drivers
724 temperature values.
727 -------------------------
734 ------------------------
743 On an event of critical trip temperature crossing the thermal framework
746 but accepts a delay after which it proceeds doing a forced power-off
753 carefully profiled non-zero positive value is a must for emergency