From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) (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 95E0F4AA3E2 for ; Mon, 21 Sep 2026 14:50:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790002207; cv=none; b=buANOVySlFedZeqErmArAduv2u+XJ67D1Z/d1iBGS13yy/oYjAIPnKLvjqu0oq7Cqd2VMPeu+Foqo2EZND/ilx421n00dZhOVUVOyMFftsFKejVCBCzgLucX4sS730/9yoMFVdvtwskrWWYBUjGmRcPy4AOVJT9k/NHAKA3k9dQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790002207; c=relaxed/simple; bh=aid97Yjimc76nz+M6o0QWk1KtiDp95Qtk/akmNNnZ3Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=i7WO5/PYVX8LHdtM4oQS+dr9FwWCV5fKeeN9/fpsOkMFol2hrYUjK3EPgmzpYpza0CpI72uVRH2DxckO6Qnvg1+ojVxCB0o4iojXhBDLnVb09ODxemCbZW7EivvJvjGFC/5gFlIgELWEyU3pXCMGOPWi6jeo9IhENnwy886BuHA= 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=H8PBul1g; arc=none smtp.client-ip=74.125.225.141 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="H8PBul1g" Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49cd4ba9f68so43012545e9.1 for ; Mon, 21 Sep 2026 07:50:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790002204; x=1790607004; 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=Qdwj3z7uTqgFd/9Tfs5y2p+1zT+FzwY0f8o+/81CJMs=; b=H8PBul1gog+1gzpTDxIrNVKB5K54pqG6vF5ZOD7G7ooAU5DeSJEP0a4k46YMZ5t6e0 qroWpraGfT9X8CSnGRrxRpEXsZ6ITnA0ylYlaplVZG+zgsQ40tygeef7IiZXriPm34dY wfpAVnIcDy2TdqqDgVDpphaTbQH3ttQHrYegpsgusyyEygzR2/sTlJChWkvvmX8Yuc5p t/Tx4S69pKxk+4EhhMdE0camoxwmDAsfA5j9ppMaMIg9h4JRtIcr+DD3rLnJ67dvMk0W s07j0OZ1TFsfJ1emK2NCQBveJGnyQJq9H04+oVtGRiLeADAXqp+Z6f4NOtPj1XmqPRUp KPlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790002204; x=1790607004; 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=Qdwj3z7uTqgFd/9Tfs5y2p+1zT+FzwY0f8o+/81CJMs=; b=COI443vsPtc9bFaj8PYWZkBM6o1x1g+YbHhnrDtjOxrFMQV0XO/kjo018CMCQ0QjSL ZF7zw6+owtTx+H24NYQMF2Lg3z1abwlAILjfxUdC/Kg6K9dHapqX8ekV4BBvk+HR0n3s zAwljqzaI5oVOdf4kydkHwBAkQcTb41zFPGDbUd3BAXUZvrLagPCCfXElE/xC0GJipIa FsK/8zsOj5Sb6v82/IrmD8BTemT9aco+eS4gzVW7G6CHK3X+7qQTvhxjoLi3XqLdLn15 8ea1gX1NF4ebUvrIhzs+FDxZ7DwEZrJ4cuc5q+knCrHJnWD+iO99A76BN5aRWTRte7cz tX5g== X-Forwarded-Encrypted: i=1; AKwUvBwHHStsOqZvB84R38y0xdKA5++pBh87JtPZ9XKJc89AJUAR9CKovRvhNhrmS8cgPG7xl6y0p7+bNqEGeBo=@vger.kernel.org X-Gm-Message-State: AFuF++lDWNqhlsscqPvdDlBkVjOKzKUcemUhYZG4ci1DMm9vd2lDmaG+ bN6oxPl6pk6vXTHYFl6hwDzyl/ZvFIlRUR+zq0W84UcUQrjMNeVlJ2PR X-Gm-Gg: AYBFou1PPiHD+8Xnc19Wh8n6N4azd0W0lv4UtPorDYwl5l2fNwQrTGerYJTZog7/2pR CpwdoC5GzkLNnPZ/o+lPE3LdZQIg5DyyqxFdfMwpIL1pFCYWHYbEExxWVCnPva02OpdsDLhbe1W 4a+liYDEClwaizCQhx1WCcrhrcroqGsM64lE5qo9xSc1hJ4dtdFd/hOUZ+wqBtM6zZEBVnWUJ3k ZAqyLi+DNlcjo66OW871Ift3VrOejHIi5AfFlSfHZt1nbnWosSViEeHNSoO8sd7FrLz+I50IIkQ XPOy8nCnLDwoWooL4YWgO8e5/JYFtGj0H9JmAvDDjiICza2l8EqIuStYXXIR6FAf56XbngiESKa BXt5XEUo7BoL84XZY8L2kZdWn0LftWfLmOjSmz+SY2vbCmJhLBUI6W/f/sVkTIiE7qjrCMS7khy 9IKjNngiyMdEKxcOmNJd97s+sOiP1rapk/CNVE8OXcyaJ8XGdLPWa8khAv7SHHY4hKrPjaJnFIO 6T5mPAWOA== X-Received: by 2002:a05:600c:3ba0:b0:49e:73d3:78ab with SMTP id 5b1f17b1804b1-49fc55adc12mr192320725e9.0.1790002203622; Mon, 21 Sep 2026 07:50:03 -0700 (PDT) Received: from localhost.localdomain ([194.154.195.114]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-49fcd8bc15esm191595725e9.1.2026.09.21.07.50.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2026 07:50:03 -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 v3 1/3] dt-bindings: embedded-controller: add Lenovo Yoga Slim 7x Gen 11 EC Date: Mon, 21 Sep 2026 16:49:51 +0200 Message-ID: <20260921144953.15113-2-okerixx@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260921144953.15113-1-okerixx@gmail.com> References: <20260921144953.15113-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 be096be5fff6..11d459c17caf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14966,6 +14966,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