From: Ziqiang Xia Subject: [PATCH v2 0/2] platform/x86: Add Emdoor Intel EWMI platform driver Date: Mon, 23 Nov 2026 05:56:50 -0800 Message-Id: <20261123-emdoor-intel-wmi-rfc-v2-0-3f4a03095f2e@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/4WNQQ6CMBBFr0Jm7RjaRhpdeQ/DAtopjKGtaRE1h LsLeACXL3n//RkyJaYMl2KGRBNnjmEFeSjA9E3oCNmuDLKUlRBCIXkbY0IOIw348ozJGZRCq5M qW2VdBev0kcjxe8/e6h/nZ3snM26tzeg5jzF99t9JbN6fi0lgiVZrMk6q6qzaa+cbHo4meqiXZ fkClestIcoAAAA= X-Change-ID: 20261113-emdoor-intel-wmi-rfc-2173530b3df6 To: Armin Wolf , Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Guenter Roeck Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Ziqiang Xia X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795442211; l=3702; i=xiazq123666@gmail.com; s=20261113; h=from:subject:message-id; bh=Dtj6FFXmz6jNRcgW4ATc31osqTiaO6dYT0JZQJpSMtg=; b=i7wM0m/u5DzKyBAKO4hmfWsYGNakAU9rti0pSc9jjv18rAyze0seYpgX8THUNqrRzba3hGokE MJwdAXcGvg/BLGITGi7UAl8QCbI1wx4eF1wcO7yIPpyX4povREimYag X-Developer-Key: i=xiazq123666@gmail.com; a=ed25519; pk=mrJQOUoyemvqamFAwqXZF59Z8eZnI11ZI+BEtDNxq7Q= X-Endpoint-Received: by B4 Relay for xiazq123666@gmail.com/20261113 with auth_id=1513 List-Id: B4 Relay Submissions 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 --- 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@gmail.com To: Armin Wolf To: Ziqiang Xia To: Hans de Goede To: Ilpo Järvinen To: Guenter Roeck Cc: platform-driver-x86@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-hwmon@vger.kernel.org --- 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