From patchwork Fri Jul 26 06:13:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wangshuaijie@awinic.com X-Patchwork-Id: 13742388 Received: from out28-1.mail.aliyun.com (out28-1.mail.aliyun.com [115.124.28.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E37DD174ED0; Fri, 26 Jul 2024 06:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.28.1 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721974416; cv=none; b=QYZR3bTRU7Km3AgRA6K77Op5YK40lJUNA/92LbwKlTEG0kRFzedORFfAJ2NMXlffVcibGBeooMwecHgvxRWMFpGs2mfyBbYMLH/yln7avXq0arh6T+JgTJNCLYGUmsAEYnq6fFxtY9Dp/lYPkrbFUMQzKy7wLfaKDVOojqebmRE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721974416; c=relaxed/simple; bh=kOWRqMIbv+HDFq9lWjwDYpjiiev1r4QAJ6bAKAScfbg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gsXynzN2GtKCVIVfFwfRI2wTErHxewxkwoWItwa8EQrOvSrvebVTpHaEgR7rHRLCltSQEwj8ypng7t79MmhFuvthTT+eXkK477hU+hfaM/4cyNzsadC2jKLasl5FCI8vG4mKazMVAqcoTJtSw758fus5DWIrOw3WQpPmlbSju7E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=awinic.com; spf=pass smtp.mailfrom=awinic.com; arc=none smtp.client-ip=115.124.28.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=awinic.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=awinic.com X-Alimail-AntiSpam: AC=CONTINUE;BC=0.0790877|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.235398-0.000975642-0.763626;FP=7422250752346494202|6|3|9|0|-1|-1|-1;HT=maildocker-contentspam033037088118;MF=wangshuaijie@awinic.com;NM=1;PH=DS;RN=12;RT=12;SR=0;TI=SMTPD_---.Ya9xJxC_1721974401; Received: from awinic..(mailfrom:wangshuaijie@awinic.com fp:SMTPD_---.Ya9xJxC_1721974401) by smtp.aliyun-inc.com; Fri, 26 Jul 2024 14:13:23 +0800 From: wangshuaijie@awinic.com To: jic23@kernel.org, lars@metafoo.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, waqar.hameed@axis.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: wangshuaijie@awinic.com, liweilei@awinic.com, kangjiajun@awinic.com Subject: [PATCH V5 1/2] dt-bindings: iio: aw9610x: Add bindings for aw9610x sensor Date: Fri, 26 Jul 2024 06:13:11 +0000 Message-ID: <20240726061312.1371450-2-wangshuaijie@awinic.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240726061312.1371450-1-wangshuaijie@awinic.com> References: <20240726061312.1371450-1-wangshuaijie@awinic.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: shuaijie wang Add device tree bindings for aw9610x proximity sensor. Signed-off-by: shuaijie wang Reviewed-by: Krzysztof Kozlowski --- .../iio/proximity/awinic,aw9610x.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/proximity/awinic,aw9610x.yaml diff --git a/Documentation/devicetree/bindings/iio/proximity/awinic,aw9610x.yaml b/Documentation/devicetree/bindings/iio/proximity/awinic,aw9610x.yaml new file mode 100644 index 000000000000..631b1fe5a900 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/proximity/awinic,aw9610x.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/proximity/awinic,aw9610x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Awinic's AW9610X capacitive proximity sensor + +maintainers: + - Wang Shuaijie + +description: | + Awinic's AW9610X proximity sensor. + The specific absorption rate (SAR) is a metric that measures + the degree of absorption of electromagnetic radiation emitted by + wireless devices, such as mobile phones and tablets, by human tissue. + In mobile phone applications, the proximity sensor is primarily + used to detect the proximity of the human body to the phone. When the + phone approaches the human body, it will actively reduce the transmit + power of the antenna to keep the SAR within a safe range. Therefore, + we also refer to the proximity sensor as a SAR sensor. + +properties: + compatible: + enum: + - awinic,aw96103 + - awinic,aw96105 + + reg: + maxItems: 1 + + interrupts: + description: + Generated by the device to announce that a close/far + proximity event has happened. + maxItems: 1 + + vcc-supply: + description: + Optional regulator for chip, 1.7V-3.6V. + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + proximity@12 { + compatible = "awinic,aw96103"; + reg = <0x12>; + interrupt-parent = <&gpio>; + interrupts = <23 IRQ_TYPE_EDGE_FALLING>; + }; + };