Skip to contentSkip to conversation

platform/x86: Add WMI driver for Redmibook keyboard.

PATCH In review Gladyshev Ilya 2 participants 2 messages Aug 20, 2025 – Aug 28, 2025

Subsystems (3)
lore
Share & tools
lore

Gladyshev Ilya

author maintainer
#0 lore raw

PATCH v6 1/1 platform/x86: Add WMI driver for Redmibook keyboard.

This driver implements support for various Fn keys (like Cut) and Xiaomi specific AI button.

---
Changes since v5:
- Fix var declaration in the middle of the func

Link to v5: https://lore.kernel.org/platform-driver-x86/[email protected]/

---
 MAINTAINERS                      |   6 ++
 drivers/platform/x86/Kconfig     |  12 +++
 drivers/platform/x86/Makefile    |   1 +
 drivers/platform/x86/redmi-wmi.c | 129 +++++++++++++++++++++++++++++++
 4 files changed, 148 insertions(+)
 create mode 100644 drivers/platform/x86/redmi-wmi.c
MAINTAINERS +6 -0
index c0b444e5fd5a..eb25fb10e751 100644
@@ -20965,6 +20965,12 @@ S:	Maintained
 T:	git https://github.com/pkshih/rtw.git
 F:	drivers/net/wireless/realtek/rtw89/
 
+REDMIBOOK WMI DRIVERS
+M:	Gladyshev Ilya <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	drivers/platform/x86/redmi-wmi.c
+
 REDPINE WIRELESS DRIVER
 L:	[email protected]
 S:	Orphan
drivers/platform/x86/Kconfig +12 -0
index e5cbd58a99f3..9f98a7042e43 100644
@@ -109,6 +109,18 @@ config XIAOMI_WMI
 	  To compile this driver as a module, choose M here: the module will
 	  be called xiaomi-wmi.
 
+config REDMI_WMI
+	tristate "Redmibook WMI key driver"
+	depends on ACPI_WMI
+	depends on INPUT
+	select INPUT_SPARSEKMAP
+	help
+	  Say Y here if you want support for WMI-based hotkey events on
+	  Xiaomi Redmibook devices.
+
+	  To compile this driver as a module, choose M here: the module will
+	  be called redmi-wmi.
+
 config GIGABYTE_WMI
 	tristate "Gigabyte WMI temperature driver"
 	depends on ACPI_WMI
drivers/platform/x86/Makefile +1 -0
index bea87a85ae75..406dd0807ba7 100644
@@ -13,6 +13,7 @@ obj-$(CONFIG_HUAWEI_WMI)		+= huawei-wmi.o
 obj-$(CONFIG_MXM_WMI)			+= mxm-wmi.o
 obj-$(CONFIG_NVIDIA_WMI_EC_BACKLIGHT)	+= nvidia-wmi-ec-backlight.o
 obj-$(CONFIG_XIAOMI_WMI)		+= xiaomi-wmi.o
+obj-$(CONFIG_REDMI_WMI)			+= redmi-wmi.o
 obj-$(CONFIG_GIGABYTE_WMI)		+= gigabyte-wmi.o
 
 # Acer
drivers/platform/x86/redmi-wmi.c new file +129 -0

129 lines not on this page · raw message

Signature · 1 line
2.50.0
maintainer
#1 lore raw
Quoted 4 lines · Gladyshev Ilya

This driver implements support for various Fn keys (like Cut) and Xiaomi specific AI button.

Thank you for your contribution, it has been applied to my local review-ilpo-next branch. Note it will show up in the public platform-drivers-x86/review-ilpo-next branch only once I've pushed my local branch there, which might take a while.

The list of commits applied:
[1/1] platform/x86: Add WMI driver for Redmibook keyboard.

      commit: 98aadf8e494d2bf66b15d0ef9646ad9fdb6ded15

--
i.