# Renesas R-Car Thermal

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

> Device-tree binding reference for Renesas R-Car Thermal.

<!-- SPDX-License-Identifier: GPL-2.0-only -->


<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;rcar&#45;thermal&#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;Niklas Söderlund &#60;niklas&#46;soderlund&#64;ragnatech&#46;se&#62;&#34;</code></span>

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

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

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;renesas&#44;thermal&#45;r8a73a4&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;renesas&#44;thermal&#45;r8a7779&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;renesas&#44;rcar&#45;thermal&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;renesas&#44;thermal&#45;r8a7742&#34;</code></span>, <span id="dt-93451931f534c9a92fb4"><code>&#34;renesas&#44;thermal&#45;r8a7743&#34;</code></span>, <span id="dt-bdca084879537277097b"><code>&#34;renesas&#44;thermal&#45;r8a7744&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;renesas&#44;rcar&#45;gen2&#45;thermal&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> <a id="dt-e626d61e9d5d76cc48f9"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-6b46935eab08de6d1f0a"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-9d5b9f6fd2f9759f6e43"></a> <span id="dt-73fb2f4b762df7b35870"><code>&#34;renesas&#44;thermal&#45;r8a7790&#34;</code></span>, <span id="dt-4f2dd487e4b2e6e79827"><code>&#34;renesas&#44;thermal&#45;r8a7791&#34;</code></span>, <span id="dt-dba59cbb664a09df0380"><code>&#34;renesas&#44;thermal&#45;r8a7792&#34;</code></span>, <span id="dt-7337bb6973adc8f5010d"><code>&#34;renesas&#44;thermal&#45;r8a7793&#34;</code></span>
>
> <a id="dt-5ea82ea034747ba6da29"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-e9c55cb91230c7ee5a28"><code>&#34;renesas&#44;rcar&#45;gen2&#45;thermal&#34;</code></span>
>
> <a id="dt-3acd265d2314f4be0bd4"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-d09fdb468825e586f676"><code>&#34;renesas&#44;rcar&#45;thermal&#34;</code></span>

<a id="dt-61219c29f99de6d21702"></a>

**Rule 4**

> <a id="dt-a1b1c435b08c85ff96c7"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-4758c8f9c99bfa28b10c"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-12b3e48e4010cb944698"></a> <span id="dt-e46f645e6715baa60581"><code>&#34;renesas&#44;thermal&#45;r8a774c0&#34;</code></span>, <span id="dt-f0654d9dc65c16ce7d6a"><code>&#34;renesas&#44;thermal&#45;r8a77970&#34;</code></span>, <span id="dt-80bf5233c0e34928f5ac"><code>&#34;renesas&#44;thermal&#45;r8a77990&#34;</code></span>, <span id="dt-3e86066ba2e9703b9565"><code>&#34;renesas&#44;thermal&#45;r8a77995&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">Address ranges of the thermal registers. If more then one range is given the first one must be the common registers followed by each sensor according to the datasheet.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-4b3e7791b11b96c3db87"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>4</code></span>

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

### <code>interrupts</code> — not listed as required here

**Minimum number of items (<code>minItems</code>):** <span id="dt-1691b9edf145244244a0"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b7823fb65b2f27642d26"><code>3</code></span>

<a id="dt-4e9a371963ac013ad39d"></a>

### <code>clocks</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c7438d9082840936a9a7"><code>1</code></span>

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-74e4e6f1d3f2a860fdb9"><code>1</code></span>

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

### <code>resets</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-86a6993fcd90367ac91d"><code>1</code></span>

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

### <code>&#35;thermal&#45;sensor&#45;cells</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-864271cb6a9393891ea2"><code>0</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-17723ad0bbc7f42a3e70"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > <a id="dt-3defb1f4dc0d6847a043"></a>
> > >
> > > **Properties and child nodes (<code>properties</code>)**
> > >
> > > <a id="dt-0e5d4207b2374940f9d3"></a>
> > >
> > > **<code>compatible</code> — not listed as required here**
> > >
> > > <a id="dt-6e1ee4ed1b112666419d"></a>
> > >
> > > **Rule for matching array elements (<code>contains</code>)**
> > >
> > > > **Allowed values (<code>enum</code>):** <a id="dt-66d2e4111e4fd49859fb"></a> <span id="dt-5f804f07539691f45609"><code>&#34;renesas&#44;thermal&#45;r8a73a4&#34;</code></span>, <span id="dt-c8b958ab48e92db0fc79"><code>&#34;renesas&#44;thermal&#45;r8a7779&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-b0b2f2243ff9a854f151"></a> <span id="dt-4e9ead0e861b67997dec"><code>&#34;resets&#34;</code></span>, <span id="dt-5652a54c9ddda3dcd6bf"><code>&#34;&#35;thermal&#45;sensor&#45;cells&#34;</code></span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-1f5272cb1d084137975e"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > <a id="dt-eebbb9d41b21f12566d7"></a>
> > >
> > > **Properties and child nodes (<code>properties</code>)**
> > >
> > > <a id="dt-6aeb4c84797e4c678f3d"></a>
> > >
> > > **<code>compatible</code> — not listed as required here**
> > >
> > > <a id="dt-80145746a4351c4efa1b"></a>
> > >
> > > **Rule for matching array elements (<code>contains</code>)**
> > >
> > > > **Exact value (<code>const</code>):** <span id="dt-36a35d0b3eb4ef922a1c"><code>&#34;renesas&#44;thermal&#45;r8a7779&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-ee96a18d4bb2a9d39bd9"></a> <span id="dt-96ee7f71687cd234a9f8"><code>&#34;interrupts&#34;</code></span>, <span id="dt-5daae4bef35eb1615659"><code>&#34;clocks&#34;</code></span>, <span id="dt-dabdc46fe881a853c5d7"><code>&#34;power&#45;domains&#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">thermal@ffc48000 {
    compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal";
    reg = &lt;0xffc48000 0x38&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/clock/r8a73a4-clock.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;

