xref: /linux/Documentation/devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml (revision ec5a7c2dceb09caf36262ecbd633eb7d4f9e4d3d)
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/qcom,hamoa-crd-ec.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Hamoa Embedded Controller
8
9maintainers:
10  - Sibi Sankar <sibi.sankar@oss.qualcomm.com>
11  - Anvesh Jain P <anvesh.p@oss.qualcomm.com>
12
13description:
14  Qualcomm Snapdragon based Hamoa/Purwa and Glymur reference devices have an
15  EC running on different MCU chips. The EC handles things like fan control,
16  temperature sensors, access to EC internal state changes.
17
18properties:
19  compatible:
20    oneOf:
21      - items:
22          - enum:
23              - qcom,glymur-crd-ec
24              - qcom,hamoa-iot-evk-ec
25          - const: qcom,hamoa-crd-ec
26      - enum:
27          - qcom,hamoa-crd-ec
28
29  reg:
30    const: 0x76
31
32  interrupts:
33    maxItems: 1
34
35required:
36  - compatible
37  - reg
38  - interrupts
39
40additionalProperties: false
41
42examples:
43  - |
44    #include <dt-bindings/interrupt-controller/irq.h>
45    i2c {
46        #address-cells = <1>;
47        #size-cells = <0>;
48
49        embedded-controller@76 {
50            compatible = "qcom,hamoa-crd-ec";
51            reg = <0x76>;
52
53            interrupts-extended = <&tlmm 66 IRQ_TYPE_LEVEL_HIGH>;
54        };
55    };
56...
57