xref: /linux/Documentation/devicetree/bindings/iio/proximity/murata,irsd200.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
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/murata,irsd200.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Murata IRS-D200 PIR sensor
8
9maintainers:
10  - Waqar Hameed <waqar.hameed@axis.com>
11
12description:
13  PIR sensor for human detection.
14
15properties:
16  compatible:
17    const: murata,irsd200
18
19  reg:
20    items:
21      - enum:
22          - 0x48
23          - 0x49
24        description: |
25          When the AD pin is connected to GND, the slave address is 0x48.
26          When the AD pin is connected to VDD, the slave address is 0x49.
27
28  interrupts:
29    maxItems: 1
30    description:
31      Type should be IRQ_TYPE_EDGE_RISING.
32
33  vdd-supply:
34    description:
35      3.3 V supply voltage.
36
37required:
38  - compatible
39  - reg
40  - interrupts
41  - vdd-supply
42
43additionalProperties: false
44
45examples:
46  - |
47    #include <dt-bindings/interrupt-controller/irq.h>
48
49    i2c {
50        #address-cells = <1>;
51        #size-cells = <0>;
52
53        proximity@48 {
54            compatible = "murata,irsd200";
55            reg = <0x48>;
56            interrupts = <24 IRQ_TYPE_EDGE_RISING>;
57            vdd-supply = <&regulator_3v3>;
58        };
59    };
60...
61