Nicera D3-323-AA PIR sensor

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

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

Maintainers (maintainers): "Waqar Hameed <waqar.hameed@axis.com>"

PIR sensor for human detection. Datasheet: https://www.endrich.com/Datenbl%C3%A4tter/Sensoren/D3-323-AA_e.pdf

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nicera,d3323aa"

vdd-supply — required here #

Supply voltage (1.8 to 5.5 V).

vout-clk-gpios — required here #

Maximum number of items (maxItems): 1

GPIO for clock and detection. After reset, the device signals with two falling edges on this pin that it is ready for configuration (within 1.2 s). During configuration, it is used as clock for data reading and writing (on data-gpios). After all this, when device is in operational mode, it signals on this pin for any detections.

data-gpios — required here #

Maximum number of items (maxItems): 1

GPIO for data reading and writing. This is denoted "DO (SI)" in datasheet. During configuration, this pin is used for writing and reading configuration data (together with vout-clk-gpios as clock). After this, during operational mode, the device will output serial data on this GPIO.

Required in this object (required): "compatible", "vdd-supply", "vout-clk-gpios", "data-gpios"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

proximity {
    compatible = "nicera,d3323aa";
    vdd-supply = <&regulator_3v3>;
    vout-clk-gpios = <&gpio 78 GPIO_ACTIVE_HIGH>;
    data-gpios = <&gpio 76 GPIO_ACTIVE_HIGH>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page