aboutsummaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/thermal/qcom,qmi-tmd-device.yaml
blob: dfda5b611a93afc7716b3e18e2cf682ef454d205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

%YAML 1.2
---
$id: "http://devicetree.org/schemas/thermal/qcom,qmi-tmd-device.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"

title: Qualcomm QMI based thermal mitigation (TMD) cooling devices.

maintainers:
  - Bhupesh Sharma <bhupesh.sharma@linaro.org>

description:
  Qualcomm QMI based TMD cooling device(s) are used for various
  mitigations for remote subsystem(s) including remote processor
  mitigation, rail voltage restriction etc.

properties:
  $nodename:
    const: qmi-tmd-devices

  compatible:
    items:
      - const: qcom,qmi-tmd-devices

  modem0:
    $ref: /schemas/thermal/qcom,tmd-device.yaml#

  adsp:
    $ref: /schemas/thermal/qcom,tmd-device.yaml#

  cdsp:
    $ref: /schemas/thermal/qcom,tmd-device.yaml#

  slpi:
    $ref: /schemas/thermal/qcom,tmd-device.yaml#

required:
  - compatible

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/thermal/qcom,tmd.h>
    qmi-tmd-devices {
      compatible = "qcom,qmi-tmd-devices";

      modem0 {
        qcom,instance-id = <MODEM0_INSTANCE_ID>;

        modem0_pa: tmd-device0 {
          label = "pa";
          #cooling-cells = <2>;
        };

        modem0_proc: tmd-device1 {
          label = "modem";
          #cooling-cells = <2>;
        };

        modem0_current: tmd-device2 {
          label = "modem_current";
          #cooling-cells = <2>;
        };

        modem0_skin: tmd-device3 {
          label = "modem_skin";
          #cooling-cells = <2>;
        };

        modem0_vdd: tmd-device4 {
          label = "cpuv_restriction_cold";
          #cooling-cells = <2>;
        };
      };
    };
...