Path: blob/master/Documentation/devicetree/bindings/iio/proximity/awinic,aw96103.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/proximity/awinic,aw96103.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Awinic's AW96103 capacitive proximity sensor and similar78maintainers:9- Wang Shuaijie <wangshuaijie@awinic.com>1011description: |12Awinic's AW96103/AW96105 proximity sensor.13The specific absorption rate (SAR) is a metric that measures14the degree of absorption of electromagnetic radiation emitted by15wireless devices, such as mobile phones and tablets, by human tissue.16In mobile phone applications, the proximity sensor is primarily17used to detect the proximity of the human body to the phone. When the18phone approaches the human body, it will actively reduce the transmit19power of the antenna to keep the SAR within a safe range. Therefore,20we also refer to the proximity sensor as a SAR sensor.2122properties:23compatible:24enum:25- awinic,aw9610326- awinic,aw961052728reg:29maxItems: 13031interrupts:32description:33Generated by the device to announce that a close/far34proximity event has happened.35maxItems: 13637vcc-supply: true3839required:40- compatible41- reg42- interrupts43- vcc-supply4445additionalProperties: false4647examples:48- |49#include <dt-bindings/interrupt-controller/irq.h>50i2c {51#address-cells = <1>;52#size-cells = <0>;53proximity@12 {54compatible = "awinic,aw96103";55reg = <0x12>;56interrupt-parent = <&gpio>;57interrupts = <23 IRQ_TYPE_EDGE_FALLING>;58vcc-supply = <&pp1800_prox>;59};60};616263