From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25385360EF9 for ; Tue, 8 Sep 2026 09:18:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788859135; cv=none; b=nLlfpL0twws7l8KsNh5ZMdU1oc7XM5GUOAC493AMcH1u38ZHGFyuh1xqY77jUk2ZgUiPLZcZS3T/Ouc+6JClPomYEaXOnz8a5KU88A2I0P7GSmrJWVFT2GfInCvkXh9fclLYKLkLchRKaNhfaWGrVmt5rxhg2KnqgAsPc1MVhrs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788859135; c=relaxed/simple; bh=jxumOtO/ae67qr2veCqiYfiAIRJQOkMaRiPR9coBogA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fUPKZ/mQ/UklIY/7efnZb30hlPJxWHMVVId7YargDlccdZb20IcO/8MPMXFr8CFP0x2kXe1Moii9OnSOXs1Z0OwZTI8n3JeOn2GheLj8hwqVcI62H2SVBfBaFsLz9cA7BS4E0e/fx/0nWghB4wGnT2En2o8BaX489LBY7+uBbkU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=rdkg+r/5; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="rdkg+r/5" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-4843efcbdb2so2462371f8f.2 for ; Tue, 08 Sep 2026 02:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788859132; x=1789463932; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=fv7CjFwdw09GhLaGW+A8s1wFrpjeqIA/fnUBh+D6xLs=; b=rdkg+r/5one0mJ0hygCHflSaasAZ2l4tP5pj5hnUWGPDk0U56XRNIcacEBESlUigbO RyzLSDga3q+mv6AyCG2zApR5iffcInzB166S6KkuR1YpeYu8U/rvV5UkObR4cFodmvy4 Z7ruf8lYPQ+u15HoDOcCrWka6TqWPyEIm96NIhsA0B3gI1UTUu00PkPHNskUW4bDbj+D jPKkUBSeeb94my4G0EkD5x7w6mC1Iu1RJI1wxU1Ek3tybUNcGdV3s2RAIaRnt+bx71Rs 4gbknDNdMu/4YKYIkT2wWHiZNI3N/9kqpyzB+6tC8iaJdrUwoN+IIcG98EFg71tTNwSy RklQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788859132; x=1789463932; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=fv7CjFwdw09GhLaGW+A8s1wFrpjeqIA/fnUBh+D6xLs=; b=rwNCxaT2QMsdpdPIlJ1Kp8W2mA+MReoWShh6VY9EPMHVczRDDOOjRELsEFmHEuUZCM bUXhxHb001UqyAvRctY+xWC8Q2tVuBB9X7FcHvZFQGQNCI5i6d5E/TAe3r4sEa2iKYiB fTj7dAi5qrFtaPAp8AeE2Cvt0blpWlPl+RavihaEwd0y/PUi7r8orBp3lToD3ApRpoo5 r9HESvQmBIdU/NcZlbceRsRH17e5gBFXI1iTzt7REr1sVkpLMlVJS/Exbw6Tai82Jlf5 rxc4HJgmWpVvZvBFSUY8TcRa7mkyyGMPmW0OUJrmyaEUpZi/5ddjkf3LUZZJ1FDEKwkO 912Q== X-Forwarded-Encrypted: i=1; AKwUvBxco8wMYHBVf2eUY1eejSsh69odkwk/aoMovNlnB2ciFwSMxdJexli1YcDiu7RvUHFlwUNxSv5IIRVPw2M=@vger.kernel.org X-Gm-Message-State: AFuF++nwMNUa7A++ooH9b6l6sj4IdUbueItaAFjhZjQnXkcDMuuxerm3 AbIkAMIZo5GtULaaIppjiMHFlY5p1tjI0znY4UhIcVF1eFVeoTEVSlb6 X-Gm-Gg: AYBFou0jVhHPgBQD4KRhpdVr0vPKLdJKE85t0ykoTqyhD8ne/1jnaYtxCryYXxSqqjI RGfjmEoSZqu+5GFJUFAFu/e674L/C6hEu1zjAeYCpezlfaWruEflxZ87coVTDYj0qu6HVTeDJ7L 0C5kOuMj8XtB2Y+ORvWLzhtXOctBx3BlLdUa+208fSutpQbZp1U1SsdVZQt/MmCXhlsXNDlhRRS QkICtCQmIJsOMlqZXatrZNHIKXjaYnmYNScdpz7mFxCN7GAmOPM0Mqoe7yPquT7xere72hUZE/+ ObH2yQqrenUE0m20cS6sZc/u6VecScJaRzj7fc3QPohIgRI72xH7bL9ZSu97zMVskDb+9kMUkel zmDTa1oR4O/lrPHCKzwLsE9GyBXD7b+YgL32JFJaEM4W/aIGWAJlnOYwOtRhdUMEmXmHFwLxkCn VRIKFIcdf4tvhTfeHGbDtfgEQy0YmmyocGAKfJIhuygDPhRXEt713gfZpiFqD8cc1n07tPZjo/D g8PGdDkW+CP5SYmA4CEKT8cgtoC3PsWlQ== X-Received: by 2002:a5d:5f51:0:b0:485:8a47:5b9c with SMTP id ffacd0b85a97d-4858a475d7dmr24889964f8f.57.1788859132184; Tue, 08 Sep 2026 02:18:52 -0700 (PDT) Received: from localhost.localdomain (mob-31-26-103-238.net.vodafone.it. [31.26.103.238]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-48588135600sm30514063f8f.2.2026.09.08.02.18.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2026 02:18:51 -0700 (PDT) From: Oleg Keri To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , "Bryan O'Donoghue" , Guenter Roeck Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-hwmon@vger.kernel.org Subject: [PATCH 0/2] platform/arm64: Lenovo Yoga Slim 7x Gen 11 embedded controller Date: Tue, 8 Sep 2026 11:17:50 +0200 Message-ID: <20260908091752.5508-1-okerixx@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Lenovo Yoga Slim 7x Gen 11 is a Qualcomm Snapdragon X2 Elite (glymur) laptop. It carries a Compal EF06 embedded controller on I2C at address 0x70, which is the only source on this machine for the board thermistors, the battery cell voltages, the fan tachometer, the keyboard backlight, and the mic-mute and airplane-mode keys. Patch 1 documents the binding, patch 2 adds the driver. Why this is not qcom-hamoa-ec ----------------------------- The Snapdragon reference designs - glymur CRD, hamoa IoT EVK, Asus Zenbook A16 - place their embedded controller at 0x76, and drivers/platform/arm64/qcom-hamoa-ec.c drives those. This machine is different: only 0x70 ACKs, and 0x76 is not populated at all. That is also why the firmware reports every host fan capability as unsupported, since profiles, trip points, LUTs and tachometer queries are all addressed to 0x76. Binding qcom-hamoa-ec here does not work. It speaks a different command set (0x05/0x0e/0x42), appears to probe only because it never validates the firmware version it reads back, then reports zero fans and leaves the interrupt asserted at roughly 25 events/s indefinitely. The ACPI tables describe both controllers: one at 0x76 (OperationRegion DVUM, fields FC20-FC2A) inherited from the reference design, and the one this driver targets at 0x70 (OperationRegion ERAM, battery and charger fields). Only the latter responds on this board. Notes ----- Fan speed is reported but not controlled, deliberately - the EC enforces no thermal floor over a manual setpoint. Patch 2 has the measurement. The DT node for the controller is not part of this series; it lands with the board DTS, which is being upstreamed separately. Tested on a Lenovo Yoga Slim 7x Gen 11 (DMI 83QR, "Yoga Slim 7 14Q8Y11"). Oleg Keri (2): dt-bindings: embedded-controller: add Lenovo Yoga Slim 7x Gen 11 EC platform/arm64: add Lenovo Yoga Slim 7x Gen 11 EC driver .../sysfs-driver-lenovo-yoga-slim7x-gen11-ec | 21 + .../lenovo,yoga-slim7x-gen11-ec.yaml | 56 ++ MAINTAINERS | 8 + drivers/platform/arm64/Kconfig | 22 + drivers/platform/arm64/Makefile | 1 + .../arm64/lenovo-yoga-slim7x-gen11-ec.c | 639 ++++++++++++++++++ 6 files changed, 747 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-lenovo-yoga-slim7x-gen11-ec create mode 100644 Documentation/devicetree/bindings/embedded-controller/lenovo,yoga-slim7x-gen11-ec.yaml create mode 100644 drivers/platform/arm64/lenovo-yoga-slim7x-gen11-ec.c -- 2.55.0 base-commit: 5e036ce12de91c6fd674dad33b169c6150be2a7a