Path: blob/master/Documentation/devicetree/bindings/iio/proximity/semtech,sx9360.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/semtech,sx9360.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Semtech's SX9360 capacitive proximity sensor78maintainers:9- Gwendal Grignou <gwendal@chromium.org>10- Daniel Campello <campello@chromium.org>1112description: |13Semtech's SX9360 proximity sensor.1415properties:16compatible:17const: semtech,sx93601819reg: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:29description: Main power supply3031svdd-supply:32description: Host interface power supply3334"#io-channel-cells":35const: 13637semtech,resolution:38$ref: /schemas/types.yaml#/definitions/uint3239enum: [8, 16, 32, 64, 128, 256, 512, 1024]40description:41Capacitance measurement resolution. For both phases, "reference" and42"measurement". Higher the number, higher the resolution.43default: 1284445semtech,proxraw-strength:46$ref: /schemas/types.yaml#/definitions/uint3247minimum: 048maximum: 749default: 150description:51PROXRAW filter strength for both phases. A value of 0 represents off,52and other values represent 1-1/2^N.5354semtech,avg-pos-strength:55$ref: /schemas/types.yaml#/definitions/uint3256enum: [0, 16, 64, 128, 256, 512, 1024, 4294967295]57default: 1658description: |59Average positive filter strength. A value of 0 represents off and60UINT_MAX (4294967295) represents infinite. Other values61represent 1-1/N.6263semtech,input-precharge-resistor-ohms:64default: 065multipleOf: 200066minimum: 067maximum: 3000068description:69Pre-charge input resistance in Ohm.7071required:72- compatible73- reg74- "#io-channel-cells"7576additionalProperties: false7778examples:79- |80#include <dt-bindings/interrupt-controller/irq.h>81i2c {82#address-cells = <1>;83#size-cells = <0>;84proximity@28 {85compatible = "semtech,sx9360";86reg = <0x28>;87interrupt-parent = <&pio>;88interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;89vdd-supply = <&pp3300_a>;90svdd-supply = <&pp1800_prox>;91#io-channel-cells = <1>;92semtech,resolution = <256>;93semtech,proxraw-strength = <2>;94semtech,avg-pos-strength = <64>;95semtech,input-precharge-resistor-ohms = <4000>;96};97};9899100