# AVIA HX711 ADC chip for weight cells

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

> Device-tree binding reference for AVIA HX711 ADC chip for weight cells.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;avia&#45;hx711&#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;Andreas Klinger &#60;ak&#64;it&#45;klinger&#46;de&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<pre><code>Bit-banging driver using two GPIOs:
- sck-gpio gives a clock to the sensor with 24 cycles for data retrieval
  and up to 3 cycles for selection of the input channel and gain for the
  next measurement
- dout-gpio is the sensor data the sensor responds to the clock</code></pre>
<p style="white-space: pre-wrap">Specifications about the driver can be found at:
http://www.aviaic.com/ENProducts.aspx</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;avia&#44;hx711&#34;</code></span>

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

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

<div id="dt-0cc50bf27d577ebc9366">
<p style="white-space: pre-wrap">Definition of the GPIO for the clock (output). In the datasheet it is named PD_SCK</p>
</div>

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

<a id="dt-0154225117b259b20f1c"></a>

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

<div id="dt-80e4fcf1a9b6b63c68aa">
<p style="white-space: pre-wrap">Definition of the GPIO for the data-out sent by the sensor in response to the clock (input). See Documentation/devicetree/bindings/gpio/gpio.txt for information on how to specify a consumer gpio.</p>
</div>

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

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

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

<div id="dt-c928412db05126ef65e3">
<p style="white-space: pre-wrap">Definition of the regulator used as analog supply</p>
</div>

<a id="dt-0298421e73bc073162cc"></a>

### <code>clock&#45;frequency</code> — not listed as required here

**Minimum value (<code>minimum</code>):** <span id="dt-bdf19748a029a958ea75"><code>20000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-60cd7829fc24dc9d0dc0"><code>2500000</code></span>

**Default value (<code>default</code>):** <span id="dt-f1c4f38c5bf0a6f6c783"><code>400000</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;sck&#45;gpios&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;dout&#45;gpios&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;avdd&#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">#include &lt;dt-bindings/gpio/gpio.h&gt;
weight {
    compatible = "avia,hx711";
    sck-gpios = &lt;&amp;gpio3 10 GPIO_ACTIVE_HIGH&gt;;
    dout-gpios = &lt;&amp;gpio0 7 GPIO_ACTIVE_HIGH&gt;;
    avdd-supply = &lt;&amp;avdd&gt;;
    clock-frequency = &lt;100000&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</span></p>

</details>
