[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241217230645.15027-1-derekjohn.clark@gmail.com>
Date: Tue, 17 Dec 2024 15:06:44 -0800
From: "Derek J. Clark" <derekjohn.clark@...il.com>
To: Hans de Goede <hdegoede@...hat.com>
Cc: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
Jonathan Corbet <corbet@....net>,
Mario Limonciello <superm1@...nel.org>,
Luke Jones <luke@...nes.dev>,
Xino Ni <nijs1@...ovo.com>,
Zhixin Zhang <zhangzx36@...ovo.com>,
Mia Shao <shaohz1@...ovo.com>,
Mark Pearson <mpearson-lenovo@...ebb.ca>,
"Pierre-Loup A . Griffais" <pgriffais@...vesoftware.com>,
"Derek J . Clark" <derekjohn.clark@...il.com>,
platform-driver-x86@...r.kernel.org,
linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 0/1] platform/x86: Add Lenovo Legion WMI Drivers
Adds support for the Lenovo Legion series of laptop hardware to use WMI
interfaces that control various power settings. There are multiple WMI
interfaces that work in concert to provide getting and setting values as
well as validation of input. Currently only the "GameZone", "Other
Method", and "LENOVO_CAPABILITY_DATA_01" interfaces are implemented, but
I attempted to structure the driver so that adding the "Custom Mode",
"Lighting", and the other CAPABILITY_DATA interfaces would be trivial if
desired in a later patch.
This driver is distinct from, but should be considered a replacement for
this patch:
https://lore.kernel.org/all/20241118100503.14228-1-jonmail@163.com/
This driver attempts to standardize the exposed sysfs by mirroring the
asus-armoury driver currently under review. As such, a lot of
inspiration has been drawn from that driver.
https://lore.kernel.org/all/20240930000046.51388-1-luke@ljones.dev/
The driver has been tested by me on the Lenovo Legion Go.
Suggested-by: Mario Limonciello <superm1@...nel.org>
Reviewed-by: Luke Jones <luke@...nes.dev>
Signed-off-by: Derek J. Clark <derekjohn.clark@...il.com>
Derek J. Clark (1):
Add lenovo-legion-wmi drivers
.../wmi/devices/lenovo-legion-wmi.rst | 79 ++++
MAINTAINERS | 9 +
drivers/platform/x86/Kconfig | 35 ++
drivers/platform/x86/Makefile | 21 +-
.../x86/lenovo-legion-wmi-capdata01.c | 103 +++++
.../platform/x86/lenovo-legion-wmi-gamezone.c | 233 +++++++++++
.../platform/x86/lenovo-legion-wmi-other.c | 377 ++++++++++++++++++
drivers/platform/x86/lenovo-legion-wmi.h | 271 +++++++++++++
8 files changed, 1119 insertions(+), 9 deletions(-)
create mode 100644 Documentation/wmi/devices/lenovo-legion-wmi.rst
create mode 100644 drivers/platform/x86/lenovo-legion-wmi-capdata01.c
create mode 100644 drivers/platform/x86/lenovo-legion-wmi-gamezone.c
create mode 100644 drivers/platform/x86/lenovo-legion-wmi-other.c
create mode 100644 drivers/platform/x86/lenovo-legion-wmi.h
--
2.47.0
Powered by blists - more mailing lists