# Microchip MCP346X and MCP356X ADC Family

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

> Device-tree binding reference for Microchip MCP346X and MCP356X ADC Family.

<!-- 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;microchip&#44;mcp3564&#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;Marius Cristea &#60;marius&#46;cristea&#64;microchip&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<pre><code>Bindings for the Microchip family of 153.6 ksps, Low-Noise 16/24-Bit
Delta-Sigma ADCs with an SPI interface. Datasheet can be found here:
Datasheet for MCP3561, MCP3562, MCP3564 can be found here:
  https://ww1.microchip.com/downloads/aemDocuments/documents/MSLD/ProductDocuments/DataSheets/MCP3561-2-4-Family-Data-Sheet-DS20006181C.pdf
Datasheet for MCP3561R, MCP3562R, MCP3564R can be found here:
  https://ww1.microchip.com/downloads/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3561_2_4R-Data-Sheet-DS200006391C.pdf
Datasheet for MCP3461, MCP3462, MCP3464 can be found here:
  https://ww1.microchip.com/downloads/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3461-2-4-Two-Four-Eight-Channel-153.6-ksps-Low-Noise-16-Bit-Delta-Sigma-ADC-Data-Sheet-20006180D.pdf
Datasheet for MCP3461R, MCP3462R, MCP3464R can be found here:
  https://ww1.microchip.com/downloads/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3461-2-4R-Family-Data-Sheet-DS20006404C.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;microchip&#44;mcp3461&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;microchip&#44;mcp3462&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;microchip&#44;mcp3464&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;microchip&#44;mcp3461r&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;microchip&#44;mcp3462r&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;microchip&#44;mcp3464r&#34;</code></span>, <span id="dt-5708aa713f48e19e156f"><code>&#34;microchip&#44;mcp3561&#34;</code></span>, <span id="dt-3edbd20dc5b59e47edf5"><code>&#34;microchip&#44;mcp3562&#34;</code></span>, <span id="dt-07feb33463d5c114ab05"><code>&#34;microchip&#44;mcp3564&#34;</code></span>, <span id="dt-1e634b71c3167df349bb"><code>&#34;microchip&#44;mcp3561r&#34;</code></span>, <span id="dt-70e866729f00cfce3510"><code>&#34;microchip&#44;mcp3562r&#34;</code></span>, <span id="dt-81f973819a6dd2302321"><code>&#34;microchip&#44;mcp3564r&#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-03a3b4f56bf191dde680"></a>

### <code>spi&#45;max&#45;frequency</code> — required here

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

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

### <code>spi&#45;cpha</code> — not listed as required here

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

<a id="dt-27851c8ce8d41152ef35"></a>

### <code>spi&#45;cpol</code> — not listed as required here

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

<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-14397a69ba55f41119c5"></a>

### <code>avdd&#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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">Phandle and clock identifier for external sampling clock. If not specified, the internal crystal oscillator will be used.</p>
</div>

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

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">IRQ line of the ADC</p>
</div>

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

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

### <code>drive&#45;open&#45;drain</code> — not listed as required here

<div id="dt-82b424370ad6c5b2e023">
<p style="white-space: pre-wrap">Whether to drive the IRQ signal as push-pull (default) or open-drain. Note that the device requires this pin to become "high", otherwise it will stop converting.</p>
</div>

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

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

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

<div id="dt-f9c8a721f6889569bcad">
<p style="white-space: pre-wrap">Some devices have a specific reference voltage supplied on a different pin to the other supplies. Needed to be able to establish channel scaling unless there is also an internal reference available (e.g. mcp3564r). In case of "r" devices (e. g. mcp3564r), if it does not exists the internal reference will be used.</p>
</div>

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

### <code>microchip&#44;hw&#45;device&#45;address</code> — required here

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

**Minimum value (<code>minimum</code>):** <span id="dt-1d446b1b3305674dd60e"><code>0</code></span>

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

<div id="dt-fa324a0092d1ce371157">
<p style="white-space: pre-wrap">The address is set on a per-device basis by fuses in the factory, configured on request. If not requested, the fuses are set for 0x1. The device address is part of the device markings to avoid potential confusion. This address is coded on two bits, so four possible addresses are available when multiple devices are present on the same SPI bus with only one Chip Select line for all devices. Each device communication starts by a CS falling edge, followed by the clocking of the device address (BITS[7:6] - top two bits of COMMAND BYTE which is first one on the wire).</p>
</div>

