]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86: bitland-mifs-wmi: Add new Bitland MIFS WMI driver
authorMingyou Chen <qby140326@gmail.com>
Mon, 23 Mar 2026 13:22:18 +0000 (21:22 +0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 24 Mar 2026 13:03:09 +0000 (15:03 +0200)
commitdc1ec4fa86b2b8bba2b6122f2b4420217b5bae9e
treef908800c44b54245f75391e58c5a6faf10387d6e
parenta5877e921389178f994a5ec15a145d7e7ba3ec65
platform/x86: bitland-mifs-wmi: Add new Bitland MIFS WMI driver

Add a new driver for Bitland laptops that utilize the MIFS (MiInterface)
WMI interface.

The driver implements several features through the WMI interface:

- Platform Profile: Supports "Quiet", "Balanced", "Performance", and
  "Full Speed" modes. The "Full Speed" mode is intelligently restricted
  based on the AC adapter type (requires DC power, not supported on
  USB-C charging) as required by the hardware.
- Hwmon: Provides monitoring for CPU, GPU, and System fan speeds,
  as well as CPU temperature sensors.
- Keyboard Backlight: Integrated with the LED class device for
  brightness control and provides sysfs attributes for keyboard modes
  (cyclic, fixed, etc.).
- GPU Mode: Allows switching between Hybrid, Discrete, and UMA
  graphics modes via sysfs.
- Hotkeys: Handles WMI events for system hotkeys (Calculator, Browser,
  App launch) using sparse keymaps and reports status changes for
  Airplane mode, Touchpad, and CapsLock.
- Fan Boost: Provides a sysfs interface to force fans to maximum speed.

The driver registers two WMI GUIDs:
B60BFB48-3E5B-49E4-A0E9-8CFFE1B3434B: Control methods
46C93E13-EE9B-4262-8488-563BCA757FEF: Event notifications

Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: Mingyou Chen <qby140326@gmail.com>
Link: https://patch.msgid.link/20260323132218.444383-1-qby140326@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Documentation/wmi/devices/bitland-mifs-wmi.rst [new file with mode: 0644]
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile
drivers/platform/x86/bitland-mifs-wmi.c [new file with mode: 0644]