Path: blob/master/Documentation/devicetree/bindings/iio/proximity/tyhx,hx9023s.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/tyhx,hx9023s.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: TYHX HX9023S capacitive proximity sensor78maintainers:9- Yasin Lee <yasin.lee.x@gmail.com>1011description: |12TYHX HX9023S proximity sensor. Datasheet can be found here:13http://www.tianyihexin.com/ueditor/php/upload/file/20240614/1718336303992081.pdf1415properties:16compatible:17const: tyhx,hx9023s1819reg:20maxItems: 12122interrupts:23description:24Generated by device to announce preceding read request has finished25and data is available or that a close/far proximity event has happened.26maxItems: 12728vdd-supply: true2930"#address-cells":31const: 13233"#size-cells":34const: 03536patternProperties:37"^channel@[0-4]$":38$ref: /schemas/iio/adc/adc.yaml39type: object40unevaluatedProperties: false4142properties:43reg:44minimum: 045maximum: 446description: The channel number.4748required:49- compatible50- reg51- vdd-supply5253unevaluatedProperties: false5455examples:56- |57#include <dt-bindings/interrupt-controller/irq.h>58i2c {59#address-cells = <1>;60#size-cells = <0>;61proximity@2a {62compatible = "tyhx,hx9023s";63reg = <0x2a>;64interrupt-parent = <&pio>;65interrupts = <16 IRQ_TYPE_EDGE_FALLING>;66vdd-supply = <&pp1800_prox>;6768#address-cells = <1>;69#size-cells = <0>;7071channel@0 {72reg = <0>;73single-channel = <0>;74};75channel@1 {76reg = <1>;77single-channel = <1>;78};79channel@2 {80reg = <2>;81single-channel = <2>;82};83channel@3 {84reg = <3>;85diff-channels = <1 0>;86};87channel@4 {88reg = <4>;89diff-channels = <2 0>;90};91};92};939495