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