xref: /linux/Documentation/devicetree/bindings/embedded-controller/lenovo,thinkpad-t14s-ec.yaml (revision 69e4b75a5b90ef74300c283c0aafe8d41daf13a8)
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
7title: Lenovo Thinkpad T14s Embedded Controller
8
9maintainers:
10  - Sebastian Reichel <sre@kernel.org>
11
12description:
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
17properties:
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
29required:
30  - compatible
31  - reg
32  - interrupts
33
34additionalProperties: false
35
36examples:
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...
51