1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright 2020 Linaro Ltd.
5 $id: http://devicetree.org/schemas/thermal/thermal-idle.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Thermal idle cooling device
11 - Daniel Lezcano <daniel.lezcano@linaro.org>
14 The thermal idle cooling device allows the system to passively
15 mitigate the temperature on the device by injecting idle cycles,
16 forcing it to cool down.
18 This binding describes the thermal idle node.
24 A thermal-idle node describes the idle cooling device properties to
25 cool down efficiently the attached thermal zone.
30 Must be 2, in order to specify minimum and maximum cooling state used in
31 the cooling-maps reference. The first cell is the minimum cooling state
32 and the second cell is the maximum cooling state requested.
36 The idle duration in microsecond the device should cool down.
40 The exit latency constraint in microsecond for the injected idle state
41 for the device. It is the latency constraint to apply when selecting an
42 idle state from among all the present ones.
47 additionalProperties: false
52 #include <dt-bindings/thermal/thermal.h>
59 // Example: Combining idle cooling device on big CPUs with cpufreq cooling device
68 compatible = "arm,cortex-a72";
70 enable-method = "psci";
71 capacity-dmips-mhz = <1024>;
72 dynamic-power-coefficient = <436>;
73 #cooling-cells = <2>; /* min followed by max */
74 cpu-idle-states = <&CPU_SLEEP>, <&CLUSTER_SLEEP>;
75 cpu_b0_therm: thermal-idle {
77 duration-us = <10000>;
78 exit-latency-us = <500>;
84 compatible = "arm,cortex-a72";
86 enable-method = "psci";
87 capacity-dmips-mhz = <1024>;
88 dynamic-power-coefficient = <436>;
89 #cooling-cells = <2>; /* min followed by max */
90 cpu-idle-states = <&CPU_SLEEP>, <&CLUSTER_SLEEP>;
91 cpu_b1_therm: thermal-idle {
93 duration-us = <10000>;
94 exit-latency-us = <500>;
106 polling-delay-passive = <100>;
107 polling-delay = <1000>;
112 cpu_alert0: cpu_alert0 {
113 temperature = <65000>;
118 cpu_alert1: cpu_alert1 {
119 temperature = <70000>;
124 cpu_alert2: cpu_alert2 {
125 temperature = <75000>;
131 temperature = <95000>;
139 trip = <&cpu_alert1>;
140 cooling-device = <&cpu_b0_therm 0 15 >,
141 <&cpu_b1_therm 0 15>;
145 trip = <&cpu_alert2>;
146 cooling-device = <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
147 <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;