1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/iio/proximity/rfdigital,rfd77402.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: RF Digital RFD77402 ToF sensor 8 9maintainers: 10 - Shrikant Raskar <raskar.shree97@gmail.com> 11 12description: 13 The RF Digital RFD77402 is a Time-of-Flight (ToF) proximity and distance 14 sensor providing up to 200 mm range measurement over an I2C interface. 15 16properties: 17 compatible: 18 const: rfdigital,rfd77402 19 20 reg: 21 maxItems: 1 22 23 interrupts: 24 maxItems: 1 25 description: 26 Interrupt asserted when a new distance measurement is available. 27 28 vdd-supply: 29 description: Regulator that provides power to the sensor. 30 31required: 32 - compatible 33 - reg 34 - vdd-supply 35 36additionalProperties: false 37 38examples: 39 - | 40 #include <dt-bindings/interrupt-controller/irq.h> 41 i2c { 42 #address-cells = <1>; 43 #size-cells = <0>; 44 45 proximity@4c { 46 compatible = "rfdigital,rfd77402"; 47 reg = <0x4c>; 48 vdd-supply = <&vdd_3v3>; 49 interrupt-parent = <&gpio>; 50 interrupts = <4 IRQ_TYPE_EDGE_FALLING>; 51 }; 52 }; 53... 54