# ADT7475 hwmon sensor

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

> Device-tree binding reference for ADT7475 hwmon sensor.

<!-- 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;adt7475&#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;Jean Delvare &#60;jdelvare&#64;suse&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The ADT7473, ADT7475, ADT7476, and ADT7490 are thermal monitors and multiple
PWN fan controllers.</p>
<p style="white-space: pre-wrap">They support monitoring and controlling up to four fans (the ADT7490 can only
control up to three). They support reading a single on chip temperature
sensor and two off chip temperature sensors (the ADT7490 additionally
supports measuring up to three current external temperature sensors with
series resistance cancellation (SRC)).</p>
<p style="white-space: pre-wrap">Datasheets:
https://www.onsemi.com/pub/Collateral/ADT7473-D.PDF
https://www.onsemi.com/pub/Collateral/ADT7475-D.PDF
https://www.onsemi.com/pub/Collateral/ADT7476-D.PDF
https://www.onsemi.com/pub/Collateral/ADT7490-D.PDF</p>
<p style="white-space: pre-wrap">Description taken from onsemiconductors specification sheets, with minor
rephrasing.</p>
</div>

<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;adi&#44;adt7473&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;adi&#44;adt7475&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;adi&#44;adt7476&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;adi&#44;adt7490&#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-621291457ab5cef06ecd"></a>

### <code>adi&#44;pwm&#45;active&#45;state</code> — not listed as required here

<div id="dt-f26d4309d5cd5343f9aa">
<p style="white-space: pre-wrap">Integer array, represents the active state of the pwm outputs If set to 0
the pwm uses a logic low output for 100% duty cycle. If set to 1 the pwm
uses a logic high output for 100% duty cycle.</p>
</div>

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

**Deprecated (<code>deprecated</code>):** <span id="dt-62ec59e13ffe00c0acbe"><code>true</code></span>

**Minimum number of items (<code>minItems</code>):** <span id="dt-9b550b474d588853291f"><code>3</code></span>

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

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

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

> **Allowed values (<code>enum</code>):** <a id="dt-35dda8f0dd12133a4dea"></a> <span id="dt-c54ef5f7627861c641be"><code>0</code></span>, <span id="dt-3d5a37394ea677858cd6"><code>1</code></span>
>
> **Default value (<code>default</code>):** <span id="dt-b3c90d10d04160cb9072"><code>1</code></span>

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

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

<a id="dt-0a7d53a140187c284c07"></a>

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

<a id="dt-45a004f37c5d80fa0fff"></a>

**Rule 1**

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

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

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-ce40d7734da41552f799"><code>4</code></span>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-add2d1e3a868337445f6"><code>true</code></span>

<div id="dt-6a685dbe2fd3b9ff2761">
<pre><code>Number of cells in a PWM specifier.
- 0: The PWM channel
- 1: The PWM period in nanoseconds
     - 90909091 (11 Hz)
     - 71428571 (14 Hz)
     - 45454545 (22 Hz)
     - 34482759 (29 Hz)
     - 28571429 (35 Hz)
     - 22727273 (44 Hz)
     - 17241379 (58 Hz)
     - 11363636 (88 Hz)
     - 44444 (22 kHz)
- 2: PWM flags 0 or PWM_POLARITY_INVERTED
- 3: The default PWM duty cycle in nanoseconds, defaults to period.</code></pre>
</div>

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

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

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

### <code>&#94;adi&#44;bypass&#45;attenuator&#45;in&#91;0&#45;4&#93;&#36;</code> — name matches this regular expression

<div id="dt-bef815d6509a2e5b39a5">
<p style="white-space: pre-wrap">Configures bypassing the individual voltage input attenuator. If
set to 1 the attenuator is bypassed if set to 0 the attenuator is
not bypassed. If the property is absent then the attenuator
retains its configuration from the bios/bootloader.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-c0a50a07aaf2af08aa59"></a> <span id="dt-e4408487d9655f28f3ab"><code>0</code></span>, <span id="dt-73a989049b0827ff4947"><code>1</code></span>

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

### <code>&#94;adi&#44;pin&#40;5&#124;10&#41;&#45;function&#36;</code> — name matches this regular expression

<div id="dt-6ad5e64726c116fe12f4">
<p style="white-space: pre-wrap">Configures the function for pin 5 on the adi,adt7473 and adi,adt7475. Or
pin 10 on the adi,adt7476 and adi,adt7490.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-6dc9955a45c6ec37a94e"></a> <span id="dt-3bd95de31ec0ff6ca443"><code>&#34;pwm2&#34;</code></span>, <span id="dt-51bfc1d347c941efa68f"><code>&#34;smbalert&#35;&#34;</code></span>

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

### <code>&#94;adi&#44;pin&#40;9&#124;14&#41;&#45;function&#36;</code> — name matches this regular expression

<div id="dt-14fa6f3faf379941a441">
<p style="white-space: pre-wrap">Configures the function for pin 9 on the adi,adt7473 and adi,adt7475. Or
pin 14 on the adi,adt7476 and adi,adt7490</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-c6c8549b06c5713e716c"></a> <span id="dt-c429961460ba82909094"><code>&#34;tach4&#34;</code></span>, <span id="dt-fa4a036c61db2556dc87"><code>&#34;therm&#35;&#34;</code></span>, <span id="dt-c468fedb47b4b5507d66"><code>&#34;smbalert&#35;&#34;</code></span>, <span id="dt-0e0a830b96fd62abcf5d"><code>&#34;gpio&#34;</code></span>

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

### <code>&#94;fan&#45;&#91;0&#45;9&#93;&#43;&#36;</code> — name matches this regular expression

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-80edfe5e0d2a8f659bfe">[<code>fan&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-hwmon/fan-common.md#dt-root>)</span>

<a id="dt-0cf7e5f9bec04af2ab62"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

**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-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/pwm/pwm.h&gt;
i2c {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  pwm: hwmon@2e {
    compatible = "adi,adt7476";
    reg = &lt;0x2e&gt;;
    adi,bypass-attenuator-in0 = &lt;1&gt;;
    adi,bypass-attenuator-in1 = &lt;0&gt;;
    adi,pin10-function = "smbalert#";
    adi,pin14-function = "tach4";
    #pwm-cells = &lt;3&gt;;

    /* PWMs at 22.5 kHz frequency */
    fan-0 {
      pwms = &lt;&amp;pwm 0 44444 0&gt;;
    };

    fan-1 {
      pwms = &lt;&amp;pwm 2 44444 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>

</details>
