platform/x86: tongfang-mifs-wmi: Add new Tongfang MIFS WMI driver
PATCH 1/1 platform/x86: tongfang-mifs-wmi: Add new Tongfang MIFS WMI driver
platform/x86: tongfang-mifs-wmi: Add new Tongfang MIFS WMI driver
Add a WMI-based driver for Tongfang laptops that use the MIFS (MiInterface) ACPI WMI interface. These laptops are commonly sold under brands like Mechrevo, Schenker, XMG, and Eluktronics.
The driver implements the following features:
- Platform Profile support: Allows switching between Low Power, Balanced,
and Performance modes.
- Hwmon support: Provides monitoring for CPU temperature and fan speeds (CPU, GPU, and System fans).
- LED support: Standard LED class interface for controlling keyboard backlight brightness.
- Sysfs interface:
- GPU mode switching (Hybrid, Discrete, UMA).
- Keyboard RGB mode and color control.
- Fan boost (Max fan speed) toggle.
The driver communicates with the BIOS via WMI GUID "B60BFB48-3E5B-49E4-A0E9-8CFFE1B3434B" using method IDs 250 (GET) and 251 (SET).
--- drivers/platform/x86/Kconfig | 11 + drivers/platform/x86/Makefile | 1 + drivers/platform/x86/tongfang-mifs-wmi.c | 491 +++++++++++++++++++++++ 3 files changed, 503 insertions(+) create mode 100644 drivers/platform/x86/tongfang-mifs-wmi.c
drivers/platform/x86/Kconfig +11 -0
@@ -113,6 +113,17 @@ config GIGABYTE_WMI To compile this driver as a module, choose M here: the module will be called gigabyte-wmi. +config TONGFANG_MIFS_WMI + tristate "Tongfang MIFS WMI temperature, fan and GPU controller driver" + depends on ACPI_WMI + depends on HWMON + depends on ACPI_PLATFORM_PROFILE + help + The driver for Tongfang laptops + + Say Y here if you want to support WMI-based features on Tongfang + laptops, such as performance mode switching. + config ACERHDF tristate "Acer Aspire One temperature and fan driver" depends on ACPI_EC && THERMAL
drivers/platform/x86/Makefile +1 -0
@@ -14,6 +14,7 @@ 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 +obj-$(CONFIG_TONGFANG_MIFS_WMI) += tongfang-mifs-wmi.o # Acer obj-$(CONFIG_ACERHDF) += acerhdf.o
drivers/platform/x86/tongfang-mifs-wmi.c new file +491 -0
491 lines not on this page · raw message
Signature · 1 line
2.52.0