All of lore.kernel.org
 help / color / mirror / Atom feed
From: KuwaLee <kuwaleecross@gmail.com>
To: Sergio Melas <sergiomelas@gmail.com>
Cc: Guenter Roeck <linux@roeck-us.net>,
	linux-hwmon@vger.kernel.org, LI-JIA-EN <kuwaleecross@gmail.com>
Subject: [PATCH] hwmon: (yogafan) Add support for Lenovo Yoga 9 2-in-1 14ILL10
Date: Sat, 21 Nov 2026 07:07:44 +0800	[thread overview]
Message-ID: <20261120230744.34942-1-kuwaleecross@gmail.com> (raw)

From: LI-JIA-EN <kuwaleecross@gmail.com>

The Lenovo Yoga 9 2-in-1 14ILL10 (DMI product name 83LC) currently
matches the generic "Yoga" quirk, which looks up
\_SB.PCI0.LPC0.EC0.FANS. That object does not exist on this Intel
Lunar Lake platform, so probe fails with -ENODEV and no hwmon device
is registered.

The DSDT exposes two 8-bit fan tachometer fields in the EC0 namespace,
used by the vendor WMI fan speed queries (feature IDs 0x04030001 and
0x04030002) with a multiplier of 100:

  \_SB.PC00.LPCB.EC0.FANS  (fan 1, EC offset 0x06)
  \_SB.PC00.LPCB.EC0.FA2S  (fan 2, EC offset 0x03)

This is the same layout as the Yoga Pro 9 16IMH9 (83DN), so reuse
yoga_pro_83dn_cfg and add a DMI entry matching product name 83LC
ahead of the generic Yoga entry. Document the model in the reference
table.

Tested on a Yoga 9 2-in-1 14ILL10 (BIOS Q9CN31WW): both fans read 0 RPM
when idle and rise to a few thousand RPM under CPU load.

Signed-off-by: LI-JIA-EN <kuwaleecross@gmail.com>
---
 Documentation/hwmon/yogafan.rst | 1 +
 drivers/hwmon/yogafan.c         | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/Documentation/hwmon/yogafan.rst b/Documentation/hwmon/yogafan.rst
index 239c7b5..ff272c5 100644
--- a/Documentation/hwmon/yogafan.rst
+++ b/Documentation/hwmon/yogafan.rst
@@ -93,6 +93,7 @@ immediately to ensure the user knows the fan has stopped.
  80V2 / 81C3    | Yoga 710/720        | 0x06      | \_SB.PCI0.LPC0.EC0.FAN0        |  8-bit | 100
  83E2           | Yoga Pro 7          | 0xFE      | \_SB.PCI0.LPC0.EC0.FANS        |  8-bit | 100
  83DN           | Yoga Pro 9 16IMH9   | 0x06/0xFE | \_SB.PC00.LPCB.EC0.FANS/FA2S   |  8-bit | 100
+ 83LC           | Yoga 9 2in1 14ILL10 | 0x06/0x03 | \_SB.PC00.LPCB.EC0.FANS/FA2S   |  8-bit | 100
  82A2 / 82A3    | Yoga Slim 7         | 0x06      | \_SB.PCI0.LPC0.EC0.FANS        |  8-bit | 100
  81YM / 82FG    | IdeaPad 5           | 0x06      | \_SB.PCI0.LPC0.EC0.FAN0        |  8-bit | 100
  82JW / 82JU    | Legion 5 (AMD)      | 0xFE/0xFF | \_SB.PCI0.LPC0.EC0.FANS (Fan1) | 16-bit | 1
diff --git a/drivers/hwmon/yogafan.c b/drivers/hwmon/yogafan.c
index 6d1284c..7772e83 100644
--- a/drivers/hwmon/yogafan.c
+++ b/drivers/hwmon/yogafan.c
@@ -285,6 +285,14 @@ static const struct dmi_system_id yogafan_quirks[] = {
 		},
 		.driver_data = (void *)&yoga_pro_83dn_cfg,
 	},
+	{
+		.ident = "Lenovo Yoga 9 2-in-1 14ILL10 (83LC)",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "83LC"),
+		},
+		.driver_data = (void *)&yoga_pro_83dn_cfg,
+	},
 	{
 		.ident = "Lenovo Yoga",
 		.matches = {
-- 
2.56.1


                 reply	other threads:[~2026-11-20 23:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261120230744.34942-1-kuwaleecross@gmail.com \
    --to=kuwaleecross@gmail.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=sergiomelas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.