From: Yasin Lee <yasin.lee.x@xxxxxxxxx> A capacitive proximity sensor with 5 channels Signed-off-by: Yasin Lee <yasin.lee.x@xxxxxxxxx> --- .../bindings/iio/proximity/tyhx,hx9031as.yaml | 60 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + 2 files changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/proximity/tyhx,hx9031as.yaml diff --git a/Documentation/devicetree/bindings/iio/proximity/tyhx,hx9031as.yaml b/Documentation/devicetree/bindings/iio/proximity/tyhx,hx9031as.yaml new file mode 100644 index 000000000000..62a71c0c4d04 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/proximity/tyhx,hx9031as.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/proximity/tyhx,hx9031as.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Tyhx's HX9031AS capacitive proximity sensor + +maintainers: + - Yasin Lee <yasin.lee.x@xxxxxxxxx> + +description: | + Tyhx's HX9031AS proximity sensor. + +allOf: + - $ref: /schemas/iio/iio.yaml# + +properties: + compatible: + const: tyhx,hx9031as + + reg: + maxItems: 1 + + interrupts: + description: + Generated by device to announce preceding read request has finished + and data is available or that a close/far proximity event has happened. + maxItems: 1 + + vdd-supply: + description: Main power supply + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + i2c { + #address-cells = <1>; + #size-cells = <0>; + hx9031as@2a { + compatible = "tyhx,hx9031as"; + reg = <0x2a>; + interrupt-parent = <&pio>; + interrupts = <16 IRQ_TYPE_EDGE_FALLING 16 0>; + vdd-supply = <&pp3300_a>; + status = "okay"; + }; + }; + + + + + + diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index b97d298b3eb6..e2224eea9ab9 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1507,6 +1507,8 @@ patternProperties: description: Turing Machines, Inc. "^tyan,.*": description: Tyan Computer Corporation + "^tyhx,.*": + description: NanjingTianyihexin Electronics Ltd. "^u-blox,.*": description: u-blox "^u-boot,.*": -- 2.25.1