|
|
Log in / Subscribe / Register

platform/x86: add Xiaomi WMI key driver

From:  Lucy Wong <lucywong2778-AT-gmail.com>
To:  Hans de Goede <hdegoede-AT-redhat.com>, Ilpo Järvinen <ilpo.jarvinen-AT-linux.intel.com>
Subject:  [PATCH 0/1] platform/x86: add Xiaomi WMI key driver
Date:  Mon, 01 Jun 2026 23:14:03 +0800
Message-ID:  <20260601151404.93049-1-lucywong2778@gmail.com>
Cc:  platform-driver-x86-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, Lucy Wong <lucywong2778-AT-gmail.com>
Archive-link:  Article

This adds a driver for extra function keys on certain Xiaomi laptops.

Unlike the existing xiaomi-wmi driver where each key has its own WMI
GUID, this machine delivers all keys through a single event GUID
(B74AF83F-...), encoding the event type and keycode in the event buffer.

I was unsure whether this should be merged into the existing xiaomi-wmi.c
or kept separate due to the different mechanism. I chose a separate file
for clarity; happy to merge if preferred.

Tested on Xiaomi Mi Gaming Laptop (8th gen Intel).

Lucy Wong (1):
  platform/x86: add Xiaomi WMI key driver

 MAINTAINERS                            |   6 ++
 drivers/platform/x86/Kconfig           |  11 ++
 drivers/platform/x86/Makefile          |   1 +
 drivers/platform/x86/xiaomi-wmi-keys.c | 139 +++++++++++++++++++++++++
 4 files changed, 157 insertions(+)
 create mode 100644 drivers/platform/x86/xiaomi-wmi-keys.c

-- 
2.54.0




Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds