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>
---
.../iio/proximity/nicera,d3323aa.yaml | 60 +++++++++++++++++++
1 file changed, 60 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/proximity/nicera,d3323aa.yaml
diff --git a/Documentation/devicetree/bindings/iio/proximity/nicera,d3323aa.yaml b/Documentation/devicetree/bindings/iio/proximity/nicera,d3323aa.yaml
new file mode 100644
index 000000000000..01c084de96c3
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/proximity/nicera,d3323aa.yaml
@@ -0,0 +1,60 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/proximity/nicera,d3323aa.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Nicera D3-323-AA PIR sensor
+
+maintainers:
+ - Waqar Hameed <waqar.hameed@axis.com>
+
+description: |
+ PIR sensor for human detection.
+ Datasheet: https://www.endrich.com/Datenbl%C3%A4tter/Sensoren/D3-323-AA_e.pdf
+
+properties:
+ compatible:
+ const: nicera,d3323aa
+
+ vdd-supply:
+ description:
+ Supply voltage (1.8 to 5.5 V).
+
+ vout-clk-gpios:
+ maxItems: 1
+ description:
+ 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:
+ maxItems: 1
+ description:
+ 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:
+ - compatible
+ - vdd-supply
+ - vout-clk-gpios
+ - data-gpios
+
+additionalProperties: false
+
+examples:
+ - |
+ proximity {
+ compatible = "nicera,d3323aa";
+ vdd-supply = <®ulator_3v3>;
+ vout-clk-gpios = <&gpio 78 0>;
+ data-gpios = <&gpio 76 0>;
+ };
+...
--
2.39.5
On Sun, Jun 15, 2025 at 12:14:02AM GMT, Waqar Hameed wrote: > +examples: > + - | > + proximity { > + compatible = "nicera,d3323aa"; > + vdd-supply = <®ulator_3v3>; > + vout-clk-gpios = <&gpio 78 0>; > + data-gpios = <&gpio 76 0>; Same comment as before. > + }; > +... > -- > 2.39.5 >
On Tue, Jun 17, 2025 at 11:06 +0200 Krzysztof Kozlowski <krzk@kernel.org> wrote: > On Sun, Jun 15, 2025 at 12:14:02AM GMT, Waqar Hameed wrote: >> +examples: >> + - | >> + proximity { >> + compatible = "nicera,d3323aa"; >> + vdd-supply = <®ulator_3v3>; >> + vout-clk-gpios = <&gpio 78 0>; >> + data-gpios = <&gpio 76 0>; > > Same comment as before. I removed the include header thinking that would be fine, since there were already a bunch of other examples just using `0` as the GPIO flag (without the include). I'll re-add the include header in next version then and use `GPIO_ACTIVE_HIGH` on both `-gpios`.
© 2016 - 2025 Red Hat, Inc.