mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-11 17:10:13 +00:00
Register fans connected under EC as thermal cooling devices as well, so these fans can then work with the thermal framework. During the driver probing phase, we will also try to register each fan as a thermal cooling device based on previous probe result (whether the there are fans connected on that channel, and whether EC supports fan control). The basic get max state, get current state, and set current state methods are then implemented as well. Signed-off-by: Sung-Chi Li <lschyi@chromium.org> Acked-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20250911-cros_ec_fan-v6-3-a1446cc098af@google.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
32 lines
919 B
ReStructuredText
32 lines
919 B
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
Kernel driver cros_ec_hwmon
|
|
===========================
|
|
|
|
Supported chips:
|
|
|
|
* ChromeOS embedded controllers.
|
|
|
|
Prefix: 'cros_ec'
|
|
|
|
Addresses scanned: -
|
|
|
|
Author:
|
|
|
|
- Thomas Weißschuh <linux@weissschuh.net>
|
|
|
|
Description
|
|
-----------
|
|
|
|
This driver implements support for hardware monitoring commands exposed by the
|
|
ChromeOS embedded controller used in Chromebooks and other devices.
|
|
|
|
The channel labels exposed via hwmon are retrieved from the EC itself.
|
|
|
|
Fan and temperature readings are supported. PWM fan control is also supported if
|
|
the EC also supports setting fan PWM values and fan mode. Note that EC will
|
|
switch fan control mode back to auto when suspended. This driver will restore
|
|
the fan state to what they were before suspended when resumed.
|
|
If a fan is controllable, this driver will register that fan as a cooling device
|
|
in the thermal framework as well.
|