From nobody Tue Sep 9 21:49:22 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EEAF22EB879; Mon, 8 Sep 2025 22:35:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757370960; cv=none; b=ij+wgIsZR42uJQ7LamP+GynU3hl3l7hdeGadFjJsRxwcZgDJNtmQ18g2AUOJJLIJroIwlkNj4K6FsKPMi2DxrgHLJzR6zsnGi79PJG2Y1AnTkrYqc9ppzMC6cAWdACA22euBiTGQ5yaSfB6ySGtqIBxJEWrof9CjsDTv3X+DjZg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757370960; c=relaxed/simple; bh=jvo7GR+au7e8XXiUD6Y887uMomLI0ITYe2QUQ37dR0o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lLEYVkzxW6znopvY1+pVc5MqMagEvFvZK3tKNc3Jls93/BoNxyBdK7lNxqBLsChyjEDmnUPWSs3cpOMlK3u+wakXwWdYEo+GUBey2SisjnEm2FtHsAuY+NMXLewzFhk/un77pjndj+2HQ1Wt/chsNlxNUW7xf7+hzHGf1J8ixZo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f9I350wd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="f9I350wd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73B20C4AF09; Mon, 8 Sep 2025 22:35:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757370959; bh=jvo7GR+au7e8XXiUD6Y887uMomLI0ITYe2QUQ37dR0o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=f9I350wd78Fr5gwaeyN/SzocdApzb/NdTcCfxJMlXAcdSW7o5FlftTp93MQQ2IXaz 3v5KL0/RhzUNrxsqOAoq6l02M4yjHWI71e9oFSRJ1c7+1eYpSJrhYwGrWs+TwJvvXU RrxSIM4jnlgCLB2qSakmGBS/yyjVjqcoU29BUWkbvmyT8BAk9VSr5naucX5aFFU632 3czDUafpnbKceqZ2Qb9mgetTjiyBEJE0waVK19AGd4t+YrgGz0sTmOElhqzQ84P2d2 yF+8aqzgGH+2uFQNKUnh+/pbvhWBDv8EcOoa9DzKPd0uCeOJ6AxKYILjcB/5sV5R31 L7GO1pOiHbE0w== Received: by venus (Postfix, from userid 1000) id 90F43180644; Tue, 09 Sep 2025 00:35:57 +0200 (CEST) From: Sebastian Reichel Date: Tue, 09 Sep 2025 00:35:50 +0200 Subject: [PATCH v4 1/3] dt-bindings: platform: Add Lenovo Thinkpad T14s EC Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250909-thinkpad-t14s-ec-v4-1-caf6159daaee@collabora.com> References: <20250909-thinkpad-t14s-ec-v4-0-caf6159daaee@collabora.com> In-Reply-To: <20250909-thinkpad-t14s-ec-v4-0-caf6159daaee@collabora.com> To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio , Mark Pearson Cc: "Derek J. Clark" , Henrique de Moraes Holschuh , Neil Armstrong , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-arm-msm@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2093; i=sebastian.reichel@collabora.com; h=from:subject:message-id; bh=jvo7GR+au7e8XXiUD6Y887uMomLI0ITYe2QUQ37dR0o=; b=owEBbQKS/ZANAwAKAdju1/PIO/qaAcsmYgBov1pMir9Op9qRrz8Bi1rKFPqNJBrjqtfkNJRuK howxO7fHPuJAjMEAAEKAB0WIQTvZg0HRj+Lcmp5VBPY7tfzyDv6mgUCaL9aTAAKCRDY7tfzyDv6 mrAKD/9nqPRb+FwFSfgTgnv/zlhAIuVQ6kBVtvsLKD5GcKLHFbV4hk6wT6WWzDhX5HJXTa8cDnw fyTnZeCIH/Y8ltCoVZTEwLz44fy2wqK176WgcU9eTRcwH/qbzja9G0TkvO5o6wP/paDlZBQCFq0 NnOtixbFzSVoxlV0X0rhnqew/OtXWJ/NRjvyoWLB4SwkpjA64u/Kete59mITxjsRZ0UDRunVMKk p3vOstsc4xA1IN5c3o0QvCjW/whbXVY6lyBmCcZTFbXpaBM5OEhishDEfdQPFV8Dkx8PjE5AzZl kfg/Wg7t7VH7dazs3eXoTHMKm73cb6bo8PfzviBt7A3HUwtATOKAda+YyuHECRmMAFKiTaSN8kc 1DT7Ebi1gVolYTH6hi7S/SCdTaMaZyMMrvDQnH9kfe5XSkV2UwhVz3oPt6wGAskp2fGyKleF2lk jDDp4OqkTcJLWLCEGAcFwNYV5jcPPfa+s10af3LPehWTopWab5jvc4btm+B7mjtFR+EuRDfEMwe gKyfaXHKNhwtwSp2ueBgzV7ZelCBRAoF6DzBKlb8KO2eM7X1bnwnChQS/wJGIFmBRmUBtLsSUP6 oLE4OQ4PlWcLDKltq25BXekF5kmUguD6jzyLtlKOQj2MAD11b/T4++bMMdJf2YlGtK7qLpmsfTk +NgnPvgq4Om3ZaQ== X-Developer-Key: i=sebastian.reichel@collabora.com; a=openpgp; fpr=EF660D07463F8B726A795413D8EED7F3C83BFA9A Add binding for the EC found in the Thinkpad T14s Gen6 Snapdragon, which is based on the Qualcomm X1 Elite. Some of the system LEDs and extra keys are only accessible via the EC. Reviewed-by: Bryan O'Donoghue Reviewed-by: Krzysztof Kozlowski Signed-off-by: Sebastian Reichel --- .../lenovo,thinkpad-t14s-ec.yaml | 50 ++++++++++++++++++= ++++ 1 file changed, 50 insertions(+) diff --git a/Documentation/devicetree/bindings/embedded-controller/lenovo,t= hinkpad-t14s-ec.yaml b/Documentation/devicetree/bindings/embedded-controlle= r/lenovo,thinkpad-t14s-ec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c87ccb5b30868c7a616ec08b869= 286d627dd7406 --- /dev/null +++ b/Documentation/devicetree/bindings/embedded-controller/lenovo,thinkpad= -t14s-ec.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/embedded-controller/lenovo,thinkpad-t14= s-ec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Lenovo Thinkpad T14s Embedded Controller + +maintainers: + - Sebastian Reichel + +description: + The Qualcomm Snapdragon-based Lenovo Thinkpad T14s has an Embedded Contr= oller + (EC) which handles things such as keyboard backlight, LEDs or non-standa= rd + keys. + +properties: + compatible: + const: lenovo,thinkpad-t14s-ec + + reg: + const: 0x28 + + interrupts: + maxItems: 1 + + wakeup-source: true + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - |+ + #include + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + embedded-controller@28 { + compatible =3D "lenovo,thinkpad-t14s-ec"; + reg =3D <0x28>; + interrupts-extended =3D <&tlmm 66 IRQ_TYPE_LEVEL_LOW>; + wakeup-source; + }; + }; +... --=20 2.51.0