# Regulator for MAX5970 Smart Switch from Maxim Integrated

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

> Device-tree binding reference for Regulator for MAX5970 Smart Switch from Maxim Integrated.

<!-- 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;mfd&#47;maxim&#44;max5970&#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;Patrick Rudolph &#60;patrick&#46;rudolph&#64;9elements&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The smart switch provides no output regulation, but independent fault protection
and voltage and current sensing.
Programming is done through I2C bus.</p>
<pre><code>Datasheets:
  https://datasheets.maximintegrated.com/en/ds/MAX5970.pdf
  https://datasheets.maximintegrated.com/en/ds/MAX5978.pdf</code></pre>
</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;max5970&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;maxim&#44;max5978&#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-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-85c9b34b55b27f5ea876"></a>

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

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

<div id="dt-7937e84fbfad904a3119">
<p style="white-space: pre-wrap">Properties for four LEDS.</p>
</div>

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

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

<a id="dt-3509700b2691955e89dd"></a>

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

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

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

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

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

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

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4fb51462fa3b5791885b">[<code>&#47;schemas&#47;leds&#47;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-leds/common.md#dt-root>)</span>

<a id="dt-6681e65d305cc4c9402b"></a>

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

<code>false</code>

Not allowed by this rule.

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

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

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

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

**<code>reg</code> — not listed as required here**

**Maximum value (<code>maximum</code>):** <span id="dt-0d913095331cf1d68c1a"><code>3</code></span>

<a id="dt-d5e1fbe5016684412a7f"></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-930d44d631c5cd488799"></a>

### <code>vss1&#45;supply</code> — required here

<div id="dt-b84df1f4f7a595ad90a1">
<p style="white-space: pre-wrap">Supply of the first channel.</p>
</div>

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

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

<div id="dt-d034728a0c391e93b8cd">
<p style="white-space: pre-wrap">Supply of the second channel.</p>
</div>

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

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

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

<div id="dt-21c242b401be5c67bade">
<p style="white-space: pre-wrap">Properties for both hot swap control/switch.</p>
</div>

<a id="dt-61f1ab18943e36a1a8bc"></a>

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

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

**<code>&#94;sw&#91;0&#45;1&#93;&#36;</code> — name matches this regular expression**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-26a91be3bba616ab1b64">[<code>&#47;schemas&#47;regulator&#47;regulator&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-regulator/regulator.md#dt-root>)</span>

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

<a id="dt-239d6df34d460aed95da"></a>

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

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

**<code>shunt&#45;resistor&#45;micro&#45;ohms</code> — required here**

<div id="dt-2c07f5457b0283c32435">
<p style="white-space: pre-wrap">The value of current sense resistor in microohms.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-a4639f1a33b0691f283e"></a> <span id="dt-a53b225065f2ea5d374e"><code>&#34;shunt&#45;resistor&#45;micro&#45;ohms&#34;</code></span>

<a id="dt-4ac2395b30b9fe65a279"></a>

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

<code>false</code>

Not allowed by this rule.

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

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</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>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;regulators&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;vss1&#45;supply&#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**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-867fe1927430e9b33ede"></a> <span id="dt-7226965ee25a457638c7"><code>&#34;maxim&#44;max5970&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-b0b2f2243ff9a854f151"></a> <span id="dt-4e9ead0e861b67997dec"><code>&#34;vss2&#45;supply&#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;;
    regulator@3a {
        compatible = "maxim,max5978";
        reg = &lt;0x3a&gt;;
        vss1-supply = &lt;&amp;p3v3&gt;;

        regulators {
            sw0_ref_0: sw0 {
                shunt-resistor-micro-ohms = &lt;12000&gt;;
            };
        };

        leds {
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;0&gt;;
            led@0 {
                reg = &lt;0&gt;;
                label = "led0";
                default-state = "on";
            };
            led@1 {
                reg = &lt;1&gt;;
                label = "led1";
                default-state = "on";
            };
        };
    };
};
</code></pre>

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

    regulator@3a {
        compatible = "maxim,max5970";
        reg = &lt;0x3a&gt;;
        vss1-supply = &lt;&amp;p3v3&gt;;
        vss2-supply = &lt;&amp;p5v&gt;;

        regulators {
            sw0_ref_1: sw0 {
                shunt-resistor-micro-ohms = &lt;12000&gt;;
            };
            sw1_ref_1: sw1 {
                shunt-resistor-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>
