Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: embedded-controller: Add Lenovo Thinkpad T14s EC

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 <bryan.odonoghue@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20250918-thinkpad-t14s-ec-v5-1-ac0bc6382c5c@collabora.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Sebastian Reichel and committed by
Ilpo Järvinen
bee278e1 8236b466

+50
+50
Documentation/devicetree/bindings/embedded-controller/lenovo,thinkpad-t14s-ec.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/embedded-controller/lenovo,thinkpad-t14s-ec.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Lenovo Thinkpad T14s Embedded Controller 8 + 9 + maintainers: 10 + - Sebastian Reichel <sre@kernel.org> 11 + 12 + description: 13 + The Qualcomm Snapdragon-based Lenovo Thinkpad T14s has an Embedded Controller 14 + (EC) which handles things such as keyboard backlight, LEDs or non-standard 15 + keys. 16 + 17 + properties: 18 + compatible: 19 + const: lenovo,thinkpad-t14s-ec 20 + 21 + reg: 22 + const: 0x28 23 + 24 + interrupts: 25 + maxItems: 1 26 + 27 + wakeup-source: true 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - interrupts 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - |+ 38 + #include <dt-bindings/interrupt-controller/irq.h> 39 + i2c { 40 + #address-cells = <1>; 41 + #size-cells = <0>; 42 + 43 + embedded-controller@28 { 44 + compatible = "lenovo,thinkpad-t14s-ec"; 45 + reg = <0x28>; 46 + interrupts-extended = <&tlmm 66 IRQ_TYPE_LEVEL_LOW>; 47 + wakeup-source; 48 + }; 49 + }; 50 + ...