# Devantech SRF04 and Maxbotix mb1000 ultrasonic range finder

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

> Device-tree binding reference for Devantech SRF04 and Maxbotix mb1000 ultrasonic range finder.

<!-- 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;proximity&#47;devantech&#45;srf04&#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:
- trigger-gpio is raised by the driver to start sending out an ultrasonic
  burst
- echo-gpio is held high by the sensor after sending ultrasonic burst
  until it is received once again</code></pre>
<p style="white-space: pre-wrap">Specifications about the devices can be found at:
https://www.robot-electronics.co.uk/htm/srf04tech.htm</p>
<p style="white-space: pre-wrap">https://www.maxbotix.com/documents/LV-MaxSonar-EZ_Datasheet.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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;devantech&#44;srf04&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;maxbotix&#44;mb1000&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;maxbotix&#44;mb1010&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;maxbotix&#44;mb1020&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;maxbotix&#44;mb1030&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;maxbotix&#44;mb1040&#34;</code></span>

<a id="dt-76466d6c888d3b1c72af"></a>

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

<div id="dt-3aae6dbdc168f7663c2b">
<p style="white-space: pre-wrap">Definition of the GPIO for the triggering (output) This GPIO is set for about 10 us by the driver to tell the device it should initiate the measurement cycle. 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-ed018e4f1d8ae195cb41"><code>1</code></span>

<a id="dt-22759f8f47e5d2d0152f"></a>

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

<div id="dt-91b839bdfb945f6e623e">
<p style="white-space: pre-wrap">Definition of the GPIO for the echo (input) This GPIO is set by the device as soon as an ultrasonic burst is sent out and reset when the first echo is received. Thus this GPIO is set while the ultrasonic waves are doing one round trip. It needs to be an GPIO which is able to deliver an interrupt because the time between two interrupts is measured in the driver.</p>
</div>

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

<a id="dt-14edba3514ad1a59dfe6"></a>

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

<div id="dt-5d667970eaf12e991b4e">
<p style="white-space: pre-wrap">Definition of the GPIO for power management of connected peripheral (output). This GPIO can be used by the external hardware for power management. When the device gets suspended it's switched off and when it resumes it's switched on again. After some period of inactivity the driver get suspended automatically (autosuspend feature).</p>
</div>

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

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

### <code>startup&#45;time&#45;ms</code> — not listed as required here

<div id="dt-2deab3aa8427ba5f6060">
<p style="white-space: pre-wrap">This is the startup time the device needs after a resume to be up and running.</p>
</div>

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

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

**Default value (<code>default</code>):** <span id="dt-403aa1f4cbe92f8fcf2d"><code>100</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;trig&#45;gpios&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;echo&#45;gpios&#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;
proximity {
    compatible = "devantech,srf04";
    trig-gpios = &lt;&amp;gpio1 15 GPIO_ACTIVE_HIGH&gt;;
    echo-gpios = &lt;&amp;gpio2  6 GPIO_ACTIVE_HIGH&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>
