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