From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796458251; b=A8zVclZCYAf+iYruhHHR4I8u5Q5IiGvODP81n2lxbCUZNPMGkBPlz//xnXIgTv0c3b0W /FS/ppta5xOHKSTqUy2o+QdmX5mQLdh3IHnonJ/x8LpBevRdgCSEGANc9wOZh10ZRWesW KIMdNSXX6Jf1Pp2ZIPy1mmpL/4sT2yUjw3JoTQCjqwwWwfOM/G8NU2IPHvS3d5s6i4flm Qz4h8soA9LE8ID89D5WdJx2zpdWHbhdle0zbft4NsZ94S/l3iypsQJVia9lfruPxKSnzn 3C9ALVLdx1QdA1Uj00LREDr/IXnQQC+OlB9RGiNDBLA3sgh2Iejlj3htHGp7ijKm17w== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796458251; h=Received:DKIM-Signature:Received:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; bh=1xOIQs5B1U7IlUvcb5LJVxxri/oJJ1DO8gz0s9pEGII=; b=w8PRxDxM/M28TXzMaGb7XUBNoOCIn0ffosluYPmm+C6ttam5XTIwjJK+ChlcrgQHoD9M sktbBYYDnNtNW1TV8rrVSK7So4zMRS/+byL0nFuRy/iG5cndkbOn5x3Db7NrkDh6PY37W iBV4Pj8zyDVXlNpkPHherOevoS22pFCPPJfuCnNJvq+KVlobjWmhnysd4plDj6AfLtyzi wVp2HyR6c0WvPoFjT2QaCsywNxboSuzszxGHEdn4fViWlay/ViWt4WcBSJ78EREouscXT ieielNMa0o9DZ2tIgDoX2+eqrd9e4TJueJDWy/ztTAFYaimSQZWhX5YyP0RcYdazl5Q== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=E+PrRMAv; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 97E9A606A322; Sat, 5 Dec 2026 08:10:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=E+PrRMAv Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796458251; b=fFOUGilm/EuVz1cyuIae/v1c+xHZB1sXlwFC3A89gFlry92xwi7k3G70VuykFqsXYpun 7twcmVW88JL0cGtuf0TcfotXaqs0ZBrKrr5KDoxiMEtZp5rwEVxZF9s+fiDJpxO2f40H6 ABwG+2FTLpxQdjna9Hn+sCkXgOuVbAkw239pirw1a7rD/6FobALNlp+5IiqPA9wA9Zc83 xYEwFEeHOB+wOrCXm4Npb/TAZHx0RANnfaozaQlCHQkaFS6iR+eaV6LN98KLKqGjIYFCb dpSBc8nw0A5DnvTdD6bV0y40friGm7udgACfLJcAJArycW4hHePiQf0I2dOtYUCcoyg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796458251; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=1xOIQs5B1U7IlUvcb5LJVxxri/oJJ1DO8gz0s9pEGII=; b=YVTLYZVIwedR7v2IyrCJx19TDh/YZV/wMipRQz4HrJeCMdxVdPPxQurtetiDXNkXC1fy U33VeBouV8s5Pt4CFHBFYoruPZaBl3jtMRA4LQ+82ZajJ2x21RyA9v2DrmF8xsMtaOOke FChiphj8efQzoUta3ickGo6KP84UORp9sNYF12PrOa7d+pTpqZgT/RKVfC+9OWHsCQZUE wBLkRWuf2++900eXeZs+sJ+sQhCIG/OI0+osLh7pxCFp74hABAUSPjAfTbf/3gacHvhWM GK38L2cPDrneKB2bouUNixq/IMzG5y064uYkdFSNJbD4trgq4DkQrtIRpbDMehuy0zw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 94C241F00936; Sat, 5 Dec 2026 08:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796458251; bh=1xOIQs5B1U7IlUvcb5LJVxxri/oJJ1DO8gz0s9pEGII=; h=From:Subject:Date:To:Cc:Reply-To; b=E+PrRMAvBG+HC4GIBgsOj46H4xYi2+eiCrNo2cAcOZKYxN0k2sZRDAYW5xpGMyCm3 bT2IeToVhEnfgztt+27bliDIF5MtCgarZoOhxd8pFMM6d7DtikocxytKxvLgcyU8FE ZgiPhXZO1XudsFZmQn2DiWNVDJgQGsk15CBpIhYVywbW9fIQUGuMJp8HuNomt55/TK rmTXzPvZpBv9eKvvlr0VbmY4Kai6aywpC7k+tU2GK2geVGSlnclMGIzOT9ombY3ZfA t7U5rT3JbUi+ul19P/OKyuF0OAUecr1iJ22pu3CqRSDaNEMh7ySHB2uHFDYL/WQmqm FoXD0t8sl+9GA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id EA25150220; Sat, 5 Dec 2026 08:10:49 +0000 (UTC) From: Farhan via B4 Relay Subject: [PATCH 0/3] platform/x86: uniwill-laptop: Support the Eluktronics RP-15 Date: Sat, 05 Dec 2026 13:10:48 +0500 Message-Id: <20261205-rp15-v1-0-ae8475100ed4@gmail.com> 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: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/x3MwQqDQAwE0F+RnLvULFqwv1J6WN1Rc8lKthRB/ PemXgYezMxBFSao9GwOMnylSlEH3xqa1qQLgmQ3xTY+uOU+2OYBTnngvhtiBnl1M8yyXzevt3t MFWG0pNP6HxeTRfQ+FwuK/UPn+QME6K+peAAAAA== X-Change-ID: 20261015-rp15-e1ad915492de To: Armin Wolf , Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Farhan X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796458248; l=3183; i=khan.10.0412@gmail.com; s=20261015; h=from:subject:message-id; bh=W/sGKVsFA8FYVPbC/x5nbl2i06hte08uNHZZ1pzMxkY=; b=vjL5ffq0qhec2Ua5CQWoGvBBlbhE0Eq5PeerHkAjOD88uV6jGUKUzhhRa1YO8qGqmiVybTEjs u6pecKDVbO2DlLjkf+xV8fYo3KxcPGsWa5lz/CkMbI6yRStXKscu7hO X-Developer-Key: i=khan.10.0412@gmail.com; a=ed25519; pk=RYXGxEnc8JS0U9o2+L5ep74H0QzCy/meWJdVhjgwcQE= X-Endpoint-Received: by B4 Relay for khan.10.0412@gmail.com/20261015 with auth_id=1749 X-Original-From: Farhan Reply-To: khan.10.0412@gmail.com This series adds support for the Eluktronics RP-15 (Red Pill Gen 1), a Tongfang/Uniwill laptop with an AMD Ryzen 7 4800H and an NVIDIA RTX 2060, similar to the TUXEDO Polaris 15 Gen1 AMD. Patch 1 fixes the keyboard backlight keys on ECs that report the new level but leave applying it to the driver (as the RP-15 does once manual control is enabled). It is a descriptor flag, so other devices are unaffected. Patch 2 adds the RP-15 with the features verified on the device. Patch 3 makes Fn lock and super key lock changes pollable, for on-screen displays. Note for the RP-15 class: the EC registers at 0x0743-0x0746, which this driver uses for NVIDIA cTGP control, hold the manual fan PWM levels here (confirmed from the vendor software's register constants), so the cTGP feature must stay disabled on this device. Testing ------- - Device: Eluktronics RP-15, BIOS N.1.21ELU09, EC project ID 0x10. - Build: the series on for-next (fea9dfe6c) compiles in-tree with W=1 without warnings. - Runtime: the running kernel is Ubuntu 7.0.0-38, so the driver from this series was built out-of-tree against it, with two lines removed that need newer core APIs (mc_subled.max_intensity, wmi_driver.min_event_size). Checked: - CPU/GPU temperatures and both fans, including under load; - RGB keyboard backlight: colour, and the brightness keys now change the level, with brightness and brightness_hw_changed in agreement (without patch 1: brightness 3, brightness_hw_changed 4, no visible change); - poll() on fn_lock and super_key_enable wakes for sysfs writes and for the Fn+Esc / super key lock keys. - Not tested, and therefore not enabled for the RP-15: battery charge modes and USB-C power priority. Both attributes read sane values with the Polaris descriptor. Tool use -------- These patches, including the changelogs, were written with an AI coding assistant (Claude Code, Anthropic's Claude Opus 5.5) in an interactive session. It reverse-engineered the EC interface on the device (ACPI tables, EC RAM dumps, the vendor application's metadata), wrote an out-of-tree driver, and ported the relevant changes to for-next. I directed the work, ran the hardware tests, and reviewed the patches. Each patch carries an Assisted-by tag. Future work: the vendor's performance modes (Office/Gaming/Beast, mode button and its LEDs), power limits and fan boost work on this device with the same EC. I would like to propose them as platform_profile and hwmon pwm1_enable support in a follow-up RFC. --- Farhan (3): platform/x86: uniwill-laptop: Optionally apply keyboard backlight levels platform/x86: uniwill-laptop: Add support for the Eluktronics RP-15 platform/x86: uniwill-laptop: Notify userspace about Fn and super key lock changes .../ABI/testing/sysfs-driver-uniwill-laptop | 6 ++ drivers/platform/x86/uniwill/uniwill-acpi.c | 69 ++++++++++++++++++---- 2 files changed, 64 insertions(+), 11 deletions(-) --- base-commit: fea9dfe6c4d93dc3f4b4b3534dc25bf283eaef08 change-id: 20261015-rp15-e1ad915492de Best regards, -- Farhan