Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: Sergio Melas <sergiomelas@gmail.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] hwmon: (yogafan) Add support for additional Lenovo laptops
Date: Fri, 27 Nov 2026 06:28:41 +0100	[thread overview]
Message-ID: <20261127052841.492895-3-sergiomelas@gmail.com> (raw)
In-Reply-To: <20261127052841.492895-1-sergiomelas@gmail.com>

Add DMI quirks and ACPI fan tachometer configurations for nine
user-reported Lenovo laptops:

- IdeaPad 3 15ADA6 (82KR): 1 fan, 8-bit x100 (LPC0.EC0.FANS)
- IdeaPad 5 15ARE05 (81YQ): 1 fan, 8-bit x100 (LPC0.EC0.FANS)
- Legion 7 16ACHg6 (82N6): 2 fans, 8-bit x100 (LPC0.EC0.FANS/FA2S)
- Legion Slim 5 14APH8 (82Y5): 2 fans, 8-bit x100 (LPC0.EC0.FANS/FA2S)
- Legion Pro 7 16IAX10H (83F5): 3 fans, 8-bit x100 (PC00 FANS/FA2S/FASF)
- Yoga 7 16IAH7 (82UF): 2 fans, 8-bit x100 (PC00.LPCB.EC0.FANS/FA2S)
- Yoga 730-15IWL (81JS): 1 fan, 8-bit x100 (PCI0.LPCB.EC0.ERPM)
- Yoga Slim 7 15ILL9 (83HM): 2 fans, 16-bit x1 (PC00.LPCB.EC0.FANS/FA2S)
- Yoga Pro 9 16IAH10 (83L0): 2 fans, 16-bit x1 (PC00.LPCB.H_EC.FANS/FA2S)

Reuse existing yogafan_config structures where identical and update
Documentation/hwmon/yogafan.rst with the new models and contributors.

Signed-off-by: Sergio Melas <sergiomelas@gmail.com>
---
 Documentation/hwmon/yogafan.rst |  19 ++++++
 drivers/hwmon/yogafan.c         | 100 ++++++++++++++++++++++++++++++++
 2 files changed, 119 insertions(+)

diff --git a/Documentation/hwmon/yogafan.rst b/Documentation/hwmon/yogafan.rst
index c30cd9c81..62992293b 100644
--- a/Documentation/hwmon/yogafan.rst
+++ b/Documentation/hwmon/yogafan.rst
@@ -108,6 +108,16 @@ immediately to ensure the user knows the fan has stopped.
  83KF           | Yoga Pro 7 14IAH    | 0x06      | \_SB.PC00.LPCB.EC0.FANS        |  8-bit | 100
  83BS           | Yoga 7 16ARP8       | 0x03/0x06 | \_SB.PCI0.LPC0.EC0.FANS/FA2S   |  8-bit | 100
  83RU           | Legion Pro 7 16     | 0x04      | \_SB.PCI0.LPC0.EC0.FASF (Fan3) |  8-bit | 100
+ 82KR           | IdeaPad 3 15ADA6    | 0x06      | \_SB.PCI0.LPC0.EC0.FANS        |  8-bit | 100
+ 81YQ           | IdeaPad 5 15ARE05   | 0x06      | \_SB.PCI0.LPC0.EC0.FANS        |  8-bit | 100
+ 82N6           | Legion 7 16ACHg6    | 0x06/0xFE | \_SB.PCI0.LPC0.EC0.FANS/FA2S   |  8-bit | 100
+ 82Y5           | Legion Slim 5 14APH8| 0x06/0xFE | \_SB.PCI0.LPC0.EC0.FANS/FA2S   |  8-bit | 100
+ 83F5           | Legion Pro 7 16IAX10| 0x03/0x06 | \_SB.PC00.LPCB.EC0.FANS/FA2S   |  8-bit | 100
+ 83F5           | Legion Pro 7 16IAX10| 0x04      | \_SB.PC00.LPCB.EC0.FASF (Fan3) |  8-bit | 100
+ 82UF           | Yoga 7 16IAH7       | 0x06/0xFE | \_SB.PC00.LPCB.EC0.FANS/FA2S   |  8-bit | 100
+ 81JS           | YOGA 730-15IWL      | 0x06      | \_SB.PCI0.LPCB.EC0.ERPM        |  8-bit | 100
+ 83HM           | Yoga Slim 7 15ILL9  | 0x06/0xFE | \_SB.PC00.LPCB.EC0.FANS/FA2S   | 16-bit | 1
+ 83L0           | Yoga Pro 9 16IAH10  | 0x5A4     | \_SB.PC00.LPCB.H_EC.FANS/FA2S  | 16-bit | 1
  *Legacy*       | Pre-2020 Models     | 0x06      | \_SB.PCI0.LPC.EC.FAN0          |  8-bit | 100
  -------------------------------------------------------------------------------------------------------
 
@@ -167,3 +177,12 @@ Contributors & DSDT Providers:
 - **Phani Pavan K** (Yoga Pro 7 14IAH10 - 83KF)
 - **Splarkszter** (Yoga 7 16ARP8 - 83BS)
 - **GabboRocchia** (Legion Pro 7 16AFR10H - 83RU 3rd fan)
