# Maxim MAX3191x GPIO serializer

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

> Device-tree binding reference for Maxim MAX3191x GPIO serializer.

<!-- 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;gpio&#47;maxim&#44;max31910&#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;Lukas Wunner &#60;lukas&#64;wunner&#46;de&#62;&#34;</code></span>

<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;max31910&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;maxim&#44;max31911&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;maxim&#44;max31912&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;maxim&#44;max31913&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;maxim&#44;max31953&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;maxim&#44;max31963&#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-f5d51cae76398cdb9d95"></a>

### <code>gpio&#45;controller</code> — required here

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

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

### <code>&#35;gpio&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-8950f722147d2cd640b8"><code>2</code></span>

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

### <code>&#35;daisy&#45;chained&#45;devices</code> — not listed as required here

<div id="dt-1cf5970d5302f53c6207">
<p style="white-space: pre-wrap">Number of chips in the daisy-chain.</p>
</div>

**Default value (<code>default</code>):** <span id="dt-5cea885eb13caa26780c"><code>1</code></span>

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

### <code>maxim&#44;modesel&#45;gpios</code> — not listed as required here

<div id="dt-05d787c71a7e3c836b23">
<p style="white-space: pre-wrap">GPIO pins to configure modesel of each chip. The number of GPIOs must equal "#daisy-chained-devices" (if each chip is driven by a separate pin) or 1 (if all chips are wired to the same pin).</p>
</div>

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

### <code>maxim&#44;fault&#45;gpios</code> — not listed as required here

<div id="dt-c716fb5a2160329dafd8">
<p style="white-space: pre-wrap">GPIO pins to read fault of each chip. The number of GPIOs must equal "#daisy-chained-devices" or 1.</p>
</div>

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

### <code>maxim&#44;db0&#45;gpios</code> — not listed as required here

<div id="dt-d92248b99c93d9169871">
<p style="white-space: pre-wrap">GPIO pins to configure debounce of each chip. The number of GPIOs must equal "#daisy-chained-devices" or 1.</p>
</div>

<a id="dt-5257213d8d34d4e71a06"></a>

### <code>maxim&#44;db1&#45;gpios</code> — not listed as required here

<div id="dt-fe7dd3abcb16428d8398">
<p style="white-space: pre-wrap">GPIO pins to configure debounce of each chip. The number of GPIOs must equal "maxim,db0-gpios".</p>
</div>

<a id="dt-68f1776b26a31f23cf4d"></a>

### <code>maxim&#44;modesel&#45;8bit</code> — not listed as required here

<div id="dt-c0b0c1ae1f530f9f50d7">
<p style="white-space: pre-wrap">Boolean whether the modesel pin of the chips is pulled high (8-bit mode). Use this if the modesel pin is hardwired and consequently "maxim,modesel-gpios" cannot be specified. By default if neither this nor "maxim,modesel-gpios" is given, the driver assumes that modesel is pulled low (16-bit mode).</p>
</div>

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

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

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

<div id="dt-0aa8c3df8d4830637c45">
<p style="white-space: pre-wrap">Boolean whether to ignore undervoltage alarms signaled by the "maxim,fault-gpios" or by the status byte (in 16-bit mode). Use this if the chips are powered through 5VOUT instead of VCC24V, in which case they will constantly signal undervoltage.</p>
</div>

**Value type (<code>type</code>):** <span id="dt-049bde1b08ed2be73608"><code>&#34;boolean&#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;gpio&#45;controller&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;gpio&#45;cells&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

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

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

### Rule 1

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

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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;

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

    gpio@0 {
        compatible = "maxim,max31913";
        reg = &lt;0&gt;;
        gpio-controller;
        #gpio-cells = &lt;2&gt;;

        maxim,modesel-gpios = &lt;&amp;gpio2 23&gt;;
        maxim,fault-gpios = &lt;&amp;gpio2 24 GPIO_ACTIVE_LOW&gt;;
        maxim,db0-gpios = &lt;&amp;gpio2 25&gt;;
        maxim,db1-gpios = &lt;&amp;gpio2 26&gt;;

        spi-max-frequency = &lt;25000000&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-only OR BSD-2-Clause)</span></p>

</details>
