From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 8071559D633 for ; Tue, 8 Sep 2026 18:34:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788892464; cv=none; b=XekUxOmwf84ROgdRUnRuMuhS/rjdAotWKULJbpV8J4HgpX8GPNMBVcnEh4gM0757az5BSuVBipLHu4+Balto0fDGVnjTH3Nq/W1XwuIoNE5A4WOYakFT5NwEMOkF6/6Ob6fua2gM0weGrEJk9Yjyf6zZBDD37SQdvSINUXVE6dA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788892464; c=relaxed/simple; bh=yMIqHAyYFGtS2eBd0WBVHOU4tQ7yI35DjGOHB3lvWEk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=U/62KjMKcOoPR4qLi4f8qPDns341FxMdB2QD7tYBpTXm53LQeO7mRjzFUqmkY/ASfWUHW1U5sELEDhiTy2ocZiXpKvXdVkON/7NuuaV/Li//8KAVaXyUorN85ltD2goLDlIhk/3fqbjbH3wbhi3Z6iFi4+vEIGcZ6dfSbmIZDzA= 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=rNaNuL8f; arc=none smtp.client-ip=209.85.128.42 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="rNaNuL8f" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-49556f97a9dso41960195e9.1 for ; Tue, 08 Sep 2026 11:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788892457; x=1789497257; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=HRuj29Ji4lepfajyUf6OsbyzRBUwpagoj3OZk9BKOfQ=; b=rNaNuL8f6E6kKRL5HP186VbzBYBgRyTR4LhaxrREJLNkjfP7uRv2301sBpO+G1DGE3 sAR2MKhOc6ue4gOTa3o30oUtAn2C7F3AsPvTtAh9ykSBvBKKSRQcxc/iicL9d9p5xrTR qGT/BTofCLLISlGSMokNIIVsPb7+Bcar12tUqWNH55bBB/T+OU6uWufUX20eWMa6uo3X 1710F5zeE47H38y0FSkiltdmOuN9AjOS2glr+KQ6JVYgaCECqTlYIsoldTUF5wniO/ZT GagHlifgM6Wa5Y5ybqdo9bDA0y63/GwlW0jX5v/T74QEjugzTpgtVYO04JijomluahMp Lv4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788892457; x=1789497257; h=content-transfer-encoding:mime-version:references:in-reply-to :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=HRuj29Ji4lepfajyUf6OsbyzRBUwpagoj3OZk9BKOfQ=; b=HbVMO+hNIKtLSsbYXRfEJcVXVFH2s2dKZVeJkmpfgqULQ6AIiVfeveVFwgs1TykvNt OB5ER9iqzTHBZvrt2ASFrn5zqVLulCL//x7Tz2ZSnrf3LCOBqrOkK5Pyw0PiAJoFjmpg KtOsNBB2x/OyQLQcbSoteZOYWNcBfN28wvVx0WPs9SUi4ekw14dci1eDcY4plY/4sOVY fw+Q+P8u5pL9PDsIY5WCGj36L9+mkqPWXtbinTGlA7e5DBPLua0lSepbKTEmo5giOsLO 11q0oFEzSjWnKOltQgM4bdryeNEOA33vwhn6KJX/i8tlOWlUjESwMaQI6hN7xlgxYmP/ vBaw== X-Forwarded-Encrypted: i=1; AKwUvBy9fVlQqUotBgoz4GkQ2sa17TSCSrIi1eBVIjqpCyRPIhj3UrdxNGpxQuiiic3S4DGbfgAx2eZXWDWFltA=@vger.kernel.org X-Gm-Message-State: AFuF++mTP533F9fl84S0OCj/eIFCvXxMfD2BG3+Y5S7Z1WGnyQMGHmpA xIoGkYwnEiQZh+CI4qDet7nh+q2nETNsC5kV4/dJBnC/kItc99s3Ue9M X-Gm-Gg: AYBFou3UKOfQYDDFW03IYGKUdaouFIlHVlmxLwo9rc+AUJfBbaz3gzbtwIjv4fplCZY QaUPusw8Bq5rUgxjRhJLG9Yn/AO1k+kyKLpsQYs9oly6PQI4AR9ZCwY73BGdPVha6nroFJVoTb9 5KIIlpoKz8w6JKRcTJQPzuN6IW1Xl0kHQ7X5dW/8dOfGVtIgKg/vJU+7umGACt+XOq0hUnH9u7o sUa+CMpIUsm+s6WFIzeqjj9+Ul7guc2MpXnFV47z4v5KiGrp88CkfkhOgWEqG0bHO90xb/mVlmR oERDGuvwDtUU2AWzzZQUnpK1hVFWDCcj82BbfIlw8Nj8DCAXBxHggYQHpjP60O6JhjZlLzk0uH+ YYO8KI1/JqmUEDe3aLaQXmWWyKtCTPLz749wtqQBlSCEJK4F75YrUzIVSfkcifzPejx7kJ5odCd ot1p1xi1XawAwr2G4ePAUrCc9loGsTQ/EwPvmCxF32xSOBLvMdXeNm3ZY+4QndcFSzA+AoWYQ0j zfGSlCmbwJNcGvHKQmoLoswWQGkC9cn X-Received: by 2002:a05:600c:474c:b0:49c:f4e1:4c2d with SMTP id 5b1f17b1804b1-49cf828cd70mr287272355e9.16.1788892456722; Tue, 08 Sep 2026 11:34:16 -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 5b1f17b1804b1-49d04fe7f9dsm312095435e9.0.2026.09.08.11.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2026 11:34:16 -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, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Conor Dooley Subject: [PATCH v2 1/2] dt-bindings: embedded-controller: add Lenovo Yoga Slim 7x Gen 11 EC Date: Tue, 8 Sep 2026 20:34:02 +0200 Message-ID: <20260908183403.2107-2-okerixx@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260908183403.2107-1-okerixx@gmail.com> References: <20260908183403.2107-1-okerixx@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Document the Compal embedded controller found on the Lenovo Yoga Slim 7x Gen 11, a Qualcomm Snapdragon X2 Elite (glymur) laptop. It sits on I2C at address 0x70 and is distinct from the Qualcomm reference EC that the reference designs place at 0x76. Signed-off-by: Oleg Keri Acked-by: Conor Dooley --- .../lenovo,yoga-slim7x-gen11-ec.yaml | 56 +++++++++++++++++++ MAINTAINERS | 8 +++ 2 files changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/embedded-controller/lenovo,yoga-slim7x-gen11-ec.yaml diff --git a/Documentation/devicetree/bindings/embedded-controller/lenovo,yoga-slim7x-gen11-ec.yaml b/Documentation/devicetree/bindings/embedded-controller/lenovo,yoga-slim7x-gen11-ec.yaml new file mode 100644 index 000000000000..37337de86b0b --- /dev/null +++ b/Documentation/devicetree/bindings/embedded-controller/lenovo,yoga-slim7x-gen11-ec.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/embedded-controller/lenovo,yoga-slim7x-gen11-ec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Lenovo Yoga Slim 7x Gen 11 Embedded Controller + +maintainers: + - Oleg Keri + +description: + The Lenovo Yoga Slim 7x Gen 11, a Qualcomm Snapdragon X2 Elite (glymur) + laptop, has a Compal embedded controller on I2C. It reports board + thermistors, battery cell voltages and CPU fan speed, and drives the + keyboard backlight. + + This controller is not the Qualcomm reference EC that the Snapdragon + reference designs place at address 0x76; it speaks a different command + set and answers at 0x70. + +properties: + compatible: + const: lenovo,yoga-slim7x-gen11-ec + + reg: + const: 0x70 + + interrupts: + maxItems: 1 + description: + The controller pulses this line while it has events queued. + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + embedded-controller@70 { + compatible = "lenovo,yoga-slim7x-gen11-ec"; + reg = <0x70>; + + interrupts-extended = <&tlmm 66 IRQ_TYPE_EDGE_FALLING>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 38612eca2987..e35679264e22 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14882,6 +14882,14 @@ S: Maintained F: Documentation/ABI/testing/sysfs-driver-lenovo-yb9-kbdock F: drivers/platform/x86/lenovo/yb9-kbdock.c +LENOVO YOGA SLIM 7X GEN 11 EMBEDDED CONTROLLER DRIVER +M: Oleg Keri +L: linux-arm-msm@vger.kernel.org +S: Maintained +F: Documentation/ABI/testing/sysfs-driver-lenovo-yoga-slim7x-gen11-ec +F: Documentation/devicetree/bindings/embedded-controller/lenovo,yoga-slim7x-gen11-ec.yaml +F: drivers/platform/arm64/lenovo-yoga-slim7x-gen11-ec.c + LETSKETCH HID TABLET DRIVER M: Hans de Goede L: linux-input@vger.kernel.org -- 2.55.0