Skip to content

Commit 65cdd3a

Browse files
jlabundydtor
authored andcommitted
dt-bindings: input: iqs269a: Add bindings for slider gestures
This patch adds bindings for slider gestures that can be expressed by the device. Signed-off-by: Jeff LaBundy <jeff@labundy.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/ZZMaPrbSi4IrzwKF@nixie71 Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 0b670b5 commit 65cdd3a

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

Documentation/devicetree/bindings/input/iqs269a.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ title: Azoteq IQS269A Capacitive Touch Controller
99
maintainers:
1010
- Jeff LaBundy <jeff@labundy.com>
1111

12+
allOf:
13+
- $ref: input.yaml#
14+
1215
description: |
1316
The Azoteq IQS269A is an 8-channel capacitive touch controller that features
1417
additional Hall-effect and inductive sensing capabilities.
@@ -204,6 +207,63 @@ properties:
204207
default: 1
205208
description: Specifies the slider coordinate filter strength.
206209

210+
linux,keycodes:
211+
minItems: 1
212+
maxItems: 8
213+
description: |
214+
Specifies the numeric keycodes associated with each available gesture in
215+
the following order (enter 0 for unused gestures):
216+
0: Slider 0 tap
217+
1: Slider 0 hold
218+
2: Slider 0 positive flick or swipe
219+
3: Slider 0 negative flick or swipe
220+
4: Slider 1 tap
221+
5: Slider 1 hold
222+
6: Slider 1 positive flick or swipe
223+
7: Slider 1 negative flick or swipe
224+
225+
azoteq,gesture-swipe:
226+
type: boolean
227+
description:
228+
Directs the device to interpret axial gestures as a swipe (finger remains
229+
on slider) instead of a flick (finger leaves slider).
230+
231+
azoteq,timeout-tap-ms:
232+
multipleOf: 16
233+
minimum: 0
234+
maximum: 4080
235+
default: 400
236+
description:
237+
Specifies the length of time (in ms) within which a slider touch must be
238+
released in order to be interpreted as a tap. Default and maximum values
239+
as well as step size are reduced by a factor of 4 with device version 2.
240+
241+
azoteq,timeout-swipe-ms:
242+
multipleOf: 16
243+
minimum: 0
244+
maximum: 4080
245+
default: 2000
246+
description:
247+
Specifies the length of time (in ms) within which an axial gesture must be
248+
completed in order to be interpreted as a flick or swipe. Default and max-
249+
imum values as well as step size are reduced by a factor of 4 with device
250+
version 2.
251+
252+
azoteq,thresh-swipe:
253+
$ref: /schemas/types.yaml#/definitions/uint32
254+
minimum: 0
255+
maximum: 255
256+
default: 128
257+
description:
258+
Specifies the number of points across which an axial gesture must travel
259+
in order to be interpreted as a flick or swipe.
260+
261+
dependencies:
262+
azoteq,gesture-swipe: ["linux,keycodes"]
263+
azoteq,timeout-tap-ms: ["linux,keycodes"]
264+
azoteq,timeout-swipe-ms: ["linux,keycodes"]
265+
azoteq,thresh-swipe: ["linux,keycodes"]
266+
207267
patternProperties:
208268
"^channel@[0-7]$":
209269
type: object
@@ -484,6 +544,14 @@ examples:
484544
azoteq,hall-enable;
485545
azoteq,suspend-mode = <2>;
486546
547+
linux,keycodes = <KEY_PLAYPAUSE>,
548+
<KEY_STOPCD>,
549+
<KEY_NEXTSONG>,
550+
<KEY_PREVIOUSSONG>;
551+
552+
azoteq,timeout-tap-ms = <400>;
553+
azoteq,timeout-swipe-ms = <800>;
554+
487555
channel@0 {
488556
reg = <0x0>;
489557

0 commit comments

Comments
 (0)