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
19 - $ref: /schemas/iio/iio.yaml#
32 The sole interrupt generated by the device used to announce the
33 preceding reading request has finished and that data is
34 available or that a close/far proximity event has happened.
38 description: Main power supply
41 description: Host interface power supply
47 description: Indicates the CS0 sensor is connected to ground.
50 semtech,combined-sensors:
51 $ref: /schemas/types.yaml#/definitions/uint32-array
53 List of which sensors are combined and represented by CS3.
57 1 2 - CS1 + CS2 (default)
58 0 1 2 3 - CS0 + CS1 + CS2 + CS3
66 Capacitance measure resolution. Refer to datasheet for more details.
77 semtech,startup-sensor:
78 $ref: /schemas/types.yaml#/definitions/uint32
82 Sensor used for start-up proximity detection. The combined
83 sensor is represented by the value 3. This is used for initial
86 semtech,proxraw-strength:
87 $ref: /schemas/types.yaml#/definitions/uint32
91 PROXRAW filter strength. A value of 0 represents off, and other values
94 semtech,avg-pos-strength:
95 $ref: /schemas/types.yaml#/definitions/uint32
96 enum: [0, 16, 64, 128, 256, 512, 1024, 4294967295]
99 Average positive filter strength. A value of 0 represents off and
100 UINT_MAX (4294967295) represents infinite. Other values
106 - "#io-channel-cells"
108 unevaluatedProperties: false
112 #include <dt-bindings/interrupt-controller/irq.h>
114 #address-cells = <1>;
117 compatible = "semtech,sx9310";
119 interrupt-parent = <&pio>;
120 interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;
121 vdd-supply = <&pp3300_a>;
122 svdd-supply = <&pp1800_prox>;
123 #io-channel-cells = <1>;
125 semtech,combined-sensors = <1 2 3>;
126 semtech,resolution = "fine";
127 semtech,startup-sensor = <1>;
128 semtech,proxraw-strength = <2>;
129 semtech,avg-pos-strength = <64>;