Skip to content

Commit efd7d86

Browse files
whamejic23
authored andcommitted
dt-bindings: iio: proximity: Add Nicera D3-323-AA PIR sensor
Nicera D3-323-AA is a PIR sensor for human detection. It has two GPIOs for detection and data communication. Signed-off-by: Waqar Hameed <waqar.hameed@axis.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://patch.msgid.link/19a2744cebaee57fe5349986094168524baa9838.1751636734.git.waqar.hameed@axis.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent f246f42 commit efd7d86

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/iio/proximity/nicera,d3323aa.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Nicera D3-323-AA PIR sensor
8+
9+
maintainers:
10+
- Waqar Hameed <waqar.hameed@axis.com>
11+
12+
description: |
13+
PIR sensor for human detection.
14+
Datasheet: https://www.endrich.com/Datenbl%C3%A4tter/Sensoren/D3-323-AA_e.pdf
15+
16+
properties:
17+
compatible:
18+
const: nicera,d3323aa
19+
20+
vdd-supply:
21+
description:
22+
Supply voltage (1.8 to 5.5 V).
23+
24+
vout-clk-gpios:
25+
maxItems: 1
26+
description:
27+
GPIO for clock and detection.
28+
After reset, the device signals with two falling edges on this pin that it
29+
is ready for configuration (within 1.2 s).
30+
During configuration, it is used as clock for data reading and writing (on
31+
data-gpios).
32+
After all this, when device is in operational mode, it signals on this pin
33+
for any detections.
34+
35+
data-gpios:
36+
maxItems: 1
37+
description:
38+
GPIO for data reading and writing. This is denoted "DO (SI)" in datasheet.
39+
During configuration, this pin is used for writing and reading
40+
configuration data (together with vout-clk-gpios as clock).
41+
After this, during operational mode, the device will output serial data on
42+
this GPIO.
43+
44+
required:
45+
- compatible
46+
- vdd-supply
47+
- vout-clk-gpios
48+
- data-gpios
49+
50+
additionalProperties: false
51+
52+
examples:
53+
- |
54+
#include <dt-bindings/gpio/gpio.h>
55+
56+
proximity {
57+
compatible = "nicera,d3323aa";
58+
vdd-supply = <&regulator_3v3>;
59+
vout-clk-gpios = <&gpio 78 GPIO_ACTIVE_HIGH>;
60+
data-gpios = <&gpio 76 GPIO_ACTIVE_HIGH>;
61+
};
62+
...

0 commit comments

Comments
 (0)