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.
17 - $ref: /schemas/iio/iio.yaml#
28 Generated by device to announce preceding read request has finished
29 and data is available or that a close/far proximity event has happened.
33 description: Main power supply
36 description: Host interface power supply
42 $ref: /schemas/types.yaml#/definitions/uint32-array
44 Array of 3 entries. Index represent the id of the CS pin.
45 Value indicates how each CS pin is used during phase 0.
46 Each of the 3 pins have the following value -
47 0 : unused (high impedance)
51 For instance, CS0 measured, CS1 shield and CS2 ground is [1, 2, 3]
58 $ref: /schemas/types.yaml#/definitions/uint32-array
59 description: Same as ph0-pin for phase 1.
66 $ref: /schemas/types.yaml#/definitions/uint32-array
67 description: Same as ph0-pin for phase 2.
74 $ref: /schemas/types.yaml#/definitions/uint32-array
75 description: Same as ph0-pin for phase 3.
82 semtech,ph01-resolution:
83 $ref: /schemas/types.yaml#/definitions/uint32
84 enum: [8, 16, 32, 64, 128, 256, 512, 1024]
86 Capacitance measurement resolution. For phase 0 and 1.
87 Higher the number, higher the resolution.
90 semtech,ph23-resolution:
91 $ref: /schemas/types.yaml#/definitions/uint32
92 enum: [8, 16, 32, 64, 128, 256, 512, 1024]
94 Capacitance measurement resolution. For phase 2 and 3
97 semtech,startup-sensor:
98 $ref: /schemas/types.yaml#/definitions/uint32
102 Phase used for start-up proximity detection.
103 It is used when we enable a phase to remove static offset and measure
104 only capacitance changes introduced by the user.
106 semtech,ph01-proxraw-strength:
107 $ref: /schemas/types.yaml#/definitions/uint32
112 PROXRAW filter strength for phase 0 and 1. A value of 0 represents off,
113 and other values represent 1-1/2^N.
115 semtech,ph23-proxraw-strength:
116 $ref: /schemas/types.yaml#/definitions/uint32
121 Same as proxraw-strength01, for phase 2 and 3.
123 semtech,avg-pos-strength:
124 $ref: /schemas/types.yaml#/definitions/uint32
125 enum: [0, 16, 64, 128, 256, 512, 1024, 4294967295]
128 Average positive filter strength. A value of 0 represents off and
129 UINT_MAX (4294967295) represents infinite. Other values
132 semtech,cs-idle-sleep:
134 State of CS pins during sleep mode and idle time.
140 semtech,int-comp-resistor:
142 Internal resistor setting for compensation.
149 semtech,input-precharge-resistor-ohms:
155 Pre-charge input resistance in Ohm.
157 semtech,input-analog-gain:
158 $ref: /schemas/types.yaml#/definitions/uint32
162 Defines the input antenna analog gain
171 - "#io-channel-cells"
173 unevaluatedProperties: false
177 #include <dt-bindings/interrupt-controller/irq.h>
179 #address-cells = <1>;
182 compatible = "semtech,sx9324";
184 interrupt-parent = <&pio>;
185 interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;
186 vdd-supply = <&pp3300_a>;
187 svdd-supply = <&pp1800_prox>;
188 #io-channel-cells = <1>;
189 semtech,ph0-pin = <1 2 3>;
190 semtech,ph1-pin = <3 2 1>;
191 semtech,ph2-pin = <1 2 3>;
192 semtech,ph3-pin = <3 2 1>;
193 semtech,ph01-resolution = <256>;
194 semtech,ph23-resolution = <256>;
195 semtech,startup-sensor = <1>;
196 semtech,ph01-proxraw-strength = <2>;
197 semtech,ph23-proxraw-strength = <2>;
198 semtech,avg-pos-strength = <64>;
199 semtech,int-comp-resistor = "lowest";
200 semtech,input-precharge-resistor-ohms = <2000>;
201 semtech,cs-idle-sleep = "gnd";