Path: blob/master/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.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,sx9310.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Semtech's SX9310 capacitive proximity sensor78maintainers:9- Daniel Campello <campello@chromium.org>1011description: |12Semtech's SX9310/SX9311 capacitive proximity/button solution.1314Specifications about the devices can be found at:15https://www.semtech.com/products/smart-sensing/sar-sensors/sx93101617allOf:18- $ref: /schemas/iio/iio.yaml#1920properties:21compatible:22enum:23- semtech,sx931024- semtech,sx93112526reg:27maxItems: 12829interrupts:30description:31The sole interrupt generated by the device used to announce the32preceding reading request has finished and that data is33available or that a close/far proximity event has happened.34maxItems: 13536vdd-supply:37description: Main power supply3839svdd-supply:40description: Host interface power supply4142"#io-channel-cells":43const: 14445semtech,cs0-ground:46description: Indicates the CS0 sensor is connected to ground.47type: boolean4849semtech,combined-sensors:50$ref: /schemas/types.yaml#/definitions/uint32-array51description: |52List of which sensors are combined and represented by CS3.53Possible values are -543 - CS3 (internal)550 1 - CS0 + CS1561 2 - CS1 + CS2 (default)570 1 2 3 - CS0 + CS1 + CS2 + CS358items:59enum: [ 0, 1, 2, 3 ]60minItems: 161maxItems: 46263semtech,resolution:64description:65Capacitance measure resolution. Refer to datasheet for more details.66enum:67- coarsest68- very-coarse69- coarse70- medium-coarse71- medium72- fine73- very-fine74- finest7576semtech,startup-sensor:77$ref: /schemas/types.yaml#/definitions/uint3278enum: [0, 1, 2, 3]79default: 080description:81Sensor used for start-up proximity detection. The combined82sensor is represented by the value 3. This is used for initial83compensation.8485semtech,proxraw-strength:86$ref: /schemas/types.yaml#/definitions/uint3287enum: [0, 2, 4, 8]88default: 289description:90PROXRAW filter strength. A value of 0 represents off, and other values91represent 1-1/N.9293semtech,avg-pos-strength:94$ref: /schemas/types.yaml#/definitions/uint3295enum: [0, 16, 64, 128, 256, 512, 1024, 4294967295]96default: 1697description:98Average positive filter strength. A value of 0 represents off and99UINT_MAX (4294967295) represents infinite. Other values100represent 1-1/N.101102required:103- compatible104- reg105- "#io-channel-cells"106107unevaluatedProperties: false108109examples:110- |111#include <dt-bindings/interrupt-controller/irq.h>112i2c {113#address-cells = <1>;114#size-cells = <0>;115proximity@28 {116compatible = "semtech,sx9310";117reg = <0x28>;118interrupt-parent = <&pio>;119interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;120vdd-supply = <&pp3300_a>;121svdd-supply = <&pp1800_prox>;122#io-channel-cells = <1>;123semtech,cs0-ground;124semtech,combined-sensors = <1 2 3>;125semtech,resolution = "fine";126semtech,startup-sensor = <1>;127semtech,proxraw-strength = <2>;128semtech,avg-pos-strength = <64>;129};130};131132133