+- **dubhater** (IdeaPad 3 15ADA6 - 82KR)
+- **Voltair88** (IdeaPad 5 15ARE05 - 81YQ)
+- **magnumsolo** (Legion 7 16ACHg6 - 82N6)
+- **Dolik64** (Legion Slim 5 14APH8 - 82Y5)
+- **rzsn** (Legion Pro 7 16IAX10H - 83F5)
+- **slap2572** (Yoga 7 16IAH7 - 82UF)
+- **Lassebq** (YOGA 730-15IWL - 81JS)
+- **msourada** (Yoga Slim 7 15ILL9 - 83HM)
+- **geniusss87** (Yoga Pro 9 16IAH10 - 83L0)
diff --git a/drivers/hwmon/yogafan.c b/drivers/hwmon/yogafan.c
index 172fdc198..632eb0a8b 100644
--- a/drivers/hwmon/yogafan.c
+++ b/drivers/hwmon/yogafan.c
@@ -114,6 +114,34 @@ static const struct yogafan_config legion_8bit_triple_cfg = {
 		   "\\_SB.PCI0.LPC0.EC0.FASF" }
 };
 
+static const struct yogafan_config yoga_8bit_erpm_cfg = {
+	.multiplier = 100,
+	.fan_count = 1,
+	.paths = { "\\_SB.PCI0.LPCB.EC0.ERPM", NULL }
+};
+
+static const struct yogafan_config legion_pc00_8bit_triple_cfg = {
+	.multiplier = 100,
+	.fan_count = 3,
+	.paths = { "\\_SB.PC00.LPCB.EC0.FANS",
+		   "\\_SB.PC00.LPCB.EC0.FA2S",
+		   "\\_SB.PC00.LPCB.EC0.FASF" }
+};
+
+static const struct yogafan_config yoga_pc00_16bit_dual_cfg = {
+	.multiplier = 1,
+	.fan_count = 2,
+	.paths = { "\\_SB.PC00.LPCB.EC0.FANS",
+		   "\\_SB.PC00.LPCB.EC0.FA2S" }
+};
+
+static const struct yogafan_config yoga_pc00_hec_16bit_dual_cfg = {
+	.multiplier = 1,
+	.fan_count = 2,
+	.paths = { "\\_SB.PC00.LPCB.H_EC.FANS",
+		   "\\_SB.PC00.LPCB.H_EC.FA2S" }
+};
+
 static void apply_rllag_filter(struct yoga_fan_data *data, int idx, long raw_rpm)
 {
 	ktime_t now = ktime_get_boottime();
@@ -229,6 +257,78 @@ static const struct dmi_system_id yogafan_quirks[] = {
 		},
 		.driver_data = (void *)&xiaoxin_8bit_dual_cfg,
 	},
+	{
+		.ident = "Lenovo IdeaPad 3 15ADA6",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "IdeaPad 3 15ADA6"),
+		},
+		.driver_data = (void *)&yoga_8bit_fans_cfg,
+	},
+	{
+		.ident = "Lenovo IdeaPad 5 15ARE05",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "IdeaPad 5 15ARE05"),
+		},
+		.driver_data = (void *)&yoga_8bit_fans_cfg,
+	},
+	{
+		.ident = "Lenovo Legion 7 16ACHg6",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "Legion 7 16ACHg6"),
+		},
+		.driver_data = (void *)&xiaoxin_8bit_dual_cfg,
+	},
+	{
+		.ident = "Lenovo Legion Slim 5 14APH8",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "Legion Slim 5 14APH8"),
+		},
+		.driver_data = (void *)&xiaoxin_8bit_dual_cfg,
+	},
+	{
+		.ident = "Lenovo Legion Pro 7 16IAX10H",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "Legion Pro 7 16IAX10H"),
+		},
+		.driver_data = (void *)&legion_pc00_8bit_triple_cfg,
+	},
+	{
+		.ident = "Lenovo Yoga 7 16IAH7",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "Yoga 7 16IAH7"),
+		},
+		.driver_data = (void *)&yoga_pro_83dn_cfg,
+	},
+	{
+		.ident = "Lenovo Yoga 730-15IWL",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "YOGA 730-15IWL"),
+		},
+		.driver_data = (void *)&yoga_8bit_erpm_cfg,
+	},
+	{
+		.ident = "Lenovo Yoga Slim 7 15ILL9",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "Yoga Slim 7 15ILL9"),
+		},
+		.driver_data = (void *)&yoga_pc00_16bit_dual_cfg,
+	},
+	{
+		.ident = "Lenovo Yoga Pro 9 16IAH10",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "Yoga Pro 9 16IAH10"),
+		},
+		.driver_data = (void *)&yoga_pc00_hec_16bit_dual_cfg,
+	},
 	{
 		.ident = "Yoga 14cACN 2021",
 		.matches = {
-- 
2.55.0


  parent reply	other threads:[~2026-11-27  5:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  5:28 [PATCH 0/2] hwmon: (yogafan) Support >2 fans and add additional Lenovo laptops Sergio Melas
2026-11-27  5:28 ` [PATCH 1/2] hwmon: (yogafan) Support more than two fans and add 3rd fan for Legion Pro 7 16AFR10H Sergio Melas
2026-11-27  5:28 ` Sergio Melas [this message]
2026-11-27  5:31 ` [PATCH 0/2] hwmon: (yogafan) Support >2 fans and add additional Lenovo laptops sashiko-bot

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=20261127052841.492895-3-sergiomelas@gmail.com \
    --to=sergiomelas@gmail.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox