# Nuvoton NCT7802Y Hardware Monitoring IC

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

> Device-tree binding reference for Nuvoton NCT7802Y Hardware Monitoring IC.

<!-- 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;nuvoton&#44;nct7802&#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;Guenter Roeck &#60;linux&#64;roeck&#45;us&#46;net&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The NCT7802Y is a hardware monitor IC which supports one on-die and up to
5 remote temperature sensors with SMBus interface.</p>
<pre><code>Datasheets:
  https://www.nuvoton.com/export/resource-files/Nuvoton_NCT7802Y_Datasheet_V12.pdf</code></pre>
</div>

<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-e1f655ed0ff4d595dadc"></a>

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;nuvoton&#44;nct7802&#34;</code></span>

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

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

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

<a id="dt-2efe70314a961a652abe"></a>

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

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

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

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

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

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

## Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-851beb48e74b776e2b4b"></a>

### <code>&#94;channel&#64;&#91;0&#45;3&#93;&#36;</code> — name matches this regular expression

**Value type (<code>type</code>):** <span id="dt-28ae12fb925f8b12222a"><code>&#34;object&#34;</code></span>

<a id="dt-c3f2dcc6cff4fd880215"></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-5c59eaa07153383ce9f8"></a>

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

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

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

<a id="dt-38b9123087dc6abd2a9a"></a>

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

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-f45ebc46323f831ff86a"></a> <span id="dt-156294af890d16511a2d"><code>0</code></span>, <span id="dt-ee21d69e5fd62197d0a9"><code>1</code></span>, <span id="dt-899aadace67436ac6049"><code>2</code></span>, <span id="dt-a62cbce653f0c5938ffb"><code>3</code></span>

<a id="dt-71dc90d386db051f61bf"></a>

**<code>sensor&#45;type</code> — not listed as required here**

<a id="dt-612e0b62556de0791d19"></a>

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

<a id="dt-45968e166803ab9f76c3"></a>

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-0c597b0f7411811acb2d"></a> <span id="dt-ceb7bd2369c86e45d323"><code>&#34;temperature&#34;</code></span>, <span id="dt-81dfe4cdd4c5430360e8"><code>&#34;voltage&#34;</code></span>

<a id="dt-879046d5f1ac2fb973e0"></a>

**<code>temperature&#45;mode</code> — not listed as required here**

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

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

<a id="dt-39458f13dfc434e00ca5"></a>

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-dcba9734dde5d99d390c"></a> <span id="dt-362407ed54fcbc21eb6c"><code>&#34;thermistor&#34;</code></span>, <span id="dt-e961383820fcf8b77323"><code>&#34;thermal&#45;diode&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-ed8c88f28db5f41ceea0"></a> <span id="dt-2369497c99afd9cc977c"><code>&#34;reg&#34;</code></span>

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

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

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

**Rule 1**

> <a id="dt-7f9b7b4cb5e74da21a3b"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-789ae9ab13c448986879"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-358d491a3f555c457a44"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > <a id="dt-8b08378a74e3d636b94a"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-00108e90a1e1d49bb326"></a>
> >
> > **Item 1**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-743d7ac79c32b19e0891"></a> <span id="dt-31590e557dc9fc9d6435"><code>1</code></span>, <span id="dt-d335a6a60ecab730f52e"><code>2</code></span>, <span id="dt-3f2303a85b65130e05bb"><code>3</code></span>
>
> <a id="dt-830a1a29f3b57445ccd0"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > **Required in this object (<code>required</code>):** <a id="dt-f33ddc08ab1ef7ed5efd"></a> <span id="dt-7245da79d3d3a50e40ae"><code>&#34;sensor&#45;type&#34;</code></span>
>
> <a id="dt-f91390c862b2b2191227"></a>
>
> **When the condition does not match (<code>else</code>)**
>
> > <a id="dt-6fccca296188aba4381a"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-ea3be9d87b8f5c3f8cb7"></a> <span id="dt-efbc347c47429960a651"><code>&#34;sensor&#45;type&#34;</code></span>

<a id="dt-7f06786b52e7f237e036"></a>

**Rule 2**

> <a id="dt-e4d616bad9f25fb00c23"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-d6065e142591a4b5a90a"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-04e48d4c5981d848fbb0"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > <a id="dt-4f2ca36e03ab080d3a9e"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-feefee9b338c0cb415d3"></a>
> >
> > **Item 1**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-5c449fa468caa33533af"></a> <span id="dt-7f45a8aa771c16021c12"><code>1</code></span>, <span id="dt-3967b7177a1b97eaa569"><code>2</code></span>
> >
> > <a id="dt-5ffa76ad402a268c6355"></a>
> >
> > **<code>sensor&#45;type</code> — not listed as required here**
> >
> > <a id="dt-7d17fa77cfb7acf9050c"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-3450b3feb95ab8123044"></a>
> >
> > **Item 1**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-d507a00f24b8fc123c86"></a> <span id="dt-47f2796f5fe63ea6fc2c"><code>&#34;temperature&#34;</code></span>
>
> <a id="dt-270c571f1fe38c3b8523"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > **Required in this object (<code>required</code>):** <a id="dt-fed3794baa1aa68d2aba"></a> <span id="dt-fa71a5a01756479be1c5"><code>&#34;temperature&#45;mode&#34;</code></span>
>
> <a id="dt-dd1888cee2d3f5e10482"></a>
>
> **When the condition does not match (<code>else</code>)**
>
> > <a id="dt-df66bdd785f3ddcdcbff"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-bad0ce3ca4052ef9bb66"></a> <span id="dt-ba85a3ac9bc8141f47d2"><code>&#34;temperature&#45;mode&#34;</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-1a130cabaa8a47b058bf"></a>

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    nct7802@28 {
        compatible = "nuvoton,nct7802";
        reg = &lt;0x28&gt;;

        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        channel@0 { /* LTD */
            reg = &lt;0&gt;;
        };

        channel@1 { /* RTD1 */
            reg = &lt;1&gt;;
            sensor-type = "voltage";
        };

        channel@2 { /* RTD2 */
            reg = &lt;2&gt;;
            sensor-type = "temperature";
            temperature-mode = "thermal-diode";
        };

        channel@3 { /* RTD3 */
            reg = &lt;3&gt;;
            sensor-type = "temperature";
        };
    };
};
</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 45:</strong> <span> Local Temperature Sensor ("LTD")</span></p>

<p id="dt-comment-2"><strong>Line 46:</strong> <span> Remote Temperature Sensor or Voltage Sensor 1 ("RTD1")</span></p>

<p id="dt-comment-3"><strong>Line 47:</strong> <span> Remote Temperature Sensor or Voltage Sensor 2 ("RTD2")</span></p>

<p id="dt-comment-4"><strong>Line 48:</strong> <span> Remote Temperature Sensor or Voltage Sensor 3 ("RTD3")</span></p>

<p id="dt-comment-5"><strong>Line 66:</strong> <span> For channels RTD1, RTD2 and RTD3, require sensor-type to be set.</span></p>

<p id="dt-comment-6"><strong>Line 67:</strong> <span> Otherwise (for all other channels), do not allow temperature-mode to be</span></p>

<p id="dt-comment-7"><strong>Line 68:</strong> <span> set.</span></p>

<p id="dt-comment-8"><strong>Line 85:</strong> <span> For channels RTD1 and RTD2 and if sensor-type is "temperature", require</span></p>

<p id="dt-comment-9"><strong>Line 86:</strong> <span> temperature-mode to be set. Otherwise (for all other channels or</span></p>

<p id="dt-comment-10"><strong>Line 87:</strong> <span> sensor-type settings), do not allow temperature-mode to be set</span></p>

</details>
