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