16be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 26be33864SEmmanuel Vadot%YAML 1.2 36be33864SEmmanuel Vadot--- 46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/proximity/semtech,sx9310.yaml# 56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 66be33864SEmmanuel Vadot 76be33864SEmmanuel Vadottitle: Semtech's SX9310 capacitive proximity sensor 86be33864SEmmanuel Vadot 96be33864SEmmanuel Vadotmaintainers: 106be33864SEmmanuel Vadot - Daniel Campello <campello@chromium.org> 116be33864SEmmanuel Vadot 126be33864SEmmanuel Vadotdescription: | 136be33864SEmmanuel Vadot Semtech's SX9310/SX9311 capacitive proximity/button solution. 146be33864SEmmanuel Vadot 156be33864SEmmanuel Vadot Specifications about the devices can be found at: 166be33864SEmmanuel Vadot https://www.semtech.com/products/smart-sensing/sar-sensors/sx9310 176be33864SEmmanuel Vadot 186be33864SEmmanuel Vadotproperties: 196be33864SEmmanuel Vadot compatible: 206be33864SEmmanuel Vadot enum: 216be33864SEmmanuel Vadot - semtech,sx9310 226be33864SEmmanuel Vadot - semtech,sx9311 236be33864SEmmanuel Vadot 246be33864SEmmanuel Vadot reg: 256be33864SEmmanuel Vadot maxItems: 1 266be33864SEmmanuel Vadot 276be33864SEmmanuel Vadot interrupts: 286be33864SEmmanuel Vadot description: 296be33864SEmmanuel Vadot The sole interrupt generated by the device used to announce the 306be33864SEmmanuel Vadot preceding reading request has finished and that data is 316be33864SEmmanuel Vadot available or that a close/far proximity event has happened. 326be33864SEmmanuel Vadot maxItems: 1 336be33864SEmmanuel Vadot 346be33864SEmmanuel Vadot vdd-supply: 356be33864SEmmanuel Vadot description: Main power supply 366be33864SEmmanuel Vadot 376be33864SEmmanuel Vadot svdd-supply: 386be33864SEmmanuel Vadot description: Host interface power supply 396be33864SEmmanuel Vadot 406be33864SEmmanuel Vadot "#io-channel-cells": 416be33864SEmmanuel Vadot const: 1 426be33864SEmmanuel Vadot 43*5def4c47SEmmanuel Vadot semtech,cs0-ground: 44*5def4c47SEmmanuel Vadot description: Indicates the CS0 sensor is connected to ground. 45*5def4c47SEmmanuel Vadot type: boolean 46*5def4c47SEmmanuel Vadot 47*5def4c47SEmmanuel Vadot semtech,combined-sensors: 48*5def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32-array 49*5def4c47SEmmanuel Vadot description: | 50*5def4c47SEmmanuel Vadot List of which sensors are combined and represented by CS3. 51*5def4c47SEmmanuel Vadot Possible values are - 52*5def4c47SEmmanuel Vadot 3 - CS3 (internal) 53*5def4c47SEmmanuel Vadot 0 1 - CS0 + CS1 54*5def4c47SEmmanuel Vadot 1 2 - CS1 + CS2 (default) 55*5def4c47SEmmanuel Vadot 0 1 2 3 - CS0 + CS1 + CS2 + CS3 56*5def4c47SEmmanuel Vadot items: 57*5def4c47SEmmanuel Vadot enum: [ 0, 1, 2, 3 ] 58*5def4c47SEmmanuel Vadot minItems: 1 59*5def4c47SEmmanuel Vadot maxItems: 4 60*5def4c47SEmmanuel Vadot 61*5def4c47SEmmanuel Vadot semtech,resolution: 62*5def4c47SEmmanuel Vadot description: 63*5def4c47SEmmanuel Vadot Capacitance measure resolution. Refer to datasheet for more details. 64*5def4c47SEmmanuel Vadot enum: 65*5def4c47SEmmanuel Vadot - coarsest 66*5def4c47SEmmanuel Vadot - very-coarse 67*5def4c47SEmmanuel Vadot - coarse 68*5def4c47SEmmanuel Vadot - medium-coarse 69*5def4c47SEmmanuel Vadot - medium 70*5def4c47SEmmanuel Vadot - fine 71*5def4c47SEmmanuel Vadot - very-fine 72*5def4c47SEmmanuel Vadot - finest 73*5def4c47SEmmanuel Vadot 74*5def4c47SEmmanuel Vadot semtech,startup-sensor: 75*5def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 76*5def4c47SEmmanuel Vadot enum: [0, 1, 2, 3] 77*5def4c47SEmmanuel Vadot default: 0 78*5def4c47SEmmanuel Vadot description: 79*5def4c47SEmmanuel Vadot Sensor used for start-up proximity detection. The combined 80*5def4c47SEmmanuel Vadot sensor is represented by the value 3. This is used for initial 81*5def4c47SEmmanuel Vadot compensation. 82*5def4c47SEmmanuel Vadot 83*5def4c47SEmmanuel Vadot semtech,proxraw-strength: 84*5def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 85*5def4c47SEmmanuel Vadot enum: [0, 2, 4, 8] 86*5def4c47SEmmanuel Vadot default: 2 87*5def4c47SEmmanuel Vadot description: 88*5def4c47SEmmanuel Vadot PROXRAW filter strength. A value of 0 represents off, and other values 89*5def4c47SEmmanuel Vadot represent 1-1/N. 90*5def4c47SEmmanuel Vadot 91*5def4c47SEmmanuel Vadot semtech,avg-pos-strength: 92*5def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 93*5def4c47SEmmanuel Vadot enum: [0, 16, 64, 128, 256, 512, 1024, 4294967295] 94*5def4c47SEmmanuel Vadot default: 16 95*5def4c47SEmmanuel Vadot description: 96*5def4c47SEmmanuel Vadot Average positive filter strength. A value of 0 represents off and 97*5def4c47SEmmanuel Vadot UINT_MAX (4294967295) represents infinite. Other values 98*5def4c47SEmmanuel Vadot represent 1-1/N. 99*5def4c47SEmmanuel Vadot 1006be33864SEmmanuel Vadotrequired: 1016be33864SEmmanuel Vadot - compatible 1026be33864SEmmanuel Vadot - reg 1036be33864SEmmanuel Vadot - "#io-channel-cells" 1046be33864SEmmanuel Vadot 1056be33864SEmmanuel VadotadditionalProperties: false 1066be33864SEmmanuel Vadot 1076be33864SEmmanuel Vadotexamples: 1086be33864SEmmanuel Vadot - | 1096be33864SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 1106be33864SEmmanuel Vadot i2c { 1116be33864SEmmanuel Vadot #address-cells = <1>; 1126be33864SEmmanuel Vadot #size-cells = <0>; 1136be33864SEmmanuel Vadot proximity@28 { 1146be33864SEmmanuel Vadot compatible = "semtech,sx9310"; 1156be33864SEmmanuel Vadot reg = <0x28>; 1166be33864SEmmanuel Vadot interrupt-parent = <&pio>; 1176be33864SEmmanuel Vadot interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>; 1186be33864SEmmanuel Vadot vdd-supply = <&pp3300_a>; 1196be33864SEmmanuel Vadot svdd-supply = <&pp1800_prox>; 1206be33864SEmmanuel Vadot #io-channel-cells = <1>; 121*5def4c47SEmmanuel Vadot semtech,cs0-ground; 122*5def4c47SEmmanuel Vadot semtech,combined-sensors = <1 2 3>; 123*5def4c47SEmmanuel Vadot semtech,resolution = "fine"; 124*5def4c47SEmmanuel Vadot semtech,startup-sensor = <1>; 125*5def4c47SEmmanuel Vadot semtech,proxraw-strength = <2>; 126*5def4c47SEmmanuel Vadot semtech,avg-pos-strength = <64>; 1276be33864SEmmanuel Vadot }; 1286be33864SEmmanuel Vadot }; 129