# Analog Devices LTC4282 I2C High Current Hot Swap Controller over I2C

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

> Device-tree binding reference for Analog Devices LTC4282 I2C High Current Hot Swap Controller over I2C.

<!-- 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;hwmon&#47;adi&#44;ltc4282&#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;Nuno Sa &#60;nuno&#46;sa&#64;analog&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Analog Devices LTC4282 I2C High Current Hot Swap Controller over I2C.</p>
<p style="white-space: pre-wrap">https://www.analog.com/media/en/technical-documentation/data-sheets/ltc4282.pdf</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;ltc4282&#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-236855bde9eebcc9d904"></a>

### <code>vdd&#45;supply</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

<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-7471877b51a93881192b"></a>

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

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

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

### <code>adi&#44;rsense&#45;nano&#45;ohms</code> — required here

<div id="dt-91d9595122b4d51ddca6">
<p style="white-space: pre-wrap">Value of the sense resistor.</p>
</div>

<a id="dt-8b7d5192fd9dcefa1cb9"></a>

### <code>adi&#44;vin&#45;mode&#45;microvolt</code> — not listed as required here

<div id="dt-465fac364d892c0324ce">
<p style="white-space: pre-wrap">Selects operating range for the Undervoltage, Overvoltage and Foldback pins. Also for the ADC. Should be set to the nominal input voltage.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-b3c021550601710cfe10"></a> <span id="dt-5bd884317fd0e47b3ddd"><code>3300000</code></span>, <span id="dt-ea2c393465c0820869a1"><code>5000000</code></span>, <span id="dt-33746ee7d84e86b84ee0"><code>12000000</code></span>, <span id="dt-5b3759af48be7fb604f1"><code>24000000</code></span>

**Default value (<code>default</code>):** <span id="dt-2c695d67f28c70648af5"><code>12000000</code></span>

<a id="dt-13dfa282939cbb764466"></a>

### <code>adi&#44;fet&#45;bad&#45;timeout&#45;ms</code> — not listed as required here

<div id="dt-ae83fdefd806b5010f8b">
<p style="white-space: pre-wrap">From the moment a FET bad conditions is present, this property selects the wait time/timeout for a FET-bad fault to be signaled. Setting this to 0, disables FET bad faults to be reported.</p>
</div>

**Default value (<code>default</code>):** <span id="dt-3c7a7b060cb95a17d8c5"><code>255</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-d33453870c6b1e60bb19"><code>255</code></span>

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

### <code>adi&#44;overvoltage&#45;dividers</code> — not listed as required here

<div id="dt-0fe82bf4f9b776b946e8">
<p style="white-space: pre-wrap">Select which dividers to use for VDD Overvoltage detection. Note that
when the internal dividers are used the threshold is referenced to VDD.
The percentages in the datasheet are misleading since the actual values
to look for are in the "Absolute Maximum Ratings" table in the
"Comparator Inputs" section. In there there's a line for each of the 5%,
10% and 15% settings with the actual min, typical and max tolerances.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ba7608b074282b611339">[<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-95583ab7c76941803318"></a> <span id="dt-a3d5afce7ec81d7f5bad"><code>&#34;external&#34;</code></span>, <span id="dt-e70a79c4d541ea6be262"><code>&#34;vdd&#95;5&#95;percent&#34;</code></span>, <span id="dt-32c241f3caa97610a4a1"><code>&#34;vdd&#95;10&#95;percent&#34;</code></span>, <span id="dt-776415edb6ca25c71076"><code>&#34;vdd&#95;15&#95;percent&#34;</code></span>

**Default value (<code>default</code>):** <span id="dt-de19199461cb903d24f6"><code>&#34;external&#34;</code></span>

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

### <code>adi&#44;undervoltage&#45;dividers</code> — not listed as required here

<div id="dt-48d8b324d3bde243c6c7">
<p style="white-space: pre-wrap">Select which dividers to use for VDD Overvoltage detection. Note that
when the internal dividers are used the threshold is referenced to VDD.
The percentages in the datasheet are misleading since the actual values
to look for are in the "Absolute Maximum Ratings" table in the
"Comparator Inputs" section. In there there's a line for each of the 5%,
10% and 15% settings with the actual min, typical and max tolerances.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d0ef8f231bd48885b996">[<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-072106706bef4fc045da"></a> <span id="dt-aaaf1128ae87e2142f58"><code>&#34;external&#34;</code></span>, <span id="dt-08b2f132019ebb0f55f2"><code>&#34;vdd&#95;5&#95;percent&#34;</code></span>, <span id="dt-99b529a78cf826aaff5b"><code>&#34;vdd&#95;10&#95;percent&#34;</code></span>, <span id="dt-3f5f3d2cf22ff67efdcc"><code>&#34;vdd&#95;15&#95;percent&#34;</code></span>

**Default value (<code>default</code>):** <span id="dt-a8011798e7cb2226e7b7"><code>&#34;external&#34;</code></span>

<a id="dt-288aad718a7e15dca7b0"></a>

### <code>adi&#44;current&#45;limit&#45;sense&#45;microvolt</code> — not listed as required here