thermal@e61f0000 {
    compatible = "renesas,thermal-r8a73a4", "renesas,rcar-thermal";
    reg = &lt;0xe61f0000 0x14&gt;, &lt;0xe61f0100 0x38&gt;,
          &lt;0xe61f0200 0x38&gt;, &lt;0xe61f0300 0x38&gt;;
    interrupts = &lt;GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH&gt;;
    clocks = &lt;&amp;mstp5_clks R8A73A4_CLK_THERMAL&gt;;
    power-domains = &lt;&amp;pd_c5&gt;;
};
</code></pre>

<pre id="dt-d0212a4cd671f89a0b40"><code class="language-dts">#include &lt;dt-bindings/clock/r8a7790-cpg-mssr.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/power/r8a7790-sysc.h&gt;

thermal: thermal@e61f0000 {
    compatible = "renesas,thermal-r8a7790",
                 "renesas,rcar-gen2-thermal",
                 "renesas,rcar-thermal";
    reg = &lt;0xe61f0000 0x10&gt;, &lt;0xe61f0100 0x38&gt;;
    interrupts = &lt;GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH&gt;;
    clocks = &lt;&amp;cpg CPG_MOD 522&gt;;
    power-domains = &lt;&amp;sysc R8A7790_PD_ALWAYS_ON&gt;;
    resets = &lt;&amp;cpg 522&gt;;
    #thermal-sensor-cells = &lt;0&gt;;
};

thermal-zones {
    cpu_thermal: cpu-thermal {
        polling-delay-passive = &lt;1000&gt;;
        polling-delay = &lt;5000&gt;;

        thermal-sensors = &lt;&amp;thermal&gt;;

        trips {
            cpu-crit {
                temperature = &lt;115000&gt;;
                hysteresis = &lt;0&gt;;
                type = "critical";
            };
        };
        cooling-maps {
        };
    };
};
</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</span></p>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright (C) 2020 Renesas Electronics Corp.</span></p>

<p id="dt-comment-2"><strong>Line 18:</strong> <span> R-Mobile APE6</span></p>

<p id="dt-comment-3"><strong>Line 19:</strong> <span> R-Car H1</span></p>

<p id="dt-comment-4"><strong>Line 20:</strong> <span> Generic without thermal-zone</span></p>

<p id="dt-comment-5"><strong>Line 23:</strong> <span> RZ/G1H</span></p>

<p id="dt-comment-6"><strong>Line 24:</strong> <span> RZ/G1M</span></p>

<p id="dt-comment-7"><strong>Line 25:</strong> <span> RZ/G1N</span></p>

<p id="dt-comment-8"><strong>Line 26:</strong> <span> Generic thermal-zone</span></p>

<p id="dt-comment-9"><strong>Line 29:</strong> <span> R-Car H2</span></p>

<p id="dt-comment-10"><strong>Line 30:</strong> <span> R-Car M2-W</span></p>

<p id="dt-comment-11"><strong>Line 31:</strong> <span> R-Car V2H</span></p>

<p id="dt-comment-12"><strong>Line 32:</strong> <span> R-Car M2-N</span></p>

<p id="dt-comment-13"><strong>Line 33:</strong> <span> Generic thermal-zone</span></p>

<p id="dt-comment-14"><strong>Line 34:</strong> <span> Generic without thermal-zone</span></p>

<p id="dt-comment-15"><strong>Line 37:</strong> <span> RZ/G2E</span></p>

<p id="dt-comment-16"><strong>Line 38:</strong> <span> R-Car V3M</span></p>

<p id="dt-comment-17"><strong>Line 39:</strong> <span> R-Car E3</span></p>

<p id="dt-comment-18"><strong>Line 40:</strong> <span> R-Car D3</span></p>

<p id="dt-comment-19"><strong>Line 76:</strong> <span> R-Mobile APE6</span></p>

<p id="dt-comment-20"><strong>Line 77:</strong> <span> R-Car H1</span></p>

<p id="dt-comment-21"><strong>Line 88:</strong> <span> R-Car H1</span></p>

<p id="dt-comment-22"><strong>Line 98:</strong> <span> Example (non interrupt support)</span></p>

<p id="dt-comment-23"><strong>Line 105:</strong> <span> Example (interrupt support)</span></p>

<p id="dt-comment-24"><strong>Line 120:</strong> <span> Example (with thermal-zone)</span></p>

</details>
