Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/iio/proximity/rfdigital,rfd77402.yaml
121847 views
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
7
title: RF Digital RFD77402 ToF sensor
8
9
maintainers:
10
- Shrikant Raskar <raskar.shree97@gmail.com>
11
12
description:
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
16
properties:
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
31
required:
32
- compatible
33
- reg
34
- vdd-supply
35
36
additionalProperties: false
37
38
examples:
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
55