[PATCH v2 0/2] platform/x86: Add Emdoor Intel EWMI platform driver
From: Ziqiang Xia via B4 Relay
Date: Mon Nov 23 2026 - 08:57:53 EST
This series adds a pure-WMI Linux platform driver for the Intel EWMI
(\_SB.EWMI) interface found on Emdoor-based Intel laptops, verified on
the MECHREVO Wujie 14 2026 (WUJIE Series-Lark4-LNL, Intel Core Ultra 5
226V Lunar Lake, BIOS EM_LNL326_V1.0.19).
In response to review feedback on RFC v1 regarding direct EC register
access, v2 removes every ec_read() call and every board/BIOS-specific EC
offset so the driver operates strictly through standard ACPI WMI methods
(WMCD and _WED(0xD0)) using wmi_driver / wmidev_invoke_method(), gated
by WMI GUID and WMCD GVER protocol version 1.0.1.0:
- Dual fan tachometers (fan1_input, fan2_input) via hwmon (WMCD GFNS)
- Platform profile (balanced / performance) via WMCD GPFM / SPFM,
synced with Fn+X hardware profile-switch events
- Read-only touchpad_enabled sysfs attribute via WMCD GTPS (0x03/0x07)
- Sparse keymap input reporting for _WED(0xD0) hotkey events
Notes on firmware quirks and dropped RFC v1 features:
- Legacy WMAA-WMCB methods on this DSDT allocate an 8-byte Local0 inside
AML and define CreateField(Local0, 0x20, 0x3F, RES3), aborting with
AE_AML_BUFFER_LIMIT regardless of input buffer size; they are unused.
- EC temperature sensors (TSR1..TSR4) are dropped because TSR2..TSR4 are
already exposed via int3403_thermal (SEN2..SEN4 under \_SB.IETM) and
CPU temperature is already covered by coretemp / x86_pkg_temp / TCPU.
- fn_lock / win_lock (EC5D 20 ms mailbox race) and auto_power_on (WMCC
write-only with EC 0xF5 readback) are dropped so v2 has zero direct EC
access and zero per-BIOS DMI tables.
- SPFM (0x03/0x0a) arms ZZTT/TIZZ before Notify(IETM, 0x88) and before
writing EC5F, so an EC scan during the notify can consume a stale EC5F
and return RTNC=0 without updating PPMD (or return RTNC=1). The driver
verifies WMCD 0x03/0x09 readback and reissues the absolute mode up to
3 times using pure WMI calls.
- Sanitized ACPI tables (DSDT + SSDT1..SSDT28, Windows licensing table
omitted) and decoded ewmi.mof are available at:
https://gist.github.com/winddd666/8f739d1cab5beb503f606093ade10d65
Signed-off-by: Ziqiang Xia <xiazq123666@xxxxxxxxx>
---
Changes in v2:
- Drop RFC prefix.
- Remove all direct ec_read() calls, ACPI_EC dependency, and per-BIOS
DMI/EC offset tables (drop temp_regs, fn_lock, win_lock, and
auto_power_on / WMCC driver).
- Keep the driver strictly pure WMI (WMCD + _WED(0xD0)) using WMI GUID
matching and WMCD GVER (1.0.1.0) protocol version validation.
- Update ABI documentation, Kconfig, and commit descriptions accordingly.
- Link to v1: https://patch.msgid.link/20261113-emdoor-intel-wmi-rfc-v1-0-d77ecf23693b@xxxxxxxxx
To: Armin Wolf <W_Armin@xxxxxx>
To: Ziqiang Xia <xiazq123666@xxxxxxxxx>
To: Hans de Goede <hansg@xxxxxxxxxx>
To: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
To: Guenter Roeck <linux@xxxxxxxxxxxx>
Cc: platform-driver-x86@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: linux-hwmon@xxxxxxxxxxxxxxx
---
Ziqiang Xia (2):
Documentation: ABI: testing: Add emdoor-intel-wmi sysfs ABI
platform/x86: Add Emdoor Intel EWMI platform driver
.../ABI/testing/sysfs-bus-wmi-devices-emdoor-ewmi | 7 +
MAINTAINERS | 7 +
drivers/platform/x86/Kconfig | 16 +
drivers/platform/x86/Makefile | 1 +
drivers/platform/x86/emdoor-intel-wmi.c | 494 +++++++++++++++++++++
5 files changed, 525 insertions(+)
---
base-commit: 5680519168f65666d2c03cc6ed8fe2b7052aee12
change-id: 20261113-emdoor-intel-wmi-rfc-2173530b3df6
Best regards,
--
Ziqiang Xia <xiazq123666@xxxxxxxxx>