Path: blob/master/Documentation/devicetree/bindings/iio/proximity/maxbotix,mb1232.yaml
26309 views
# SPDX-License-Identifier: GPL-2.01%YAML 1.22---3$id: http://devicetree.org/schemas/iio/proximity/maxbotix,mb1232.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: MaxBotix I2CXL-MaxSonar ultrasonic distance sensor78maintainers:9- Andreas Klinger <ak@it-klinger.de>1011description: |12MaxBotix I2CXL-MaxSonar ultrasonic distance sensor of type mb1202,13mb1212, mb1222, mb1232, mb1242, mb7040 or mb7137 using the i2c interface14for ranging1516Specifications about the devices can be found at:17https://www.maxbotix.com/documents/I2CXL-MaxSonar-EZ_Datasheet.pdf1819properties:20compatible:21enum:22- maxbotix,mb120223- maxbotix,mb121224- maxbotix,mb122225- maxbotix,mb123226- maxbotix,mb124227- maxbotix,mb704028- maxbotix,mb71372930reg:31maxItems: 13233interrupts:34description:35Interrupt used to announce the preceding reading request has finished36and that data is available. If no interrupt is specified the device37driver falls back to wait a fixed amount of time until data can be38retrieved.39maxItems: 14041required:42- compatible43- reg4445additionalProperties: false4647examples:48- |49#include <dt-bindings/interrupt-controller/irq.h>50i2c {51#address-cells = <1>;52#size-cells = <0>;53proximity@70 {54compatible = "maxbotix,mb1232";55reg = <0x70>;56interrupt-parent = <&gpio2>;57interrupts = <2 IRQ_TYPE_EDGE_FALLING>;58};59};606162