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,cs-idle-sleep:
131 State of CS pins during sleep mode and idle time.
137 semtech,int-comp-resistor:
139 Internal resistor setting for compensation.
146 semtech,input-precharge-resistor-ohms:
152 Pre-charge input resistance in Ohm.
154 semtech,input-analog-gain:
155 $ref: /schemas/types.yaml#/definitions/uint32
159 Defines the input antenna analog gain
168 - "#io-channel-cells"
170 additionalProperties: false
174 #include <dt-bindings/interrupt-controller/irq.h>
176 #address-cells = <1>;
179 compatible = "semtech,sx9324";
181 interrupt-parent = <&pio>;
182 interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;
183 vdd-supply = <&pp3300_a>;
184 svdd-supply = <&pp1800_prox>;
185 #io-channel-cells = <1>;
186 semtech,ph0-pin = <1 2 3>;
187 semtech,ph1-pin = <3 2 1>;
188 semtech,ph2-pin = <1 2 3>;
189 semtech,ph3-pin = <3 2 1>;
190 semtech,ph01-resolution = <256>;
191 semtech,ph23-resolution = <256>;
192 semtech,startup-sensor = <1>;
193 semtech,ph01-proxraw-strength = <2>;
194 semtech,ph23-proxraw-strength = <2>;
195 semtech,avg-pos-strength = <64>;
196 semtech,int-comp-resistor = "lowest";
197 semtech,input-precharge-resistor-ohms = <2000>;
198 semtech,cs-idle-sleep = "gnd";