RF Digital RFD77402 ToF sensor

Schema identifier ($id): "http://devicetree.org/schemas/iio/proximity/rfdigital,rfd77402.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shrikant Raskar <raskar.shree97@gmail.com>"

The RF Digital RFD77402 is a Time-of-Flight (ToF) proximity and distance sensor providing up to 200 mm range measurement over an I2C interface.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "rfdigital,rfd77402"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Interrupt asserted when a new distance measurement is available.

vdd-supply — required here #

Regulator that provides power to the sensor.

Required in this object (required): "compatible", "reg", "vdd-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    proximity@4c {
        compatible = "rfdigital,rfd77402";
        reg = <0x4c>;
        vdd-supply = <&vdd_3v3>;
        interrupt-parent = <&gpio>;
        interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page