Path: blob/master/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.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,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: 3798081semtech,ph01-resolution:82$ref: /schemas/types.yaml#/definitions/uint3283enum: [8, 16, 32, 64, 128, 256, 512, 1024]84description:85Capacitance measurement resolution. For phase 0 and 1.86Higher the number, higher the resolution.87default: 1288889semtech,ph23-resolution:90$ref: /schemas/types.yaml#/definitions/uint3291enum: [8, 16, 32, 64, 128, 256, 512, 1024]92description:93Capacitance measurement resolution. For phase 2 and 394default: 1289596semtech,startup-sensor:97$ref: /schemas/types.yaml#/definitions/uint3298enum: [0, 1, 2, 3]99default: 0100description: |101Phase used for start-up proximity detection.102It is used when we enable a phase to remove static offset and measure103only capacitance changes introduced by the user.104105semtech,ph01-proxraw-strength:106$ref: /schemas/types.yaml#/definitions/uint32107minimum: 0108maximum: 7109default: 1110description:111PROXRAW filter strength for phase 0 and 1. A value of 0 represents off,112and other values represent 1-1/2^N.113114semtech,ph23-proxraw-strength:115$ref: /schemas/types.yaml#/definitions/uint32116minimum: 0117maximum: 7118default: 1119description:120Same as proxraw-strength01, for phase 2 and 3.121122semtech,avg-pos-strength:123$ref: /schemas/types.yaml#/definitions/uint32124enum: [0, 16, 64, 128, 256, 512, 1024, 4294967295]125default: 16126description: |127Average positive filter strength. A value of 0 represents off and128UINT_MAX (4294967295) represents infinite. Other values129represent 1-1/N.130131semtech,cs-idle-sleep:132description:133State of CS pins during sleep mode and idle time.134enum:135- hi-z136- gnd137- vdd138139semtech,int-comp-resistor:140description:141Internal resistor setting for compensation.142enum:143- lowest144- low145- high146- highest147148semtech,input-precharge-resistor-ohms:149default: 4000150multipleOf: 2000151minimum: 0152maximum: 30000153description:154Pre-charge input resistance in Ohm.155156semtech,input-analog-gain:157$ref: /schemas/types.yaml#/definitions/uint32158minimum: 0159maximum: 3160description: |161Defines the input antenna analog gain1620: x1.2471631: x1 (default)1642: x0.7681653: x0.552166167required:168- compatible169- reg170- "#io-channel-cells"171172unevaluatedProperties: false173174examples:175- |176#include <dt-bindings/interrupt-controller/irq.h>177i2c {178#address-cells = <1>;179#size-cells = <0>;180proximity@28 {181compatible = "semtech,sx9324";182reg = <0x28>;183interrupt-parent = <&pio>;184interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;185vdd-supply = <&pp3300_a>;186svdd-supply = <&pp1800_prox>;187#io-channel-cells = <1>;188semtech,ph0-pin = <1 2 3>;189semtech,ph1-pin = <3 2 1>;190semtech,ph2-pin = <1 2 3>;191semtech,ph3-pin = <3 2 1>;192semtech,ph01-resolution = <256>;193semtech,ph23-resolution = <256>;194semtech,startup-sensor = <1>;195semtech,ph01-proxraw-strength = <2>;196semtech,ph23-proxraw-strength = <2>;197semtech,avg-pos-strength = <64>;198semtech,int-comp-resistor = "lowest";199semtech,input-precharge-resistor-ohms = <2000>;200semtech,cs-idle-sleep = "gnd";201};202};203204205