1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/proximity/semtech,sx9310.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Semtech's SX9310 capacitive proximity sensor
10 - Daniel Campello <campello@chromium.org>
13 Semtech's SX9310/SX9311 capacitive proximity/button solution.
15 Specifications about the devices can be found at:
16 https://www.semtech.com/products/smart-sensing/sar-sensors/sx9310
29 The sole interrupt generated by the device used to announce the
30 preceding reading request has finished and that data is
31 available or that a close/far proximity event has happened.
35 description: Main power supply
38 description: Host interface power supply
44 description: Indicates the CS0 sensor is connected to ground.
47 semtech,combined-sensors:
48 $ref: /schemas/types.yaml#/definitions/uint32-array
50 List of which sensors are combined and represented by CS3.
54 1 2 - CS1 + CS2 (default)
55 0 1 2 3 - CS0 + CS1 + CS2 + CS3
63 Capacitance measure resolution. Refer to datasheet for more details.
74 semtech,startup-sensor:
75 $ref: /schemas/types.yaml#/definitions/uint32
79 Sensor used for start-up proximity detection. The combined
80 sensor is represented by the value 3. This is used for initial
83 semtech,proxraw-strength:
84 $ref: /schemas/types.yaml#/definitions/uint32
88 PROXRAW filter strength. A value of 0 represents off, and other values
91 semtech,avg-pos-strength:
92 $ref: /schemas/types.yaml#/definitions/uint32
93 enum: [0, 16, 64, 128, 256, 512, 1024, 4294967295]
96 Average positive filter strength. A value of 0 represents off and
97 UINT_MAX (4294967295) represents infinite. Other values
103 - "#io-channel-cells"
105 additionalProperties: false
109 #include <dt-bindings/interrupt-controller/irq.h>
111 #address-cells = <1>;
114 compatible = "semtech,sx9310";
116 interrupt-parent = <&pio>;
117 interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;
118 vdd-supply = <&pp3300_a>;
119 svdd-supply = <&pp1800_prox>;
120 #io-channel-cells = <1>;
122 semtech,combined-sensors = <1 2 3>;
123 semtech,resolution = "fine";
124 semtech,startup-sensor = <1>;
125 semtech,proxraw-strength = <2>;
126 semtech,avg-pos-strength = <64>;