]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (yogafan) Add support for Lenovo Yoga/Legion fan monitoring
authorSergio Melas <sergiomelas@gmail.com>
Fri, 27 Mar 2026 22:16:02 +0000 (23:16 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 3 Apr 2026 18:09:09 +0000 (11:09 -0700)
commitc67c248ca406a86cf8b20bf1b3af5e7f3e36581f
treeac216fc5ae2e2f5fa112681983eee7b3790fb7a4
parent331e5fd5bfd7aae3ab4eb947367b9d609ebb3fb3
hwmon: (yogafan) Add support for Lenovo Yoga/Legion fan monitoring

This driver provides fan speed monitoring for Lenovo Yoga, Legion, and
IdeaPad laptops by interfacing with the Embedded Controller (EC) via ACPI.

To address low-resolution sampling in Lenovo EC firmware, a Rate-Limited
Lag (RLLag) filter is implemented. The filter ensures a consistent physical
curve regardless of userspace polling frequency.

Hardware identification is performed via DMI-based quirk tables, which
map specific ACPI object paths and register widths (8-bit vs 16-bit)
deterministically.

Signed-off-by: Sergio Melas <sergiomelas@gmail.com>
Link: https://lore.kernel.org/r/20260327221602.18832-1-sergiomelas@gmail.com
[groeck: Dropped double empty line in Kconfig]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/index.rst
Documentation/hwmon/yogafan.rst [new file with mode: 0644]
MAINTAINERS
drivers/hwmon/Kconfig
drivers/hwmon/Makefile
drivers/hwmon/yogafan.c [new file with mode: 0644]