1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/input/syna,rmi4.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Synaptics RMI4 compliant devices
10 - Jason A. Donenfeld <Jason@zx2c4.com>
11 - Matthias Schiffer <matthias.schiffer@ew.tq-group.com
12 - Vincent Huang <vincent.huang@tw.synaptics.com>
15 The Synaptics RMI4 (Register Mapped Interface 4) core is able to support RMI4
16 devices using different transports (I2C, SPI) and different functions (e.g.
17 Function 1, 2D sensors using Function 11 or 12).
39 description: Active low signal
46 Delay to wait after resetting the device.
48 syna,startup-delay-ms:
50 Delay to wait after powering on the device.
57 additionalProperties: false
66 $ref: /schemas/types.yaml#/definitions/uint32
69 If set the device will run at full power without sleeping. nosleep
70 has 3 modes, 0 will not change the default setting, 1 will disable
71 nosleep (allow sleeping), and 2 will enable nosleep (disabling
74 syna,wakeup-threshold:
75 $ref: /schemas/types.yaml#/definitions/uint32
77 Defines the amplitude of the disturbance to the background
78 capacitance that will cause the device to wake from dozing.
82 The delay to wait after the last finger lift and the first doze
85 syna,doze-interval-ms:
87 The time period that the device sleeps between finger activity.
93 "^rmi4-f1[12]@1[12]$":
95 unevaluatedProperties: false
96 $ref: /schemas/input/touchscreen/touchscreen.yaml#
98 RMI4 Function 11 and Function 12 are for 2D touch position sensing.
105 $ref: /schemas/types.yaml#/definitions/uint32
110 $ref: /schemas/types.yaml#/definitions/uint32
115 $ref: /schemas/types.yaml#/definitions/uint32
120 $ref: /schemas/types.yaml#/definitions/uint32
125 $ref: /schemas/types.yaml#/definitions/uint32
130 $ref: /schemas/types.yaml#/definitions/uint32
134 syna,delta-x-threshold:
135 $ref: /schemas/types.yaml#/definitions/uint32
137 Minimum distance on the X axis required to generate an interrupt in
138 reduced reporting mode.
140 syna,delta-y-threshold:
141 $ref: /schemas/types.yaml#/definitions/uint32
143 Minimum distance on the Y axis required to generate an interrupt in
144 reduced reporting mode.
147 $ref: /schemas/types.yaml#/definitions/uint32
150 Sensor type: 1 for touchscreen 2 for touchpad.
152 syna,disable-report-mask:
153 $ref: /schemas/types.yaml#/definitions/uint32
155 Mask for disabling posiiton reporting. Used to disable reporing
156 absolute position data.
160 Time to wait after issuing a rezero command.
165 "^rmi4-f[0-9a-f]+@[0-9a-f]+$":
167 additionalProperties: true
170 Other functions, not documented yet.
183 unevaluatedProperties: false
186 - $ref: /schemas/spi/spi-peripheral-props.yaml#
195 spi-rx-delay-us: false
196 spi-tx-delay-us: false
199 syna,reset-delay-ms: false
200 syna,startup-delay-ms: false
204 #include <dt-bindings/interrupt-controller/irq.h>
207 #address-cells = <1>;
211 compatible = "syna,rmi4-i2c";
213 interrupt-parent = <&gpx1>;
214 interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
216 syna,startup-delay-ms = <100>;
217 vdd-supply = <&tsp_vdd>;
218 vio-supply = <&ldo32_reg>;
220 pinctrl-0 = <&touch_irq>;
221 pinctrl-names = "default";
222 #address-cells = <1>;
227 syna,nosleep-mode = <1>;
232 syna,sensor-type = <1>;
242 #include <dt-bindings/interrupt-controller/irq.h>
245 #address-cells = <1>;
249 compatible = "syna,rmi4-spi";
251 interrupt-parent = <&gpx1>;
252 interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
254 spi-max-frequency = <4000000>;
255 spi-rx-delay-us = <30>;
259 #address-cells = <1>;
264 syna,nosleep-mode = <1>;
269 touchscreen-inverted-y;
270 syna,sensor-type = <2>;