From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796076757; b=oRnfsOPqTXHLyF/A1OPTahxI1Z60l+CltQg/iwNPCpswjIeG5xsDfTJfBeuHpcm3MLRZ hfvMW9u/KY6Y4giahY57I/g5A4HlvBDmcwQZA1t+Hpo2JPSJ9kXEmAEiWD+ppcWDsMlj4 yMRzuVOCivDft81BziiOKYRUQHRCOUNy64zS0zELjau52Q73uhK7rF1zvtlsYI2as+PcY CYL7sXb5/CIzM283ppUVIOXYgdYBFXZ9Ss/8LDZVZ+7QRWx95K9TX48QAX5WOEWvTopNL I3H0SGOHEqbPrIb2VJTaNUZb1ip2+r6nj5KWOPOHO99dsrlf/xfGs8JbIJVWGZdGlpg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796076757; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=oCCayH/60egOXuw/vCj4anGh81WG7Nf8RoxTlQFmlsg=; b=G/cMVBOsw9YWU+zfa20PDv17zO0AnO502QXDJLvSE2JC+68MWLfpqC72ka1xAygBeENQ 2SzLf2QsyQXMt0tjOkrMQTGdSROdFLzwTYtgHyccafHjtsjZqyOyr2YN2ZHiiImV7bwop VByVNeXhBGmKxhweK8z7nGtvy8ELTUfvigEwNOIcVRbNIQwd9w/SPMx8jGrHP12QeVLJQ hBxPDJZn3EZXorzUG1xCJNdhQpoDjh0IlK7Yljtmnms/S4i2ruQ1/n2woizwBUVD89Q9l KkbiXO9l4+b8NzWa59qyMiRqSKUl2vgwbgvf6Kgv02w+39/h8kJTtTYlOGDtxrHmlIA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=bWOLs8xl; arc=none smtp.remote-ip=209.85.128.53 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E9D7606A32A for ; Mon, 30 Nov 2026 22:12:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8E9D7606A32A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=bWOLs8xl Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4bb72b44a97so95749725e9.0 for ; Mon, 30 Nov 2026 14:12:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796076755; x=1796681555; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=oCCayH/60egOXuw/vCj4anGh81WG7Nf8RoxTlQFmlsg=; b=bWOLs8xldH0ZsQkNlwgGCocDZaxdavwwZ8RJeqm1sWaI5bEHG5pbaY2HIEExEnyKAn mDkbpch0TUrbIMBrwKpxEgppYrEfDb6rgVH7pinDNt6byLDGNIpFeh22THYTgxIYO6v7 JjU4QTk3jRgcSPJMnmAyw01BA/6OzJoNntJ0E6hKY6mI4U4wnkkbUmCcOgiIyqMbw42p xhBDil+71DfLnPlRFTOJDjfS0X57hfwXpuOjg0ehfJHTgLZxoQxbFNTeU9d8kuoQeV2r EBNfcNhWNK7v1fBNKq05BPs1TcKgIOcQLV3dr4/EfdrNF1RpGWsp2YDn1TXjarsfQ0QF e20g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796076755; x=1796681555; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=oCCayH/60egOXuw/vCj4anGh81WG7Nf8RoxTlQFmlsg=; b=mj2pVigwvbr4yNWNkf/sEuMomLk8K1GmcCj0y9tkQWcOL7d3r7VGYVSRt65jE9h/7X cT5aWyLkRhvpa+lS8UIMZ64MqXRlkCQYHWegY2iBXFp64Qf6TULNDf4FngUsDM9RFVL5 K7j0EIgUzfwx0LCdHXi5BFK/lLsJ6SpSY/E615KJsqNNkMzOqJ/VqteDY2EuextKLwLe exb99LMm5lXbJwAyzK05bBaiejtrZJ6nXzIrlNQP/xdujC+7X8O/obzzcqGZWr16yiR1 uLYnMmcd8lupAE1i4Zrx51P8jdZyIbN83XdFsi6b7G55hXaOQYVjQq8ob2N/w/zzOJeM w2EQ== X-Forwarded-Encrypted: i=1; AL+hErHrIAVGkcpKqLWY2ilmHHePBtXzjbnO4njYikllqoylJzosNtB4MxpP0KFwTlWRtyyA+TF0M+1NhRayv40=@vger.kernel.org X-Gm-Message-State: APuU4Z9ttFZCHidbg6j3v5GcniledEn40SE1YAHtN7Dj48+BbPxsblc6 2li9M321BvJ4B+0/Y1HqGDuPzHNcyucL8KvTKY2Kxhc2ovAfl6rJrr9n X-Gm-Gg: AZFdTZcm1tKzCdtyhEanTvDuH1JCsfnFFoP9bNeEg950rJ8bn5K9oF36r8rNAIEjo61 w4VADkjmD5cNxHJs2lB3VPYisND9T7rMQwnBaE3JiYulHGpZO/elh5WsdtFYvXJS3pVqvotrV3i tHORG/gbY3fbhoZb2A4eycG9/ozpwPXcijQOEU2dkwkOrH4eSlTUrhioQEKLOjGGxZsg53hllJv b9ZXmjIs+UpxmyL/cTmh0dWU+Xx//X/mfkitOsAo0WPaasy+yXFdFNXvs33mvt+2Fwz2WUHf8DB DxSN0zfXwwC+VsF9rEq0uoo7+h7ME6814JzXQvG7aOPCR13u+2qzR3hke6Hj4yYmSTyI1vNypPJ 7F3qItz0V/uwzAK20a531HCHgbSbL5AB4K887XjruDLSN7q/GQzOV1HDm7mH6edfFKJagpYR0o8 5dP6yiyemGiDwiKL3FJcLwnnhFK9MWpZUxu1ghsmcy5aW/qMyl8l6DOqq6BzBJTBtW29ScuURIH h5eJ39yZBOH3bKhAR+nv9ppB2S2AdEJ21V3+lg52rcFI9wQpSynOEJEi7Is3g3VSJX5qQWbrO6V nXy9hhqVLcnGkWKArho8VKxSnaiGzfpMKXfz5QlNAJPeJ8zxs4K6bJB7YabFriYe4GDxNyXvY1R /uazB9HoHZ/5kr12x4JtMtS30f4E4qWIIVdeW1CRZ9+DG+phjJRCo6StQg4E1Q+JPqJbnUfoVLv PjZXIVlu2pixuEySHjS9cSGUpI X-Received: by 2002:a05:600c:4e02:b0:4bb:5d39:95fa with SMTP id 5b1f17b1804b1-4bb88811c82mr664787325e9.12.1796076754913; Mon, 30 Nov 2026 14:12:34 -0800 (PST) Received: from fw13.fritz.box (62-178-148-172.cable.dynamic.surfer.at. [62.178.148.172]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4b33a596f9csm37186352f8f.12.2026.11.30.14.12.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 14:12:34 -0800 (PST) From: =?UTF-8?q?Christoph=20M=C3=BCllner?= To: Armin Wolf , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Cc: Werner Sembach , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Christoph=20M=C3=BCllner?= Subject: [PATCH] platform/x86: uniwill-laptop: Add SLIMBOOK Executive (13th Gen Intel) Date: Mon, 30 Nov 2026 23:12:29 +0100 Message-ID: <20261130221229.4146100-1-christophm30@gmail.com> X-Mailer: git-send-email 2.56.1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- 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