xref: /freebsd/sys/contrib/device-tree/Bindings/iio/proximity/awinic,aw96103.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*b2d2a78aSEmmanuel Vadot%YAML 1.2
3*b2d2a78aSEmmanuel Vadot---
4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/proximity/awinic,aw96103.yaml#
5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b2d2a78aSEmmanuel Vadot
7*b2d2a78aSEmmanuel Vadottitle: Awinic's AW96103 capacitive proximity sensor and similar
8*b2d2a78aSEmmanuel Vadot
9*b2d2a78aSEmmanuel Vadotmaintainers:
10*b2d2a78aSEmmanuel Vadot  - Wang Shuaijie <wangshuaijie@awinic.com>
11*b2d2a78aSEmmanuel Vadot
12*b2d2a78aSEmmanuel Vadotdescription: |
13*b2d2a78aSEmmanuel Vadot  Awinic's AW96103/AW96105 proximity sensor.
14*b2d2a78aSEmmanuel Vadot  The specific absorption rate (SAR) is a metric that measures
15*b2d2a78aSEmmanuel Vadot  the degree of absorption of electromagnetic radiation emitted by
16*b2d2a78aSEmmanuel Vadot  wireless devices, such as mobile phones and tablets, by human tissue.
17*b2d2a78aSEmmanuel Vadot  In mobile phone applications, the proximity sensor is primarily
18*b2d2a78aSEmmanuel Vadot  used to detect the proximity of the human body to the phone. When the
19*b2d2a78aSEmmanuel Vadot  phone approaches the human body, it will actively reduce the transmit
20*b2d2a78aSEmmanuel Vadot  power of the antenna to keep the SAR within a safe range. Therefore,
21*b2d2a78aSEmmanuel Vadot  we also refer to the proximity sensor as a SAR sensor.
22*b2d2a78aSEmmanuel Vadot
23*b2d2a78aSEmmanuel Vadotproperties:
24*b2d2a78aSEmmanuel Vadot  compatible:
25*b2d2a78aSEmmanuel Vadot    enum:
26*b2d2a78aSEmmanuel Vadot      - awinic,aw96103
27*b2d2a78aSEmmanuel Vadot      - awinic,aw96105
28*b2d2a78aSEmmanuel Vadot
29*b2d2a78aSEmmanuel Vadot  reg:
30*b2d2a78aSEmmanuel Vadot    maxItems: 1
31*b2d2a78aSEmmanuel Vadot
32*b2d2a78aSEmmanuel Vadot  interrupts:
33*b2d2a78aSEmmanuel Vadot    description:
34*b2d2a78aSEmmanuel Vadot      Generated by the device to announce that a close/far
35*b2d2a78aSEmmanuel Vadot      proximity event has happened.
36*b2d2a78aSEmmanuel Vadot    maxItems: 1
37*b2d2a78aSEmmanuel Vadot
38*b2d2a78aSEmmanuel Vadot  vcc-supply: true
39*b2d2a78aSEmmanuel Vadot
40*b2d2a78aSEmmanuel Vadotrequired:
41*b2d2a78aSEmmanuel Vadot  - compatible
42*b2d2a78aSEmmanuel Vadot  - reg
43*b2d2a78aSEmmanuel Vadot  - interrupts
44*b2d2a78aSEmmanuel Vadot  - vcc-supply
45*b2d2a78aSEmmanuel Vadot
46*b2d2a78aSEmmanuel VadotadditionalProperties: false
47*b2d2a78aSEmmanuel Vadot
48*b2d2a78aSEmmanuel Vadotexamples:
49*b2d2a78aSEmmanuel Vadot  - |
50*b2d2a78aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
51*b2d2a78aSEmmanuel Vadot    i2c {
52*b2d2a78aSEmmanuel Vadot        #address-cells = <1>;
53*b2d2a78aSEmmanuel Vadot        #size-cells = <0>;
54*b2d2a78aSEmmanuel Vadot        proximity@12 {
55*b2d2a78aSEmmanuel Vadot            compatible = "awinic,aw96103";
56*b2d2a78aSEmmanuel Vadot            reg = <0x12>;
57*b2d2a78aSEmmanuel Vadot            interrupt-parent = <&gpio>;
58*b2d2a78aSEmmanuel Vadot            interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
59*b2d2a78aSEmmanuel Vadot            vcc-supply = <&pp1800_prox>;
60*b2d2a78aSEmmanuel Vadot        };
61*b2d2a78aSEmmanuel Vadot    };
62