# Thermal idle cooling device

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Thermal bindings_

> Device-tree binding reference for Thermal idle cooling device.

<!-- SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;thermal&#47;thermal&#45;idle&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Daniel Lezcano &#60;daniel&#46;lezcano&#64;linaro&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The thermal idle cooling device allows the system to passively
mitigate the temperature on the device by injecting idle cycles,
forcing it to cool down.</p>
<p style="white-space: pre-wrap">This binding describes the thermal idle node.</p>
</div>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-8cca737a574136d30da2"><code>&#34;thermal&#45;idle&#34;</code></span>

<div id="dt-a548345486641e38cbb3">
<p style="white-space: pre-wrap">A thermal-idle node describes the idle cooling device properties to
cool down efficiently the attached thermal zone.</p>
</div>

<a id="dt-ecf7318289630cf2d20e"></a>

### <code>&#35;cooling&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-e98f0f4904b5004851bd"><code>2</code></span>

<div id="dt-12ba0e3f87c43781a56e">
<p style="white-space: pre-wrap">Must be 2, in order to specify minimum and maximum cooling state used in
the cooling-maps reference. The first cell is the minimum cooling state
and the second cell is the maximum cooling state requested.</p>
</div>

<a id="dt-3b14bbb8e50978645cd0"></a>

### <code>duration&#45;us</code> — not listed as required here

<div id="dt-b61825d02a3d78849fe3">
<p style="white-space: pre-wrap">The idle duration in microsecond the device should cool down.</p>
</div>

<a id="dt-f3ff36f4d42ac6a4f5c8"></a>

### <code>exit&#45;latency&#45;us</code> — not listed as required here

<div id="dt-9cbea8f5bd94febdae2d">
<p style="white-space: pre-wrap">The exit latency constraint in microsecond for the injected idle state
for the device. It is the latency constraint to apply when selecting an
idle state from among all the present ones.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;&#35;cooling&#45;cells&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">/{
    #include &lt;dt-bindings/thermal/thermal.h&gt;

    compatible = "foo";
    model = "foo";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    // Example: Combining idle cooling device on big CPUs with cpufreq cooling device
    cpus {
        #address-cells = &lt;2&gt;;
        #size-cells = &lt;0&gt;;

        /* ... */

        cpu_b0: cpu@100 {
            device_type = "cpu";
            compatible = "arm,cortex-a72";
            reg = &lt;0x0 0x100&gt;;
            enable-method = "psci";
            capacity-dmips-mhz = &lt;1024&gt;;
            dynamic-power-coefficient = &lt;436&gt;;
            #cooling-cells = &lt;2&gt;; /* min followed by max */
            cpu-idle-states = &lt;&amp;CPU_SLEEP&gt;, &lt;&amp;CLUSTER_SLEEP&gt;;
            cpu_b0_therm: thermal-idle {
                #cooling-cells = &lt;2&gt;;
                duration-us = &lt;10000&gt;;
                exit-latency-us = &lt;500&gt;;
            };
        };

        cpu_b1: cpu@101 {
            device_type = "cpu";
            compatible = "arm,cortex-a72";
            reg = &lt;0x0 0x101&gt;;
            enable-method = "psci";
            capacity-dmips-mhz = &lt;1024&gt;;
            dynamic-power-coefficient = &lt;436&gt;;
            #cooling-cells = &lt;2&gt;; /* min followed by max */
            cpu-idle-states = &lt;&amp;CPU_SLEEP&gt;, &lt;&amp;CLUSTER_SLEEP&gt;;
            cpu_b1_therm: thermal-idle {
                #cooling-cells = &lt;2&gt;;
                duration-us = &lt;10000&gt;;
                exit-latency-us = &lt;500&gt;;
            };
        };

        /* ... */

    };

    /* ... */

    thermal_zones {
        cpu_thermal: cpu {
            polling-delay-passive = &lt;100&gt;;
            polling-delay = &lt;1000&gt;;

            /* ... */

            trips {
                cpu_alert0: cpu_alert0 {
                    temperature = &lt;65000&gt;;
                    hysteresis = &lt;2000&gt;;
                    type = "passive";
                };

                cpu_alert1: cpu_alert1 {
                    temperature = &lt;70000&gt;;
                    hysteresis = &lt;2000&gt;;
                    type = "passive";
                };

                cpu_alert2: cpu_alert2 {
                    temperature = &lt;75000&gt;;
                    hysteresis = &lt;2000&gt;;
                    type = "passive";
                };

                cpu_crit: cpu_crit {
                    temperature = &lt;95000&gt;;
                    hysteresis = &lt;2000&gt;;
                    type = "critical";
                };
            };

            cooling-maps {
                map0 {
                    trip = &lt;&amp;cpu_alert1&gt;;
                    cooling-device = &lt;&amp;cpu_b0_therm 0 15 &gt;,
                                     &lt;&amp;cpu_b1_therm 0 15&gt;;
                };

                map1 {
                    trip = &lt;&amp;cpu_alert2&gt;;
                    cooling-device = &lt;&amp;cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT&gt;,
                                     &lt;&amp;cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT&gt;;
                };
            };
        };
    };
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright 2020 Linaro Ltd.</span></p>

</details>
