18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci%YAML 1.2
38c2ecf20Sopenharmony_ci---
48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/iio/proximity/maxbotix,mb1232.yaml#
58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cititle: MaxBotix I2CXL-MaxSonar ultrasonic distance sensor
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cimaintainers:
108c2ecf20Sopenharmony_ci  - Andreas Klinger <ak@it-klinger.de>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_cidescription: |
138c2ecf20Sopenharmony_ci  MaxBotix I2CXL-MaxSonar ultrasonic distance sensor of type  mb1202,
148c2ecf20Sopenharmony_ci  mb1212, mb1222, mb1232, mb1242, mb7040 or mb7137 using the i2c interface
158c2ecf20Sopenharmony_ci  for ranging
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci  Specifications about the devices can be found at:
188c2ecf20Sopenharmony_ci  https://www.maxbotix.com/documents/I2CXL-MaxSonar-EZ_Datasheet.pdf
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciproperties:
218c2ecf20Sopenharmony_ci  compatible:
228c2ecf20Sopenharmony_ci    enum:
238c2ecf20Sopenharmony_ci      - maxbotix,mb1202
248c2ecf20Sopenharmony_ci      - maxbotix,mb1212
258c2ecf20Sopenharmony_ci      - maxbotix,mb1222
268c2ecf20Sopenharmony_ci      - maxbotix,mb1232
278c2ecf20Sopenharmony_ci      - maxbotix,mb1242
288c2ecf20Sopenharmony_ci      - maxbotix,mb7040
298c2ecf20Sopenharmony_ci      - maxbotix,mb7137
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci  reg:
328c2ecf20Sopenharmony_ci    maxItems: 1
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci  interrupts:
358c2ecf20Sopenharmony_ci    description:
368c2ecf20Sopenharmony_ci      Interrupt used to announce the preceding reading request has finished
378c2ecf20Sopenharmony_ci      and that data is available.  If no interrupt is specified the device
388c2ecf20Sopenharmony_ci      driver falls back to wait a fixed amount of time until data can be
398c2ecf20Sopenharmony_ci      retrieved.
408c2ecf20Sopenharmony_ci    maxItems: 1
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_cirequired:
438c2ecf20Sopenharmony_ci  - compatible
448c2ecf20Sopenharmony_ci  - reg
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ciadditionalProperties: false
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ciexamples:
498c2ecf20Sopenharmony_ci  - |
508c2ecf20Sopenharmony_ci    #include <dt-bindings/interrupt-controller/irq.h>
518c2ecf20Sopenharmony_ci    i2c {
528c2ecf20Sopenharmony_ci      #address-cells = <1>;
538c2ecf20Sopenharmony_ci      #size-cells = <0>;
548c2ecf20Sopenharmony_ci      proximity@70 {
558c2ecf20Sopenharmony_ci        compatible = "maxbotix,mb1232";
568c2ecf20Sopenharmony_ci        reg = <0x70>;
578c2ecf20Sopenharmony_ci        interrupt-parent = <&gpio2>;
588c2ecf20Sopenharmony_ci        interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
598c2ecf20Sopenharmony_ci      };
608c2ecf20Sopenharmony_ci    };
61