<a id="dt-6971e222e0082656e9f5"></a>

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

**Exact value (<code>const</code>):** <span id="dt-d32aef3dfe12cf2b3de1"><code>1</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-e92215bd3c2f5373b164"></a>

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

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

### <code>&#94;channel&#64;&#40;&#91;0&#45;9&#93;&#124;&#40;&#91;1&#45;7&#93;&#91;0&#45;9&#93;&#41;&#41;&#36;</code> — name matches this regular expression

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fd06767fe3e2e05038dc">[<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-2e84a36728ed8e42026c"><code>&#34;object&#34;</code></span>

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

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

<code>false</code>

Not allowed by this rule.

<div id="dt-2aafc7f795459fba1c76">
<p style="white-space: pre-wrap">Represents the external channels which are connected to the ADC.</p>
</div>

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

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

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

**<code>reg</code> — required here**

<div id="dt-29396e5ddb5f358cb051">
<p style="white-space: pre-wrap">The channel number in single-ended and differential mode.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-24cc1fab8ff2a73a9272"><code>0</code></span>

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

**Required in this object (<code>required</code>):** <a id="dt-8972238f8aad44f81a6f"></a> <span id="dt-1e9048daa78eceb730a0"><code>&#34;reg&#34;</code></span>

<a id="dt-3d235861b18e278e9c09"></a>

## Property dependencies (<code>dependencies</code>)

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

### <code>spi&#45;cpol</code> — applies when this property is present

Also requires: <span id="dt-f62b0830225b4edc59d0"><code>&#34;spi&#45;cpha&#34;</code></span>

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

### <code>spi&#45;cpha</code> — applies when this property is present

Also requires: <span id="dt-a00d999628bebde1818a"><code>&#34;spi&#45;cpol&#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;microchip&#44;hw&#45;device&#45;address&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;spi&#45;max&#45;frequency&#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-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-61039da0155527cc02ba"></a> <span id="dt-20f8a813aab744ff239a"><code>&#34;microchip&#44;mcp3461&#34;</code></span>, <span id="dt-97636aa7a2139f7622b5"><code>&#34;microchip&#44;mcp3462&#34;</code></span>, <span id="dt-d29379bd469379c8aac7"><code>&#34;microchip&#44;mcp3464&#34;</code></span>, <span id="dt-4d46427daeb4d8de3150"><code>&#34;microchip&#44;mcp3561&#34;</code></span>, <span id="dt-f5a9f906c7ab6d73de62"><code>&#34;microchip&#44;mcp3562&#34;</code></span>, <span id="dt-ad13ece4b900cc595f9f"><code>&#34;microchip&#44;mcp3564&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-ee96a18d4bb2a9d39bd9"></a> <span id="dt-96ee7f71687cd234a9f8"><code>&#34;vref&#45;supply&#34;</code></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">spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    adc@0 {
        compatible = "microchip,mcp3564r";
        reg = &lt;0&gt;;
        vref-supply = &lt;&amp;vref_reg&gt;;
        spi-cpha;
        spi-cpol;
        spi-max-frequency = &lt;10000000&gt;;
        microchip,hw-device-address = &lt;1&gt;;

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

        channel@0 {
            /* CH0 to AGND */
            reg = &lt;0&gt;;
            label = "CH0";
        };

        channel@1 {
            /* CH1 to AGND */
            reg = &lt;1&gt;;
            label = "CH1";
        };

        /* diff-channels */
        channel@11 {
            reg = &lt;11&gt;;

            /* CN0, CN1 */
            diff-channels = &lt;0 1&gt;;
            label = "CH0_CH1";
        };

        channel@22 {
            reg = &lt;0x22&gt;;

            /* CN1, CN2 */
            diff-channels = &lt;1 2&gt;;
            label = "CH1_CH3";
        };

        channel@23 {
            reg = &lt;0x23&gt;;

            /* CN1, CN3 */
            diff-channels = &lt;1 3&gt;;
            label = "CH1_CH3";
        };
    };
};
</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>

<p id="dt-comment-1"><strong>Line 131:</strong> <span> External vref, no internal reference</span></p>

</details>
