From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 7888A518155 for ; Wed, 14 Oct 2026 13:23:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791984209; cv=none; b=Rvz2xoRwj+G4e0LYb2eZvPooFdHo+zKrq8+b2jNGYVQyRm9ClZItEA9oEmgguSr209p9aSrLruvv78TUYcLdW7BbTd2TgW+XJN+sWVw3dHK/lOM+aClBIoEyuxO3nhbseC3nkjCwiIK9cru/7C8nC8WxV8mDwE6S/WYiSKh5wes= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791984209; c=relaxed/simple; bh=3t2mQVj8Yt6ntyBqwLQcfmTJXVcoYTmawKWtLoxFocw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Oe/qsiV1h2TZo2/Tl0/eD/OlYTlBdq42IIIKFt8H9h3HKzL8ClTg7N8JPx09ODbSkBUJLlMt2yWTJX5aCfPUsjYddcRGzU6BDcJvMaQRomnAze1+wAtyfOCbYvU1YqabUJj8GkUYwsK4jeamlBYmOAN2RGBvLcG4GiJQWN3aw2w= 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=S428NoCO; arc=none smtp.client-ip=209.85.221.51 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="S428NoCO" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-48b0ef9c76eso390346f8f.0 for ; Wed, 14 Oct 2026 06:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791984205; x=1792589005; 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=Y8jXtfpSQ24o+MiydEQ6AfaaIrOtsZbBxK+xcoMqoWE=; b=S428NoCOyb8SCVwbHYXEi3Cw+3asIZSqjvwi8KBsZDT/50oP9NLB8Kz6eP0EQhMdgx L/7bdMr0/xbMKxHq5sQs7+LNv2OsWaNn36nW54sxysefFJgLk71QTXwzn8yBLor9ermE ABKKQ2f6xY+PoPSlRzdZXKOXwMPkWjauBpmtRUgkXt+S9uQqQwJWpT8aEeEMHW3NbB// 1w3cbM9ScrVPjUtpDbHmBWkKN4HbHxfKdirJ8jr41GKexu+aqk0pSPsXJLRtFeCMBko/ KsNporA7JlzYUWQ4aRbJhVxF+tUaQTPEzJvxGVYmK+JhYL5/PTxz/iQ0ld59bMOONL7M v3nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791984205; x=1792589005; 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=Y8jXtfpSQ24o+MiydEQ6AfaaIrOtsZbBxK+xcoMqoWE=; b=a99cmRsQzlR/LfOaP3vGxP8/3jyyVpK8PfXN5T02e8zwGTZKCGCHrXmX0pVebDaqGq eINS+S4rSmyhcGkKYRECZQq1vooSOeS8LT/psmnFe6DIo4iVLE4iyuyrv1n0YY6bFTTM YMGn2xokno7dJCHc2gClt+t9ySVLUfEzTIgOfcfVps3wIAsAyShcPu0YGo2zJqbGHwP2 tdB9YgtnTTAwP/nQm+BnhdRbTZn6mbpl6/pZN+CVjRTEFUuCt7uCnsCSupVQYnfy+s0i CpW1gfmU+YixetMHs/NllH9ECrlqMoFVYeawuTWCy0U+cvcYcL1Zy68brHSuZ3Qym/7X jQ5g== X-Forwarded-Encrypted: i=1; AKwUvBx1jGEv5Re9N2xazKBkTdJLO31HlcaJj2+RTZcg5ZWWKcBMKbGSZbIvXGrmLYXdAfxWNeWB0uSA//83sw==@vger.kernel.org X-Gm-Message-State: AFq9FYIlc9D5DUqocbIS5cemi3ETdjSg+3MEmtgMQlXjeU+PK35C+0V6 XnaPPpVVWCZWxPwQCMIBSunFdfR5vBeat1Bz+555Vt8MOOnUpeLSc0aB X-Gm-Gg: AYBFou1QkWiIh9Z5fu2lcj+2364/m/QVxcbmR7lOP4HGcbpeWCC4oSM90B4UDf8fnXT M2VzffOfsDS2b4R7n5ZFEV4hEVAVbH28Z70m0wBzJP4v0lYQS/XP9a0J46Y3p/rvFqLh7gPi+k3 0NzsMUuuxcbjiZ9AirnfN8XLbTpOG/aRfTPN1d6Ky+z1PIDgWeDLOBWy+OsA32ewRovWBh5trFu 1vLg9Wx8d+Z/SlGfflM9YTFF6hCW0C/nd249lA/azQZKmxYdWKK5JZROBi5s3fDchV1CSuS5JRb D0RmhsdcT6d/db72eaUT5TDH2wdgM5TJyE5enUBkb3T7ojDcctrWjSgYKbre/smi+uXWMhDkmvH GfDgTq+x46K8a70Oauf6dlQOOEmN4m2qBCYfZf4s4Ke6VeFsdEbBdGhEFZbZpXrWWlpOJ/LdHzI B+LqusjqwkISHu398SCPXz84Hlszm0mur7aDBfH6uNFbY/SuR+rVbxQAUR305AptYBBOV6Gw5OY Um6TDbTZ69tXw== X-Received: by 2002:a05:600c:699b:b0:4a0:4a8:d444 with SMTP id 5b1f17b1804b1-4a18e4af334mr336344225e9.33.1791984204396; Wed, 14 Oct 2026 06:23:24 -0700 (PDT) Received: from localhost.localdomain ([194.154.195.114]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4a1bcf69402sm782515e9.14.2026.10.14.06.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 06:23:24 -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 , Bjorn Andersson , Konrad Dybcio , Abel Vesa 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, Conor Dooley Subject: [PATCH v6 1/3] dt-bindings: embedded-controller: add Lenovo Yoga Slim 7x Gen 11 EC Date: Wed, 14 Oct 2026 15:23:13 +0200 Message-ID: <20261014132315.4659-2-okerixx@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261014132315.4659-1-okerixx@gmail.com> References: <20261014132315.4659-1-okerixx@gmail.com> Precedence: bulk X-Mailing-List: linux-hwmon@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 1da3623e77ce..91d562a7531e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15135,6 +15135,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