# Current Sense Amplifier

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

> Device-tree binding reference for Current Sense Amplifier.

<!-- 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;afe&#47;current&#45;sense&#45;amplifier&#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;Peter Rosin &#60;peda&#64;axentia&#46;se&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">When an io-channel measures the output voltage from a current sense
amplifier, the interesting measurement is almost always the current
through the sense resistor, not the voltage output. This binding
describes such a current sense circuit.</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;current&#45;sense&#45;amplifier&#34;</code></span>

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

### <code>io&#45;channels</code> — required here

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

<div id="dt-00f0389e57ab952e1ac1">
<p style="white-space: pre-wrap">Channel node of a voltage io-channel.</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>0</code></span>

<a id="dt-96a30a36ae0b95f24181"></a>

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

<div id="dt-b5a3e828edb11ef6a2f0">
<p style="white-space: pre-wrap">The sense resistance.</p>
</div>

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

### <code>sense&#45;gain&#45;mult</code> — not listed as required here

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

<div id="dt-0dbd38baab5c41c6206d">
<p style="white-space: pre-wrap">Amplifier gain multiplier. The default is &lt;1&gt;.</p>
</div>

<a id="dt-83ae9df7a28d85798490"></a>

### <code>sense&#45;gain&#45;div</code> — not listed as required here

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

<div id="dt-4655f15de0b27bde513e">
<p style="white-space: pre-wrap">Amplifier gain divider. The default is &lt;1&gt;.</p>
</div>

**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;io&#45;channels&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;sense&#45;resistor&#45;micro&#45;ohms&#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">sysi {
    compatible = "current-sense-amplifier";
    #io-channel-cells = &lt;0&gt;;
    io-channels = &lt;&amp;tiadc 0&gt;;

    sense-resistor-micro-ohms = &lt;20000&gt;;
    sense-gain-mult = &lt;50&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>
