Lines Matching refs:thermal

13 The generic thermal sysfs provides a set of interfaces for thermal zone
14 devices (sensors) and thermal cooling devices (fan, processor...) to register
15 with the thermal management solution and to be a part of it.
17 This how-to focuses on enabling new thermal zone and cooling devices to
18 participate in thermal management.
19 This solution is platform independent and any type of thermal zone devices
22 The main task of the thermal sysfs driver is to expose thermal zone attributes
24 An intelligent thermal management application can make decisions based on
25 inputs from thermal zone attributes (the current temperature and trip point
31 1. thermal sysfs driver interface functions
33 1.1 thermal zone device interface
40 This interface function adds a new thermal zone device (sensor) to
41 /sys/class/thermal folder as thermal_zone[0-*]. It tries to bind all the
42 thermal cooling devices registered at the same time.
44 type: the thermal zone type.
45 trips: the total number of trip points this thermal zone supports.
48 ops: thermal zone device call-backs.
49 .bind: bind the thermal zone device with a thermal cooling device.
50 .unbind: unbind the thermal zone device with a thermal cooling device.
51 .get_temp: get the current temperature of the thermal zone.
55 .get_mode: get the current mode (enabled/disabled) of the thermal zone.
56 - "enabled" means the kernel thermal management is enabled.
57 - "disabled" will prevent kernel thermal driver action upon trip points
58 so that user applications can take charge of thermal management.
59 .set_mode: set the mode (enabled/disabled) of the thermal zone.
65 tzp: thermal zone platform parameters.
74 This interface function removes the thermal zone device.
75 It deletes the corresponding entry from /sys/class/thermal folder and
76 unbinds all the thermal cooling devices it uses.
82 This interface adds a new sensor to a DT thermal zone.
83 This function will search the list of thermal zones described in
87 thermal zone device.
103 left the driver must inform the thermal
109 The thermal zone temperature is provided by the get_temp() function
113 It returns error pointer if fails otherwise valid thermal zone device
120 This interface unregisters a sensor from a DT thermal zone which was
123 thermal zone device registered with thermal_zone_of_sensor_register()
125 get_trend() thermal zone device callbacks.
153 for the thermal zone device, which might be useful for platform
159 for the thermal zone device, which might be useful for platform
162 1.2 thermal cooling device interface
166 This interface function adds a new thermal cooling device (fan/processor/...)
167 to /sys/class/thermal/ folder as cooling_device[0-*]. It tries to bind itself
168 to all the thermal zone devices registered at the same time.
171 ops: thermal cooling devices call-backs.
178 This interface function removes the thermal cooling device.
179 It deletes the corresponding entry from /sys/class/thermal folder and
180 unbinds itself from all the thermal zone devices using it.
182 1.3 interface for binding a thermal zone device with a thermal cooling device
187 This interface function binds a thermal cooling device to a particular trip
188 point of a thermal zone device.
189 This function is usually called in the thermal zone device .bind callback.
190 tz: the thermal zone device
191 cdev: thermal cooling device
192 trip: indicates which trip point in this thermal zone the cooling device
200 weight: the influence of this cooling device in this thermal
206 This interface function unbinds a thermal cooling device from a particular
207 trip point of a thermal zone device. This function is usually called in
208 the thermal zone device .unbind callback.
209 tz: the thermal zone device
210 cdev: thermal cooling device
211 trip: indicates which trip point in this thermal zone the cooling device
229 this thermal zone and cdev, for a particular trip point.
230 If nth bit is set, then the cdev and thermal zone are bound
242 This structure defines the platform level parameters for a thermal zone.
243 This data, for each thermal zone should come from the platform layer.
246 .governor_name: Name of the thermal governor used for this zone
247 .no_hwmon: a boolean to indicate if the thermal to hwmon sysfs interface
261 Thermal sysfs attributes will be represented under /sys/class/thermal.
266 /sys/class/thermal/thermal_zone[0-*]:
267 |---type: Type of the thermal zone
269 |---mode: Working mode of the thermal zone
271 |---available_policies: Available thermal governors for this zone
286 /sys/class/thermal/cooling_device[0-*]:
298 the relationship between a thermal zone and its associated cooling device.
302 /sys/class/thermal/thermal_zone[0-*]:
303 |---cdev[0-*]: [0-*]th cooling device in current thermal zone
306 this thermal zone
308 Besides the thermal zone device sysfs I/F and cooling device sysfs I/F,
309 the generic thermal driver also creates a hwmon sysfs I/F for each _type_
310 of thermal zone device. E.g. the generic thermal driver registers one hwmon
312 ACPI thermal zones.
315 |---name: The type of the thermal zone devices
316 |---temp[1-*]_input: The current temperature of thermal zone [1-*]
317 |---temp[1-*]_critical: The critical trip point of thermal zone [1-*]
326 Strings which represent the thermal zone type.
327 This is given by thermal zone driver as part of registration.
328 E.g: "acpitz" indicates it's an ACPI thermal device.
334 Current temperature as reported by thermal zone (sensor).
341 managing the thermal zone. It can be either default kernel based
344 disabled = Preventing kernel thermal zone driver actions upon
346 charge of the thermal management.
350 One of the various thermal governors used for a particular zone.
354 Available thermal governors which can be used for a particular zone.
365 thermal zone.
374 Sysfs link to the thermal cooling device node where the sys I/F
379 The trip point in this thermal zone which cdev[0-*] is associated
385 The influence of cdev[0-*] in this thermal zone. This value
386 is relative to the rest of cooling devices in the thermal
389 thermal zone.
394 policy is not supported by native thermal driver. Default is zero
403 Interface to set the emulated temperature method in thermal zone
404 (sensor). After setting this temperature, the thermal zone may pass
413 because userland can easily disable the thermal policy by simply
418 the thermal zone. Used by the power allocator governor. For
419 more information see Documentation/thermal/power_allocator.txt
428 Documentation/thermal/power_allocator.txt
436 Documentation/thermal/power_allocator.txt
443 Documentation/thermal/power_allocator.txt
449 Documentation/thermal/power_allocator.txt
459 Documentation/thermal/power_allocator.txt
526 ACPI thermal zone may support multiple trip points like critical, hot,
527 passive, active. If an ACPI thermal zone supports critical, passive,
532 effectiveness in cooling the thermal zone.
537 /sys/class/thermal:
553 |---cdev0: --->/sys/class/thermal/cooling_device0
556 |---cdev1: --->/sys/class/thermal/cooling_device3
585 thermal zone device will be used in the message to identify the zone. The
593 This function returns the trend of a thermal zone, i.e the rate of change
594 of temperature of the thermal zone. Ideally, the thermal sensor drivers
595 are supposed to implement the callback. If they don't, the thermal