mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Farhan via B4 Relay <devnull+khan.10.0412.gmail.com@kernel.org>
To: "Armin Wolf" <W_Armin@gmx.de>, "Hans de Goede" <hansg@kernel.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: platform-driver-x86@vger.kernel.org,
	linux-kernel@vger.kernel.org,  Farhan <khan.10.0412@gmail.com>
Subject: [PATCH 0/3] platform/x86: uniwill-laptop: Support the Eluktronics RP-15
Date: Sat, 05 Dec 2026 13:10:48 +0500	[thread overview]
Message-ID: <20261205-rp15-v1-0-ae8475100ed4@gmail.com> (raw)

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 <khan.10.0412@gmail.com>



             reply	other threads:[~2026-12-05  8:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05  8:10 Farhan via B4 Relay [this message]
2026-12-05  8:10 ` [PATCH 1/3] platform/x86: uniwill-laptop: Optionally apply keyboard backlight levels Farhan via B4 Relay
2026-12-05  8:10 ` [PATCH 2/3] platform/x86: uniwill-laptop: Add support for the Eluktronics RP-15 Farhan via B4 Relay
2026-12-05  8:10 ` [PATCH 3/3] platform/x86: uniwill-laptop: Notify userspace about Fn and super key lock changes Farhan via B4 Relay

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=20261205-rp15-v1-0-ae8475100ed4@gmail.com \
    --to=devnull+khan.10.0412.gmail.com@kernel.org \
    --cc=W_Armin@gmx.de \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=khan.10.0412@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®