# Analog Devices AD2S1210 Resolver-to-Digital Converter

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

> Device-tree binding reference for Analog Devices AD2S1210 Resolver-to-Digital Converter.

<!-- 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;iio&#47;resolver&#47;adi&#44;ad2s1210&#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;Michael Hennerich &#60;michael&#46;hennerich&#64;analog&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The AD2S1210 is a complete 10-bit to 16-bit resolution tracking
resolver-to-digital converter, integrating an on-board programmable
sinusoidal oscillator that provides sine wave excitation for
resolvers.</p>
<p style="white-space: pre-wrap">The AD2S1210 allows the user to read the angular position or the
angular velocity data directly from the parallel outputs or through
the serial interface.</p>
<p style="white-space: pre-wrap">The mode of operation of the communication channel (parallel or serial) is
selected by the A0 and A1 input pins. In normal mode, data is latched by
toggling the SAMPLE line and can then be read directly. In configuration mode,
data is read or written using a register access scheme (address byte with
read/write flag and data byte).</p>
<pre><code>  A1  A0  Result
   0   0  Normal mode - position output
   0   1  Normal mode - velocity output
   1   0  Reserved
   1   1  Configuration mode</code></pre>
<p style="white-space: pre-wrap">In normal mode, the resolution of the digital output is selected using
the RES0 and RES1 input pins. In configuration mode, the resolution is
selected by setting the RES0 and RES1 bits in the control register.</p>
<pre><code>RES1  RES0  Resolution (Bits)
   0     0  10
   0     1  12
   1     0  14
   1     1  16</code></pre>
<p style="white-space: pre-wrap">Note on SPI connections: The CS line on the AD2S1210 should hard-wired to
logic low and the WR/FSYNC line on the AD2S1210 should be connected to the
SPI CSn output of the SPI controller.</p>
<p style="white-space: pre-wrap">Datasheet:
https://www.analog.com/media/en/technical-documentation/data-sheets/ad2s1210.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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;adi&#44;ad2s1210&#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> — not listed as required here

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

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

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

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

<a id="dt-14397a69ba55f41119c5"></a>

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

<div id="dt-c928412db05126ef65e3">
<p style="white-space: pre-wrap">A 4.75 to 5.25 V regulator that powers the Analog Supply Voltage (AVDD) pin.</p>
</div>

<a id="dt-84a2bc358063a1a7c956"></a>

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

<div id="dt-593261d208e8b7fb5f26">
<p style="white-space: pre-wrap">A 4.75 to 5.25 V regulator that powers the Digital Supply Voltage (DVDD) pin.</p>
</div>

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

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

<div id="dt-e6573245ee1c7650d14e">
<p style="white-space: pre-wrap">A 2.3 to 5.25 V regulator that powers the Logic Power Supply Input (VDrive) pin.</p>
</div>

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

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

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">External oscillator clock (CLKIN).</p>
</div>

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

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

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">GPIO connected to the /RESET pin. As the line needs to be low for the reset to be active, it should be configured as GPIO_ACTIVE_LOW.</p>
</div>

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

<a id="dt-2545489e27a425a1b99c"></a>

### <code>sample&#45;gpios</code> — required here

<div id="dt-a5f8210c86358c967bca">
<p style="white-space: pre-wrap">GPIO connected to the /SAMPLE pin. As the line needs to be low to trigger a sample, it should be configured as GPIO_ACTIVE_LOW.</p>
</div>

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

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

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

<div id="dt-b965d256af8d9380b678">
<p style="white-space: pre-wrap">GPIO lines connected to the A0 and A1 pins. These pins select the data transfer mode.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-fabd37ce71916a8c9242"><code>2</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-8e89fc7fe511571b716e"><code>2</code></span>

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

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

<div id="dt-9148644bc29d3f5f2942">
<p style="white-space: pre-wrap">GPIO lines connected to the RES0 and RES1 pins. These pins select the resolution of the digital output. If omitted, it is assumed that the RES0 and RES1 pins are hard-wired to match the assigned-resolution-bits property.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-3a25acb6dd8519ccd6a1"><code>2</code></span>

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

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

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

<div id="dt-654706b354233fc10d61">
<p style="white-space: pre-wrap">GPIO lines connected to the LOT and DOS pins. These pins combined indicate the type of fault present, if any. As these pins a pulled low to indicate a fault condition, they should be configured as GPIO_ACTIVE_LOW.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-193ec5c07bcfb8693db0"><code>2</code></span>

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

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

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

<div id="dt-6b4e1c22162888837b6d">
<p style="white-space: pre-wrap">This is used to indicate the selected mode if A0 and A1 are hard-wired instead of connected to GPIOS (i.e. mode-gpios is omitted).</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9d814316c41a46140551">[<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-33558000bb965557771a"></a> <span id="dt-4e15df898c13c7a84c66"><code>&#34;config&#34;</code></span>, <span id="dt-6c999fd800f20af0468d"><code>&#34;velocity&#34;</code></span>, <span id="dt-6f047d1b214f439f9475"><code>&#34;position&#34;</code></span>

<a id="dt-91c967f2b35a58cb487c"></a>

### <code>assigned&#45;resolution&#45;bits</code> — required here

<div id="dt-a15e499d95d2cc324083">
<p style="white-space: pre-wrap">Resolution of the digital output required by the application. This determines the precision of the angle and/or the maximum speed that can be measured. If resolution-gpios is omitted, it is assumed that RES0 and RES1 are hard-wired to match this value.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-f8a5c92dd9cf796f2487"></a> <span id="dt-343bf3dd3f3d0075e9a1"><code>10</code></span>, <span id="dt-77309069e3d9130d91cd"><code>12</code></span>, <span id="dt-bfa7fcb746ef759eea86"><code>14</code></span>, <span id="dt-fe7f4f1822808870c3d4"><code>16</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;spi&#45;cpha&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;avdd&#45;supply&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;dvdd&#45;supply&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;vdrive&#45;supply&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;clocks&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;sample&#45;gpios&#34;</code></span>, <span id="dt-727c9b818c335e022c0e"><code>&#34;assigned&#45;resolution&#45;bits&#34;</code></span>

<a id="dt-51356188806d31ca2021"></a>

## Exactly one of these rules must match (<code>oneOf</code>)

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

### Rule 1

> **Required in this object (<code>required</code>):** <a id="dt-48cc38ffec184df79a62"></a> <span id="dt-bbd3b687ebb435349af2"><code>&#34;mode&#45;gpios&#34;</code></span>

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

### Rule 2

> **Required in this object (<code>required</code>):** <a id="dt-686ce4562589647d257c"></a> <span id="dt-8060cb7221f215eec82f"><code>&#34;adi&#44;fixed&#45;mode&#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;;

    resolver@0 {
        compatible = "adi,ad2s1210";
        reg = &lt;0&gt;;
        spi-max-frequency = &lt;20000000&gt;;
        spi-cpha;
        avdd-supply = &lt;&amp;avdd_regulator&gt;;
        dvdd-supply = &lt;&amp;dvdd_regulator&gt;;
        vdrive-supply = &lt;&amp;vdrive_regulator&gt;;
        clocks = &lt;&amp;ext_osc&gt;;
        sample-gpios = &lt;&amp;gpio0 90 GPIO_ACTIVE_LOW&gt;;
        mode-gpios = &lt;&amp;gpio0 86 0&gt;, &lt;&amp;gpio0 87 0&gt;;
        resolution-gpios = &lt;&amp;gpio0 88 0&gt;, &lt;&amp;gpio0 89 0&gt;;
        assigned-resolution-bits = &lt;16&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>
