1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2*c66ec88fSEmmanuel Vadot%YAML 1.2 3*c66ec88fSEmmanuel Vadot--- 4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/proximity/maxbotix,mb1232.yaml# 5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel Vadottitle: MaxBotix I2CXL-MaxSonar ultrasonic distance sensor 8*c66ec88fSEmmanuel Vadot 9*c66ec88fSEmmanuel Vadotmaintainers: 10*c66ec88fSEmmanuel Vadot - Andreas Klinger <ak@it-klinger.de> 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel Vadotdescription: | 13*c66ec88fSEmmanuel Vadot MaxBotix I2CXL-MaxSonar ultrasonic distance sensor of type mb1202, 14*c66ec88fSEmmanuel Vadot mb1212, mb1222, mb1232, mb1242, mb7040 or mb7137 using the i2c interface 15*c66ec88fSEmmanuel Vadot for ranging 16*c66ec88fSEmmanuel Vadot 17*c66ec88fSEmmanuel Vadot Specifications about the devices can be found at: 18*c66ec88fSEmmanuel Vadot https://www.maxbotix.com/documents/I2CXL-MaxSonar-EZ_Datasheet.pdf 19*c66ec88fSEmmanuel Vadot 20*c66ec88fSEmmanuel Vadotproperties: 21*c66ec88fSEmmanuel Vadot compatible: 22*c66ec88fSEmmanuel Vadot enum: 23*c66ec88fSEmmanuel Vadot - maxbotix,mb1202 24*c66ec88fSEmmanuel Vadot - maxbotix,mb1212 25*c66ec88fSEmmanuel Vadot - maxbotix,mb1222 26*c66ec88fSEmmanuel Vadot - maxbotix,mb1232 27*c66ec88fSEmmanuel Vadot - maxbotix,mb1242 28*c66ec88fSEmmanuel Vadot - maxbotix,mb7040 29*c66ec88fSEmmanuel Vadot - maxbotix,mb7137 30*c66ec88fSEmmanuel Vadot 31*c66ec88fSEmmanuel Vadot reg: 32*c66ec88fSEmmanuel Vadot maxItems: 1 33*c66ec88fSEmmanuel Vadot 34*c66ec88fSEmmanuel Vadot interrupts: 35*c66ec88fSEmmanuel Vadot description: 36*c66ec88fSEmmanuel Vadot Interrupt used to announce the preceding reading request has finished 37*c66ec88fSEmmanuel Vadot and that data is available. If no interrupt is specified the device 38*c66ec88fSEmmanuel Vadot driver falls back to wait a fixed amount of time until data can be 39*c66ec88fSEmmanuel Vadot retrieved. 40*c66ec88fSEmmanuel Vadot maxItems: 1 41*c66ec88fSEmmanuel Vadot 42*c66ec88fSEmmanuel Vadotrequired: 43*c66ec88fSEmmanuel Vadot - compatible 44*c66ec88fSEmmanuel Vadot - reg 45*c66ec88fSEmmanuel Vadot 46*c66ec88fSEmmanuel VadotadditionalProperties: false 47*c66ec88fSEmmanuel Vadot 48*c66ec88fSEmmanuel Vadotexamples: 49*c66ec88fSEmmanuel Vadot - | 50*c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 51*c66ec88fSEmmanuel Vadot i2c { 52*c66ec88fSEmmanuel Vadot #address-cells = <1>; 53*c66ec88fSEmmanuel Vadot #size-cells = <0>; 54*c66ec88fSEmmanuel Vadot proximity@70 { 55*c66ec88fSEmmanuel Vadot compatible = "maxbotix,mb1232"; 56*c66ec88fSEmmanuel Vadot reg = <0x70>; 57*c66ec88fSEmmanuel Vadot interrupt-parent = <&gpio2>; 58*c66ec88fSEmmanuel Vadot interrupts = <2 IRQ_TYPE_EDGE_FALLING>; 59*c66ec88fSEmmanuel Vadot }; 60*c66ec88fSEmmanuel Vadot }; 61