# Dongwoon Anatech DW9768 Voice Coil Motor (VCM) Lens

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Media bindings / i2c_

> Device-tree binding reference for Dongwoon Anatech DW9768 Voice Coil Motor (VCM) Lens.

<!-- 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;media&#47;i2c&#47;dongwoon&#44;dw9768&#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;Dongchun Zhu &#60;dongchun&#46;zhu&#64;mediatek&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Dongwoon DW9768 is a single 10-bit digital-to-analog (DAC) converter
with 100 mA output current sink capability. VCM current is controlled with
a linear mode driver. The DAC is controlled via a 2-wire (I2C-compatible)
serial interface that operates at clock rates up to 1MHz. This chip
integrates Advanced Actuator Control (AAC) technology and is intended for
driving voice coil lenses in camera modules.</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;dongwoon&#44;dw9768&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;giantec&#44;gt9769&#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-51a959e83f4922242a97"></a>

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

<div id="dt-7b21b67ede244c89b73f">
<p style="white-space: pre-wrap">Definition of the regulator used as Digital I/O voltage supply.</p>
</div>

<a id="dt-236855bde9eebcc9d904"></a>

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

<div id="dt-bc3e69b335e23d461899">
<p style="white-space: pre-wrap">Definition of the regulator used as Digital core voltage supply.</p>
</div>

<a id="dt-57d70973b079fd1feb9e"></a>

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

<div id="dt-7fa16d87758c1a014acd">
<p style="white-space: pre-wrap">Indication of AAC mode select.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-3591736770eaa038ddc8"></a> <span id="dt-0d02fc2b6910117edd8d"><code>1</code></span>, <span id="dt-7cfe54df763f98854bcf"><code>2</code></span>, <span id="dt-757bd81c11778d8ac069"><code>3</code></span>, <span id="dt-80464b2fdc12f9164477"><code>5</code></span>

**Default value (<code>default</code>):** <span id="dt-21dd3daf9598876680dd"><code>2</code></span>

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

### <code>dongwoon&#44;aac&#45;timing</code> — not listed as required here

<div id="dt-011985c5dce77f8e34d6">
<p style="white-space: pre-wrap">Number of AAC Timing count that controlled by one 6-bit period of vibration register AACT[5:0], the unit of which is 100 us.</p>
</div>

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

**Default value (<code>default</code>):** <span id="dt-636903e0698be37333e8"><code>32</code></span>

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

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

<a id="dt-18744917b48db615f7c2"></a>

### <code>dongwoon&#44;clock&#45;presc</code> — not listed as required here

<div id="dt-2a0cf6993751295f0b1e">
<p style="white-space: pre-wrap">Indication of VCM internal clock dividing rate select, as one multiple factor to calculate VCM ring periodic time Tvib.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-926e097720bfea5185e1"></a> <span id="dt-9ce38ea0bbcadb09ab3a"><code>0</code></span>, <span id="dt-c7c904076240eff74b19"><code>1</code></span>, <span id="dt-269c1daf353203bb7f76"><code>2</code></span>, <span id="dt-83b0f44c6dbfbf70c291"><code>3</code></span>, <span id="dt-d8123fdcae6a16802b49"><code>4</code></span>, <span id="dt-1796365809c93154a3ac"><code>5</code></span>

**Default value (<code>default</code>):** <span id="dt-b959af148ab483dd0a02"><code>1</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;vin&#45;supply&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;vdd&#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;;

    dw9768: camera-lens@c {
        compatible = "dongwoon,dw9768";
        reg = &lt;0x0c&gt;;

        vin-supply = &lt;&amp;mt6358_vcamio_reg&gt;;
        vdd-supply = &lt;&amp;mt6358_vcama2_reg&gt;;
        dongwoon,aac-timing = &lt;0x39&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>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright (c) 2020 MediaTek Inc.</span></p>

<p id="dt-comment-2"><strong>Line 24:</strong> <span> for DW9768 VCM</span></p>

<p id="dt-comment-3"><strong>Line 25:</strong> <span> for GT9769 VCM</span></p>

<p id="dt-comment-4"><strong>Line 43:</strong> <span>  AAC2 mode(operation time# 0.48 x Tvib)</span></p>

<p id="dt-comment-5"><strong>Line 44:</strong> <span>  AAC3 mode(operation time# 0.70 x Tvib)</span></p>

<p id="dt-comment-6"><strong>Line 45:</strong> <span>  AAC4 mode(operation time# 0.75 x Tvib)</span></p>

<p id="dt-comment-7"><strong>Line 46:</strong> <span>  AAC8 mode(operation time# 1.13 x Tvib)</span></p>

<p id="dt-comment-8"><strong>Line 64:</strong> <span>  Dividing Rate -  2</span></p>

<p id="dt-comment-9"><strong>Line 65:</strong> <span>  Dividing Rate -  1</span></p>

<p id="dt-comment-10"><strong>Line 66:</strong> <span>  Dividing Rate -  1/2</span></p>

<p id="dt-comment-11"><strong>Line 67:</strong> <span>  Dividing Rate -  1/4</span></p>

<p id="dt-comment-12"><strong>Line 68:</strong> <span>  Dividing Rate -  8</span></p>

<p id="dt-comment-13"><strong>Line 69:</strong> <span>  Dividing Rate -  4</span></p>

</details>
