1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/proximity/semtech,sx9324.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Semtech's SX9324 capacitive proximity sensor
10 - Gwendal Grignou <gwendal@chromium.org>
11 - Daniel Campello <campello@chromium.org>
14 Semtech's SX9324 proximity sensor.
25 Generated by device to announce preceding read request has finished
26 and data is available or that a close/far proximity event has happened.
30 description: Main power supply
33 description: Host interface power supply
39 $ref: /schemas/types.yaml#/definitions/uint32-array
41 Array of 3 entries. Index represent the id of the CS pin.
42 Value indicates how each CS pin is used during phase 0.
43 Each of the 3 pins have the following value -
44 0 : unused (high impedance)
48 For instance, CS0 measured, CS1 shield and CS2 ground is [1, 2, 3]
55 $ref: /schemas/types.yaml#/definitions/uint32-array
56 description: Same as ph0-pin for phase 1.
63 $ref: /schemas/types.yaml#/definitions/uint32-array
64 description: Same as ph0-pin for phase 2.
71 $ref: /schemas/types.yaml#/definitions/uint32-array
72 description: Same as ph0-pin for phase 3.
79 semtech,ph01-resolution:
80 $ref: /schemas/types.yaml#/definitions/uint32
81 enum: [8, 16, 32, 64, 128, 256, 512, 1024]
83 Capacitance measurement resolution. For phase 0 and 1.
84 Higher the number, higher the resolution.
87 semtech,ph23-resolution:
88 $ref: /schemas/types.yaml#/definitions/uint32
89 enum: [8, 16, 32, 64, 128, 256, 512, 1024]
91 Capacitance measurement resolution. For phase 2 and 3
94 semtech,startup-sensor:
95 $ref: /schemas/types.yaml#/definitions/uint32
99 Phase used for start-up proximity detection.
100 It is used when we enable a phase to remove static offset and measure
101 only capacitance changes introduced by the user.
103 semtech,ph01-proxraw-strength:
104 $ref: /schemas/types.yaml#/definitions/uint32
109 PROXRAW filter strength for phase 0 and 1. A value of 0 represents off,
110 and other values represent 1-1/2^N.
112 semtech,ph23-proxraw-strength:
113 $ref: /schemas/types.yaml#/definitions/uint32
118 Same as proxraw-strength01, for phase 2 and 3.
120 semtech,avg-pos-strength:
121 $ref: /schemas/types.yaml#/definitions/uint32
122 enum: [0, 16, 64, 128, 256, 512, 1024, 4294967295]
125 Average positive filter strength. A value of 0 represents off and
126 UINT_MAX (4294967295) represents infinite. Other values
129 semtech,int-comp-resistor:
131 Internal resistor setting for compensation.
138 semtech,input-precharge-resistor-ohms:
144 Pre-charge input resistance in Ohm.
149 - "#io-channel-cells"
151 additionalProperties: false
155 #include <dt-bindings/interrupt-controller/irq.h>
157 #address-cells = <1>;
160 compatible = "semtech,sx9324";
162 interrupt-parent = <&pio>;
163 interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;
164 vdd-supply = <&pp3300_a>;
165 svdd-supply = <&pp1800_prox>;
166 #io-channel-cells = <1>;
167 semtech,ph0-pin = <1 2 3>;
168 semtech,ph1-pin = <3 2 1>;
169 semtech,ph2-pin = <1 2 3>;
170 semtech,ph3-pin = <3 2 1>;
171 semtech,ph01-resolution = <256>;
172 semtech,ph23-resolution = <256>;
173 semtech,startup-sensor = <1>;
174 semtech,ph01-proxraw-strength = <2>;
175 semtech,ph23-proxraw-strength = <2>;
176 semtech,avg-pos-strength = <64>;
177 semtech,int-comp-resistor = "lowest";
178 semtech,input-precharge-resistor-ohms = <2000>;