# NTC thermistor temperature sensors

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

> Device-tree binding reference for NTC thermistor temperature sensors.

<!-- SPDX-License-Identifier: (GPL-2.0 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;hwmon&#47;ntc&#45;thermistor&#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;Linus Walleij &#60;linusw&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Thermistors with negative temperature coefficient (NTC) are resistors that
vary in resistance in an often non-linear way in relation to temperature.
The negative temperature coefficient means that the resistance decreases
as the temperature rises. Since the relationship between resistance and
temperature is non-linear, software drivers most often need to use a look
up table and interpolation to get from resistance to temperature.</p>
<p style="white-space: pre-wrap">When used in practice, a thermistor is often connected between ground, a
pull-up resistor or/and a pull-down resistor and a fixed voltage like this:</p>
<pre><code>    + e.g. 5V = pull-up voltage (puv)
    |
   +-+
   | |
   | | Pull-up resistor
   | | (puo)
   +-+
    |-------------------------o
   +-+ |                      ^
   | |/                       |
   | /                        |
   |/| Thermistor             | Measured voltage (mv)
   / |                        | "connected ground"
  /| |                        |
   +-+                        |
    |-------------------------o
   +-+                        ^
   | |                        |
   | | Pull-down resistor     | Measured voltage (mv)
   | | (pdo)                  | "connected positive"
   +-+                        |
    |                         |
    |                         v
    + GND                     GND</code></pre>
<p style="white-space: pre-wrap">The arrangements of where we measure the voltage over the thermistor are
called "connected ground" and "connected positive" and shall be understood as
the cases when either pull-up or pull-down resistance is zero.</p>
<p style="white-space: pre-wrap">If the pull-up resistance is 0 one end of the thermistor is connected to the
positive voltage and we get the thermistor on top of a pull-down resistor
and we take the measure between the thermistor and the pull-down resistor.</p>
<p style="white-space: pre-wrap">Conversely if the pull-down resistance is zero, one end of the thermistor is
connected to ground and we get the thermistor under the pull-up resistor
and we take the measure between the pull-up resistor and the thermistor.</p>
<p style="white-space: pre-wrap">We can use both pull-up and pull-down resistors at the same time, and then
the figure illustrates where the voltage will be measured for the "connected
ground" and "connected positive" cases.</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

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;thermistor&#40;&#46;&#42;&#41;&#63;&#36;&#34;</code></span>

<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**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;epcos&#44;b57330v2103&#34;</code></span>

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

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;epcos&#44;b57891s0103&#34;</code></span>

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

**Rule 3**

> **Exact value (<code>const</code>):** <span id="dt-710bc579d54b8b6b1f6c"><code>&#34;murata&#44;ncp15wb473&#34;</code></span>

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

**Rule 4**

> **Exact value (<code>const</code>):** <span id="dt-bb8aa9a35453860e510c"><code>&#34;murata&#44;ncp18wb473&#34;</code></span>

<a id="dt-6932ba24e194ea67730d"></a>

**Rule 5**

> **Exact value (<code>const</code>):** <span id="dt-db09842262b0bfa9d4c5"><code>&#34;murata&#44;ncp21wb473&#34;</code></span>

<a id="dt-264a99ec2691e9f8d8d2"></a>

**Rule 6**

> **Exact value (<code>const</code>):** <span id="dt-c300a8811f2c7ccc81ad"><code>&#34;murata&#44;ncp03wb473&#34;</code></span>

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

**Rule 7**

> **Exact value (<code>const</code>):** <span id="dt-2ac514c95c227d8b07a6"><code>&#34;murata&#44;ncp15wl333&#34;</code></span>

<a id="dt-60b24f68de01e59cfd70"></a>

**Rule 8**

> **Exact value (<code>const</code>):** <span id="dt-27c8ffe3d76e28ae72d6"><code>&#34;murata&#44;ncp03wf104&#34;</code></span>

<a id="dt-840363fe85852843a5d5"></a>

**Rule 9**

> **Exact value (<code>const</code>):** <span id="dt-bec40614635fcd46f2cb"><code>&#34;murata&#44;ncp15xh103&#34;</code></span>

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

**Rule 10**

> **Exact value (<code>const</code>):** <span id="dt-02326b96b5c4be808cd1"><code>&#34;murata&#44;ncp18wm474&#34;</code></span>

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

**Rule 11**

> **Exact value (<code>const</code>):** <span id="dt-cdeb112c76527ce123e5"><code>&#34;samsung&#44;1404&#45;001221&#34;</code></span>

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

**Rule 12**

> **Exact value (<code>const</code>):** <span id="dt-5f423cde5ed63fbfa3e9"><code>&#34;ntc&#44;ncp15wb473&#34;</code></span>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-f464dfaa6c785c7ede8b"><code>true</code></span>

<a id="dt-6d942b3e5c7b6045d73a"></a>

**Rule 13**

> **Exact value (<code>const</code>):** <span id="dt-1b723bf9f23eccc2d5aa"><code>&#34;ntc&#44;ncp18wb473&#34;</code></span>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-e03e4bdd9c234c67a6c0"><code>true</code></span>

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

**Rule 14**

> **Exact value (<code>const</code>):** <span id="dt-d0e621f730afcecf26ad"><code>&#34;ntc&#44;ncp21wb473&#34;</code></span>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-ae494dd1b6668e16cbc6"><code>true</code></span>

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

**Rule 15**

> **Exact value (<code>const</code>):** <span id="dt-8b0f9e246efb6787210b"><code>&#34;ntc&#44;ncp03wb473&#34;</code></span>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-32557411cb9a6874725f"><code>true</code></span>

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

**Rule 16**

> **Exact value (<code>const</code>):** <span id="dt-2a0f8e57cae0c6086da7"><code>&#34;ntc&#44;ncp15wl333&#34;</code></span>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-5d84d13084c0ff5c4f88"><code>true</code></span>

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

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

<div id="dt-0ef0091c52eb523e7d0b">
<p style="white-space: pre-wrap">Thermal sensor cells if used for thermal sensoring.</p>
</div>

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

<a id="dt-68b1e6fe260ef0c31158"></a>

### <code>pullup&#45;uv</code> — required here

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

<div id="dt-24d598434224c5e4e327">
<p style="white-space: pre-wrap">Pull-up voltage in micro volts. Must always be specified.</p>
</div>

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

### <code>pullup&#45;ohm</code> — required here

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

<div id="dt-6e82ff618c4d427e8bfd">
<p style="white-space: pre-wrap">Pull-up resistance in ohms. Must always be specified, even if zero.</p>
</div>

<a id="dt-36708ad064db35b2f4fd"></a>

### <code>pulldown&#45;ohm</code> — required here

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

<div id="dt-0964cd05e1cdfb7fcabd">
<p style="white-space: pre-wrap">Pull-down resistance in ohms. Must always be specified, even if zero.</p>
</div>

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

### <code>connected&#45;positive</code> — not listed as required here

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

<div id="dt-56864dfdff6915aa78d3">
<p style="white-space: pre-wrap">Indicates how the thermistor is connected in series with a pull-up and/or a pull-down resistor. See the description above for an illustration. If this flag is NOT specified, the thermistor is assumed to be connected-ground, which usually means a pull-down resistance of zero but complex arrangements are possible.</p>
</div>

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

### <code>io&#45;channels</code> — required here

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

<div id="dt-00f0389e57ab952e1ac1">
<p style="white-space: pre-wrap">IIO ADC channel to read the voltage over the resistor. Must always be specified.</p>
</div>

**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;pullup&#45;uv&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;pullup&#45;ohm&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;pulldown&#45;ohm&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;io&#45;channels&#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">thermistor {
  compatible = "murata,ncp18wb473";
  io-channels = &lt;&amp;gpadc 0x06&gt;;
  pullup-uv = &lt;1800000&gt;;
  pullup-ohm = &lt;220000&gt;;
  pulldown-ohm = &lt;0&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 OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 80:</strong> <span> Deprecated "ntc," compatible strings</span></p>

<p id="dt-comment-2"><strong>Line 118:</strong> <span> See /schemas/iio/adc/adc.yaml</span></p>

</details>
