summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorrahlquist <rahlquist@gmail.com>2026-08-13 12:47:46 -0400
committerGuenter Roeck <linux@roeck-us.net>2026-10-18 09:35:05 -0700
commitc191107b0f77e5003e3210c77bed5b6df4287789 (patch)
tree3814c640a928197e004893eebf8324c802cd04cc /drivers
parentebdf602889477d6df1ae3869c51f25457573701a (diff)
hwmon: (yogafan) Add Lenovo Yoga Pro 9 16IMH9
The Lenovo Yoga Pro 9 16IMH9 (83DN) exposes its fan tachometers at ACPI paths different from the generic Yoga configuration. Add a model-specific two-fan configuration for the PC00.LPCB.EC0 namespace and document the corrected mapping. Tested on a Lenovo Yoga Pro 9 16IMH9 (83DN) with BIOS NKCN35WW: the patched module registers fan1_input and fan2_input, both reporting 1800 RPM at idle. Signed-off-by: Richard Ahlquist <rahlquist@gmail.com> Link: https://patch.msgid.link/20260813164746.105154-1-rahlquist@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/yogafan.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/hwmon/yogafan.c b/drivers/hwmon/yogafan.c
index 278cb089b0fd..413ddc721a11 100644
--- a/drivers/hwmon/yogafan.c
+++ b/drivers/hwmon/yogafan.c
@@ -90,6 +90,17 @@ static const struct yogafan_config yoga_pro_7_14iah10_cfg = {
.paths = { "\\_SB.PC00.LPCB.EC0.FANS", NULL }
};
+/*
+ * Lenovo Yoga Pro 9 16IMH9 (83DN) uses the PC00 namespace and has two
+ * 8-bit fan tachometer fields.
+ */
+static const struct yogafan_config yoga_pro_83dn_cfg = {
+ .multiplier = 100,
+ .fan_count = 2,
+ .paths = { "\\_SB.PC00.LPCB.EC0.FANS",
+ "\\_SB.PC00.LPCB.EC0.FA2S" }
+};
+
static void apply_rllag_filter(struct yoga_fan_data *data, int idx, long raw_rpm)
{
ktime_t now = ktime_get_boottime();
@@ -238,6 +249,14 @@ static const struct dmi_system_id yogafan_quirks[] = {
.driver_data = (void *)&xiaoxin_8bit_dual_cfg,
},
{
+ .ident = "Lenovo Yoga Pro 9 16IMH9 (83DN)",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "83DN"),
+ },
+ .driver_data = (void *)&yoga_pro_83dn_cfg,
+ },
+ {
.ident = "Lenovo Yoga",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),