mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] platform/x86: uniwill-laptop: Add SLIMBOOK Executive (13th Gen Intel)
@ 2026-11-30 22:12 Christoph Müllner
  2026-12-04 18:43 ` Ilpo Järvinen
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Müllner @ 2026-11-30 22:12 UTC (permalink / raw)
  To: Armin Wolf, Hans de Goede, Ilpo Järvinen
  Cc: Werner Sembach, platform-driver-x86, linux-kernel,
	Christoph Müllner

The SLIMBOOK Executive with 13th Gen Intel CPUs (DMI product SKU
"Executive-RPL") is based on a Uniwill barebone: it provides the INOU0000
ACPI device with the ECRR/ECRW methods, the ABBC0F6x WMI GUIDs and reports
EC project ID 0x18 (PHXPXXX).

The BIOS setup option "Battery Maximum Limit" (Mobility 100%, Balanced
80%, Desktop 60%) is stored in bits 6:0 of EC register 0x07B9, which is
the register used by the charge limit feature of this driver. The DSDT
names this field CGLM and _BST reports the "charge limiting" state when it
holds a value between 1 and 99. The charging profile register (0x07A6)
is not touched by the BIOS option.

The existing descriptor for PHxPxxx based devices uses the charging
profile interface (0x07A6). This machine uses the charge limit register
instead, because that is where its BIOS stores the user's setting, so a
separate descriptor is used. Enable only the battery charge limit for
now, as the other features have not been verified on this machine.

Match on the product SKU, since the product name "Executive" is also used
by other generations of this model. The product name is matched as well,
so that the module alias (which cannot encode the SKU) does not cover all
SLIMBOOK machines.

Tested on BIOS N.1.10GRU10 (04/29/2025), EC firmware 1.26:
- charge_control_end_threshold reads back the value set in the BIOS
  (100/80/60) and the EC stops charging at the threshold written at
  runtime (71% -> 75%, no overshoot); writing 100 resumes charging
- the limit is enforced during s2idle and S3 and still set after resume
- the value is retained across warm reboot and power off; the BIOS only
  overwrites it when its setup option is changed
- UPower's charge threshold support works with the end-only threshold

Signed-off-by: Christoph Müllner <christophm30@gmail.com>
---
 drivers/platform/x86/uniwill/uniwill-acpi.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/platform/x86/uniwill/uniwill-acpi.c b/drivers/platform/x86/uniwill/uniwill-acpi.c
index 7fb52b574190..6229b4da0097 100644
--- a/drivers/platform/x86/uniwill/uniwill-acpi.c
+++ b/drivers/platform/x86/uniwill/uniwill-acpi.c
@@ -3072,6 +3072,10 @@ static struct uniwill_device_descriptor x4sp4nal_descriptor __initdata = {
 	.kbd_led_max_brightness = 2,
 };
 
+static struct uniwill_device_descriptor slimbook_executive_rpl_descriptor __initdata = {
+	.features = UNIWILL_FEATURE_BATTERY_CHARGE_LIMIT,
+};
+
 static const struct dmi_system_id uniwill_dmi_table[] __initconst = {
 	{
 		.ident = "AiStone X4SP4NAL",
@@ -3576,6 +3580,15 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {
 		},
 		.driver_data = &pfxnuxx_pfxluxx_phxprxx_descriptor,
 	},
+	{
+		.ident = "SLIMBOOK Executive (13th Gen Intel)",
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "SLIMBOOK"),
+			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Executive"),
+			DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "Executive-RPL"),
+		},
+		.driver_data = &slimbook_executive_rpl_descriptor,
+	},
 	{ }
 };
 MODULE_DEVICE_TABLE(dmi, uniwill_dmi_table);

base-commit: 61c0dac952b9308884936d05cce97565a5c89af4
-- 
2.56.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] platform/x86: uniwill-laptop: Add SLIMBOOK Executive (13th Gen Intel)
  2026-11-30 22:12 [PATCH] platform/x86: uniwill-laptop: Add SLIMBOOK Executive (13th Gen Intel) Christoph Müllner
@ 2026-12-04 18:43 ` Ilpo Järvinen
  0 siblings, 0 replies; 2+ messages in thread
From: Ilpo Järvinen @ 2026-12-04 18:43 UTC (permalink / raw)
  To: Armin Wolf, Hans de Goede, Christoph Müllner
  Cc: Werner Sembach, platform-driver-x86, linux-kernel

On Mon, 30 Nov 2026 23:12:29 +0100, Christoph Müllner wrote:

> The SLIMBOOK Executive with 13th Gen Intel CPUs (DMI product SKU
> "Executive-RPL") is based on a Uniwill barebone: it provides the INOU0000
> ACPI device with the ECRR/ECRW methods, the ABBC0F6x WMI GUIDs and reports
> EC project ID 0x18 (PHXPXXX).
> 
> The BIOS setup option "Battery Maximum Limit" (Mobility 100%, Balanced
> 80%, Desktop 60%) is stored in bits 6:0 of EC register 0x07B9, which is
> the register used by the charge limit feature of this driver. The DSDT
> names this field CGLM and _BST reports the "charge limiting" state when it
> holds a value between 1 and 99. The charging profile register (0x07A6)
> is not touched by the BIOS option.
> 
> [...]

Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.

The list of commits applied:
[1/1] platform/x86: uniwill-laptop: Add SLIMBOOK Executive (13th Gen Intel)
      commit: 06a9e90271b58bb4f9ed5e2cb07e50ccbe065191

--
 i.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-04 18:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 22:12 [PATCH] platform/x86: uniwill-laptop: Add SLIMBOOK Executive (13th Gen Intel) Christoph Müllner
2026-12-04 18:43 ` Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®