Path: blob/master/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml
54040 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,sx9324.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Semtech's SX9324 capacitive proximity sensor78maintainers:9- Gwendal Grignou <gwendal@chromium.org>10- Daniel Campello <campello@chromium.org>1112description: |13Semtech's SX9324 proximity sensor.1415allOf:16- $ref: /schemas/iio/iio.yaml#1718properties:19compatible:20const: semtech,sx93242122reg:23maxItems: 12425interrupts:26description:27Generated by device to announce preceding read request has finished28and data is available or that a close/far proximity event has happened.29maxItems: 13031vdd-supply:32description: Main power supply3334svdd-supply:35description: Host interface power supply3637"#io-channel-cells":38const: 13940semtech,ph0-pin:41$ref: /schemas/types.yaml#/definitions/uint32-array42description: |43Array of 3 entries. Index represent the id of the CS pin.44Value indicates how each CS pin is used during phase 0.45Each of the 3 pins have the following value -460 : unused (high impedance)471 : measured input482 : dynamic shield493 : grounded.50For instance, CS0 measured, CS1 shield and CS2 ground is [1, 2, 3]51items:52enum: [ 0, 1, 2, 3 ]53minItems: 354maxItems: 35556semtech,ph1-pin:57$ref: /schemas/types.yaml#/definitions/uint32-array58description: Same as ph0-pin for phase 1.59items:60enum: [ 0, 1, 2, 3 ]61minItems: 362maxItems: 36364semtech,ph2-pin:65$ref: /schemas/types.yaml#/definitions/uint32-array66description: Same as ph0-pin for phase 2.67items:68enum: [ 0, 1, 2, 3 ]69minItems: 370maxItems: 37172semtech,ph3-pin:73$ref: /schemas/types.yaml#/definitions/uint32-array74description: Same as ph0-pin for phase 3.75items:76enum: [ 0, 1, 2, 3 ]77minItems: 378maxItems: 37980semtech,ph01-resolution:81$ref: /schemas/types.yaml#/definitions/uint3282enum: [8, 16, 32, 64, 128, 256, 512, 1024]83description:84Capacitance measurement resolution. For phase 0 and 1.85Higher the number, higher the resolution.86default: 1288788semtech,ph23-resolution:89$ref: /schemas/types.yaml#/definitions/uint3290enum: [8, 16, 32, 64, 128, 256, 512, 1024]91description:92Capacitance measurement resolution. For phase 2 and 393default: 1289495semtech,startup-sensor:96$ref: /schemas/types.yaml#/definitions/uint3297enum: [0, 1, 2, 3]98default: 099description: |100Phase used for start-up proximity detection.101It is used when we enable a phase to remove static offset and measure102only capacitance changes introduced by the user.103104semtech,ph01-proxraw-strength:105$ref: /schemas/types.yaml#/definitions/uint32106minimum: 0107maximum: 7108default: 1109description:110PROXRAW filter strength for phase 0 and 1. A value of 0 represents off,111and other values represent 1-1/2^N.112113semtech,ph23-proxraw-strength:114$ref: /schemas/types.yaml#/definitions/uint32115minimum: 0116maximum: 7117default: 1118description:119Same as proxraw-strength01, for phase 2 and 3.120121semtech,avg-pos-strength:122$ref: /schemas/types.yaml#/definitions/uint32123enum: [0, 16, 64, 128, 256, 512, 1024, 4294967295]124default: 16125description: |126Average positive filter strength. A value of 0 represents off and127UINT_MAX (4294967295) represents infinite. Other values128represent 1-1/N.129130semtech,cs-idle-sleep:131description:132State of CS pins during sleep mode and idle time.133enum:134- hi-z135- gnd136- vdd137138semtech,int-comp-resistor:139description:140Internal resistor setting for compensation.141enum:142- lowest143- low144- high145- highest146147semtech,input-precharge-resistor-ohms:148default: 4000149multipleOf: 2000150minimum: 0151maximum: 30000152description:153Pre-charge input resistance in Ohm.154155semtech,input-analog-gain:156$ref: /schemas/types.yaml#/definitions/uint32157minimum: 0158maximum: 3159description: |160Defines the input antenna analog gain1610: x1.2471621: x1 (default)1632: x0.7681643: x0.552165166required:167- compatible168- reg169- "#io-channel-cells"170171unevaluatedProperties: false172173examples:174- |175#include <dt-bindings/interrupt-controller/irq.h>176i2c {177#address-cells = <1>;178#size-cells = <0>;179proximity@28 {180compatible = "semtech,sx9324";181reg = <0x28>;182interrupt-parent = <&pio>;183interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;184vdd-supply = <&pp3300_a>;185svdd-supply = <&pp1800_prox>;186#io-channel-cells = <1>;187semtech,ph0-pin = <1 2 3>;188semtech,ph1-pin = <3 2 1>;189semtech,ph2-pin = <1 2 3>;190semtech,ph3-pin = <3 2 1>;191semtech,ph01-resolution = <256>;192semtech,ph23-resolution = <256>;193semtech,startup-sensor = <1>;194semtech,ph01-proxraw-strength = <2>;195semtech,ph23-proxraw-strength = <2>;196semtech,avg-pos-strength = <64>;197semtech,int-comp-resistor = "lowest";198semtech,input-precharge-resistor-ohms = <2000>;199semtech,cs-idle-sleep = "gnd";200};201};202203204