summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/iio/proximity/murata,irsd200.yaml
blob: 67f5389ece670e853471e1d0e4599194b6066062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/proximity/murata,irsd200.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Murata IRS-D200 PIR sensor

maintainers:
  - Waqar Hameed <waqar.hameed@axis.com>

description:
  PIR sensor for human detection.

properties:
  compatible:
    const: murata,irsd200

  reg:
    items:
      - enum:
          - 0x48
          - 0x49
        description: |
          When the AD pin is connected to GND, the slave address is 0x48.
          When the AD pin is connected to VDD, the slave address is 0x49.

  interrupts:
    maxItems: 1
    description:
      Type should be IRQ_TYPE_EDGE_RISING.

  vdd-supply:
    description:
      3.3 V supply voltage.

required:
  - compatible
  - reg
  - interrupts
  - vdd-supply

additionalProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>

    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        proximity@48 {
            compatible = "murata,irsd200";
            reg = <0x48>;
            interrupts = <24 IRQ_TYPE_EDGE_RISING>;
            vdd-supply = <&regulator_3v3>;
        };
    };
...