# Maxim MAX34408/MAX34409 current monitors with overcurrent control

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc_

> Device-tree binding reference for Maxim MAX34408/MAX34409 current monitors with overcurrent control.

<!-- 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;iio&#47;adc&#47;maxim&#44;max34408&#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;Ivan Mikhaylov &#60;fr0st61te&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The MAX34408/MAX34409 are two- and four-channel current monitors that are
configured and monitored with a standard I2C/SMBus serial interface. Each
unidirectional current sensor offers precision high-side operation with a
low full-scale sense voltage. The devices automatically sequence through
two or four channels and collect the current-sense samples and average them
to reduce the effect of impulse noise. The raw ADC samples are compared to
user-programmable digital thresholds to indicate overcurrent conditions.
Overcurrent conditions trigger a hardware output to provide an immediate
indication to shut down any necessary external circuitry.</p>
<p style="white-space: pre-wrap">Specifications about the devices can be found at:
https://www.analog.com/media/en/technical-documentation/data-sheets/MAX34408-MAX34409.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;maxim&#44;max34408&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;maxim&#44;max34409&#34;</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-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-c2de09e7f7fd211b679d"></a>

### <code>interrupts</code> — not listed as required here

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

<a id="dt-18291f1487c1b45c6138"></a>

### <code>powerdown&#45;gpios</code> — not listed as required here

<div id="dt-2e6eeac1c3055c8550d6">
<p style="white-space: pre-wrap">Shutdown Output. Open-drain output. This output transitions to high impedance when any of the digital comparator thresholds are exceeded as long as the ENA pin is high.</p>
</div>

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

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

### <code>powerdown&#45;status&#45;gpios</code> — not listed as required here

<div id="dt-8cf211122e02245abf31">
<p style="white-space: pre-wrap">SHTDN Enable Input. CMOS digital input. Connect to GND to clear the latch and unconditionally deassert (force low) the SHTDN output and reset the shutdown delay. Connect to VDD to enable normal latch operation of the SHTDN output.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-cdb534576f33f30d14c5"><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-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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-18a2ccaf45a0cc940a13">[<code>adc&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-iio/adc/adc.md#dt-root>)</span>

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

<div id="dt-dd8e1d4a3870cf8fd802">
<p style="white-space: pre-wrap">Represents the internal channels of the ADC.</p>
</div>

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

> **Minimum value (<code>minimum</code>):** <span id="dt-d7fcce700cbe361fe691"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-1ce29402fa98bf76f294"><code>3</code></span>

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

**<code>maxim&#44;rsense&#45;val&#45;micro&#45;ohms</code> — required here**

<div id="dt-81b979919e774ec80b81">
<p style="white-space: pre-wrap">Adjust the Rsense value to monitor higher or lower current levels for input.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-c5ae1904cb7f9aaed3c2"></a> <span id="dt-b6f109c16d92dc50e06e"><code>250</code></span>, <span id="dt-7d00a1d3f9f004a960fe"><code>500</code></span>, <span id="dt-0155326bfc7fb746c052"><code>1000</code></span>, <span id="dt-fa3f8fd533c43c08f656"><code>5000</code></span>, <span id="dt-61cd1cff56eef21c6249"><code>10000</code></span>, <span id="dt-ce5db08dbd23b7e188d5"><code>50000</code></span>, <span id="dt-59e4d718356e40a9e914"><code>100000</code></span>, <span id="dt-3938c8f418fe092e759f"><code>200000</code></span>, <span id="dt-c428a794ff2ee2918126"><code>500000</code></span>

**Default value (<code>default</code>):** <span id="dt-63c0c0b01a8132145584"><code>1000</code></span>

**Required in this object (<code>required</code>):** <a id="dt-ed8c88f28db5f41ceea0"></a> <span id="dt-2369497c99afd9cc977c"><code>&#34;reg&#34;</code></span>, <span id="dt-84e3d84edad52a123be1"><code>&#34;maxim&#44;rsense&#45;val&#45;micro&#45;ohms&#34;</code></span>

<a id="dt-b42fc54dc57308b4c5e5"></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-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>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-ebe43a424f4497a78746"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8997992e7087b5549d86"><code>&#34;maxim&#44;max34408&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-6a22a8f69a54bcbb7d12"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-9830d89cc41df9fdc0fd"></a>
> >
> > **<code>&#94;channel&#64;&#91;2&#45;3&#93;&#36;</code> — name matches this regular expression**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-bff77c0ab6497ce3f430"></a>
> >
> > **<code>&#94;channel&#64;&#91;0&#45;1&#93;&#36;</code> — name matches this regular expression**
> >
> > <a id="dt-6f5d870544542afcf204"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-85778f25efdca04398c4"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-5c823fa2e96cf6adf49e"><code>1</code></span>
>
> <a id="dt-f985d6aaa3f73a650205"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-7fb969d41394745ecdc2"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-daa8fc87a18a4ad6e5ad"></a>
> >
> > **<code>&#94;channel&#64;&#91;0&#45;3&#93;&#36;</code> — name matches this regular expression**
> >
> > <a id="dt-cd66e9011dfda7d31227"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-a0f0ed1126be1fd6ffcf"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-4069cd12db7ffd8e29fd"><code>3</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/gpio/gpio.h&gt;

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

    adc@1e {
          compatible = "maxim,max34409";
          reg = &lt;0x1e&gt;;
          powerdown-gpios = &lt;&amp;gpio0 1 GPIO_ACTIVE_LOW&gt;;
          powerdown-status-gpios = &lt;&amp;gpio0 2 GPIO_ACTIVE_HIGH&gt;;

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

          channel@0 {
              reg = &lt;0x0&gt;;
              maxim,rsense-val-micro-ohms = &lt;5000&gt;;
          };

          channel@1 {
              reg = &lt;0x1&gt;;
              maxim,rsense-val-micro-ohms = &lt;10000&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>