<div id="dt-696c02e605e882d1f307">
<p style="white-space: pre-wrap">The current limit sense voltage of the chip is adjustable between 12.5mV and 34.4mV in 3.1mV steps. This effectively limits the current on the load.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-87d929a79a3af33a23dd"></a> <span id="dt-43ecbbe7329916e30d2f"><code>12500</code></span>, <span id="dt-a2bb38308b11324dde83"><code>15625</code></span>, <span id="dt-c06648bf2036891eda1b"><code>18750</code></span>, <span id="dt-fb0013d24894324bf1f5"><code>21875</code></span>, <span id="dt-5409721443a4abaf857d"><code>25000</code></span>, <span id="dt-59d3c0b53ed32a0e7a0d"><code>28125</code></span>, <span id="dt-1d25152d5e282ad83c60"><code>31250</code></span>, <span id="dt-3cd14ae97eca291a738e"><code>34375</code></span>

**Default value (<code>default</code>):** <span id="dt-2519386235bb477377ec"><code>25000</code></span>

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

### <code>adi&#44;overcurrent&#45;retry</code> — not listed as required here

<div id="dt-f0f10fd80fd4c35cfdcf">
<p style="white-space: pre-wrap">If set, enables the chip to auto-retry 256 timer cycles after an Overcurrent fault.</p>
</div>

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

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

### <code>adi&#44;overvoltage&#45;retry&#45;disable</code> — not listed as required here

<div id="dt-38c28fe787e974de79be">
<p style="white-space: pre-wrap">If set, disables the chip to auto-retry 50ms after an Overvoltage fault. It's enabled by default.</p>
</div>

**Value type (<code>type</code>):** <span id="dt-26f7c74048e0d865dd5b"><code>&#34;boolean&#34;</code></span>

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

### <code>adi&#44;undervoltage&#45;retry&#45;disable</code> — not listed as required here

<div id="dt-3d2f6045245837b6a1d8">
<p style="white-space: pre-wrap">If set, disables the chip to auto-retry 50ms after an Undervoltage fault. It's enabled by default.</p>
</div>

**Value type (<code>type</code>):** <span id="dt-92ce73c6a36953eb4f9b"><code>&#34;boolean&#34;</code></span>

<a id="dt-3432428f81fcf521c368"></a>

### <code>adi&#44;fault&#45;log&#45;enable</code> — not listed as required here

<div id="dt-6bf38246231e1df39756">
<p style="white-space: pre-wrap">If set, enables the FAULT_LOG and ADC_ALERT_LOG registers to be written to the EEPROM when a fault bit transitions high and hence, will be available after a power cycle (the chip loads the contents of the EE_FAULT_LOG register - the one in EEPROM - into FAULT_LOG at boot).</p>
</div>

**Value type (<code>type</code>):** <span id="dt-2ff756bfb07ab0fd6584"><code>&#34;boolean&#34;</code></span>

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

### <code>adi&#44;gpio1&#45;mode</code> — not listed as required here

<div id="dt-e705bbb593242788b6ea">
<p style="white-space: pre-wrap">Defines the function of the Pin. It can indicate that power is good (PULL the pin low when power is not good) or that power is bad (Go into high-z when power is not good).</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c044a0f7f61a04606e69">[<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-8316e8b7e54c909a727a"></a> <span id="dt-e0accad15f61b32864ce"><code>&#34;power&#95;bad&#34;</code></span>, <span id="dt-49cde889810b85fc4f8e"><code>&#34;power&#95;good&#34;</code></span>

**Default value (<code>default</code>):** <span id="dt-b48b76a28e4b3206723b"><code>&#34;power&#95;good&#34;</code></span>

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

### <code>adi&#44;gpio2&#45;mode</code> — not listed as required here

<div id="dt-6b0adb051cef341ddfe7">
<p style="white-space: pre-wrap">Defines the function of the Pin. It can be set as the input for the ADC or indicating that the MOSFET is in stress (dissipating power).</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-dccfee9788bc3afadcab">[<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-9071517ec0b155e8b656"></a> <span id="dt-afd19d321b19acd5abaa"><code>&#34;adc&#95;input&#34;</code></span>, <span id="dt-a07eef6df2505a0e8575"><code>&#34;stress&#95;fet&#34;</code></span>

**Default value (<code>default</code>):** <span id="dt-b2aac75d2bfdc8edcc3e"><code>&#34;adc&#95;input&#34;</code></span>

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

### <code>adi&#44;gpio3&#45;monitor&#45;enable</code> — not listed as required here

<div id="dt-f1b4beb1eac9cd8622f9">
<p style="white-space: pre-wrap">If set, gpio3 is set as input for the ADC instead of gpio2.</p>
</div>

**Value type (<code>type</code>):** <span id="dt-08786930d53b27c4adeb"><code>&#34;boolean&#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>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-8562362a36ebdbb1ff2a"></a> <span id="dt-31d648f7705dc578c2d6"><code>&#34;adi&#44;gpio3&#45;monitor&#45;enable&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-b212c2ef78c22fab2e20"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-972b110b0f49d3baac12"></a>
> >
> > **<code>adi&#44;gpio2&#45;mode</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-4780934332c74ea0bcae"><code>&#34;stress&#95;fet&#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>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;adi&#44;rsense&#45;nano&#45;ohms&#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">i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    hwmon@50 {
        compatible = "adi,ltc4282";
        reg = &lt;0x50&gt;;
        adi,rsense-nano-ohms = &lt;500&gt;;

        adi,gpio1-mode = "power_good";
        adi,gpio2-mode = "adc_input";
    };
};
</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>
