# NXP i.MX Thermal

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

> Device-tree binding reference for NXP i.MX Thermal.

<!-- 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;imx&#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;Shawn Guo &#60;shawnguo&#64;kernel&#46;org&#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**

> **Allowed values (<code>enum</code>):** <a id="dt-617e1a2040e2496013d4"></a> <span id="dt-c31075c43df89b2793e3"><code>&#34;fsl&#44;imx6q&#45;tempmon&#34;</code></span>, <span id="dt-44b402f75e7bf3caf313"><code>&#34;fsl&#44;imx6sx&#45;tempmon&#34;</code></span>, <span id="dt-f03e1478792ca587ff5c"><code>&#34;fsl&#44;imx7d&#45;tempmon&#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;fsl&#44;imx6sll&#45;tempmon&#34;</code></span>, <span id="dt-93451931f534c9a92fb4"><code>&#34;fsl&#44;imx6ul&#45;tempmon&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;fsl&#44;imx6sx&#45;tempmon&#34;</code></span>

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">The interrupt output of the controller, i.MX6Q has IRQ_HIGH which
will be triggered when temperature is higher than high threshold,
i.MX6SX and i.MX7S/D have two more IRQs than i.MX6Q, one is IRQ_LOW
and the other is IRQ_PANIC, when temperature is lower than low
threshold, IRQ_LOW will be triggered, when temperature is higher
than panic threshold, IRQ_PANIC will be triggered, and system can
be configured to auto reboot by SRC module for IRQ_PANIC. IRQ_HIGH,
IRQ_LOW and IRQ_PANIC share same interrupt output of controller.</p>
</div>

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

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

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

<a id="dt-6623d2ec738c83ce2eb0"></a>

#### Array item rules (<code>items</code>)

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

**Item 1**

> <div id="dt-963a59e96105c17766a3">
> <p style="white-space: pre-wrap">Phandle to the calibration data provided by ocotp</p>
> </div>

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

**Item 2**

> <div id="dt-5c95e00094cd656d9937">
> <p style="white-space: pre-wrap">Phandle to the temperature grade provided by ocotp</p>
> </div>

<a id="dt-28ee7fd676493bbd8d08"></a>

### <code>nvmem&#45;cell&#45;names</code> — required here

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

#### Array item rules (<code>items</code>)

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-30d2a590f6c0a447cfaa"><code>&#34;calib&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-441ea0caeb43e3f23d69"><code>&#34;temp&#95;grade&#34;</code></span>

<a id="dt-82d6c129c3170c6f5c2f"></a>

### <code>fsl&#44;tempmon</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-3e0685eb03b02491175a">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;phandle</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-2533fa46618221e83225>)</span>

<div id="dt-436876a9b83c252f06fb">
<p style="white-space: pre-wrap">Phandle to anatop system controller node.</p>
</div>

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

### <code>fsl&#44;tempmon&#45;data</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c013d11704e0e4debb4d">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;phandle</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-2533fa46618221e83225>)</span>

<div id="dt-f7464038a81fab33d529">
<p style="white-space: pre-wrap">Deprecated property, phandle pointer to fuse controller that contains
TEMPMON calibration data, e.g. OCOTP on imx6q. The details about
calibration data can be found in SoC Reference Manual.</p>
</div>

**Deprecated (<code>deprecated</code>):** <span id="dt-61aae32e72eff95164b4"><code>true</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-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;interrupts&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;fsl&#44;tempmon&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;nvmem&#45;cells&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;nvmem&#45;cell&#45;names&#34;</code></span>

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

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

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>thermal&#45;sensor&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-thermal/thermal-sensor.md#dt-root>)</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/clock/imx6sx-clock.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;

efuse@21bc000 {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    compatible = "fsl,imx6sx-ocotp", "syscon";
    reg = &lt;0x021bc000 0x4000&gt;;
    clocks = &lt;&amp;clks IMX6SX_CLK_OCOTP&gt;;

    tempmon_calib: calib@38 {
        reg = &lt;0x38 4&gt;;
    };

    tempmon_temp_grade: temp-grade@20 {
        reg = &lt;0x20 4&gt;;
    };
};

anatop@20c8000 {
    compatible = "fsl,imx6q-anatop", "syscon", "simple-mfd";
    reg = &lt;0x020c8000 0x1000&gt;;
    interrupts = &lt;0 49 IRQ_TYPE_LEVEL_HIGH&gt;,
                 &lt;0 54 IRQ_TYPE_LEVEL_HIGH&gt;,
                 &lt;0 127 IRQ_TYPE_LEVEL_HIGH&gt;;

    tempmon {
        compatible = "fsl,imx6sx-tempmon";
        interrupts = &lt;GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH&gt;;
        fsl,tempmon = &lt;&amp;anatop&gt;;
        nvmem-cells = &lt;&amp;tempmon_calib&gt;, &lt;&amp;tempmon_temp_grade&gt;;
        nvmem-cell-names = "calib", "temp_grade";
        clocks = &lt;&amp;clks IMX6SX_CLK_PLL3_USB_OTG&gt;;
        #thermal-sensor-cells = &lt;0&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>

</details>
