Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/proximity/maxbotix,mb1232.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: MaxBotix I2CXL-MaxSonar ultrasonic distance sensor
0008 
0009 maintainers:
0010   - Andreas Klinger <ak@it-klinger.de>
0011 
0012 description: |
0013   MaxBotix I2CXL-MaxSonar ultrasonic distance sensor of type  mb1202,
0014   mb1212, mb1222, mb1232, mb1242, mb7040 or mb7137 using the i2c interface
0015   for ranging
0016 
0017   Specifications about the devices can be found at:
0018   https://www.maxbotix.com/documents/I2CXL-MaxSonar-EZ_Datasheet.pdf
0019 
0020 properties:
0021   compatible:
0022     enum:
0023       - maxbotix,mb1202
0024       - maxbotix,mb1212
0025       - maxbotix,mb1222
0026       - maxbotix,mb1232
0027       - maxbotix,mb1242
0028       - maxbotix,mb7040
0029       - maxbotix,mb7137
0030 
0031   reg:
0032     maxItems: 1
0033 
0034   interrupts:
0035     description:
0036       Interrupt used to announce the preceding reading request has finished
0037       and that data is available.  If no interrupt is specified the device
0038       driver falls back to wait a fixed amount of time until data can be
0039       retrieved.
0040     maxItems: 1
0041 
0042 required:
0043   - compatible
0044   - reg
0045 
0046 additionalProperties: false
0047 
0048 examples:
0049   - |
0050     #include <dt-bindings/interrupt-controller/irq.h>
0051     i2c {
0052       #address-cells = <1>;
0053       #size-cells = <0>;
0054       proximity@70 {
0055         compatible = "maxbotix,mb1232";
0056         reg = <0x70>;
0057         interrupt-parent = <&gpio2>;
0058         interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
0059       };
0060     };