Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Jeff LaBundy and committed by
Dmitry Torokhov
65cdd3ad 0b670b54

+68
+68
Documentation/devicetree/bindings/input/iqs269a.yaml
··· 9 9 maintainers: 10 10 - Jeff LaBundy <jeff@labundy.com> 11 11 12 + allOf: 13 + - $ref: input.yaml# 14 + 12 15 description: | 13 16 The Azoteq IQS269A is an 8-channel capacitive touch controller that features 14 17 additional Hall-effect and inductive sensing capabilities. ··· 206 203 enum: [0, 1, 2, 3] 207 204 default: 1 208 205 description: Specifies the slider coordinate filter strength. 206 + 207 + linux,keycodes: 208 + minItems: 1 209 + maxItems: 8 210 + description: | 211 + Specifies the numeric keycodes associated with each available gesture in 212 + the following order (enter 0 for unused gestures): 213 + 0: Slider 0 tap 214 + 1: Slider 0 hold 215 + 2: Slider 0 positive flick or swipe 216 + 3: Slider 0 negative flick or swipe 217 + 4: Slider 1 tap 218 + 5: Slider 1 hold 219 + 6: Slider 1 positive flick or swipe 220 + 7: Slider 1 negative flick or swipe 221 + 222 + azoteq,gesture-swipe: 223 + type: boolean 224 + description: 225 + Directs the device to interpret axial gestures as a swipe (finger remains 226 + on slider) instead of a flick (finger leaves slider). 227 + 228 + azoteq,timeout-tap-ms: 229 + multipleOf: 16 230 + minimum: 0 231 + maximum: 4080 232 + default: 400 233 + description: 234 + Specifies the length of time (in ms) within which a slider touch must be 235 + released in order to be interpreted as a tap. Default and maximum values 236 + as well as step size are reduced by a factor of 4 with device version 2. 237 + 238 + azoteq,timeout-swipe-ms: 239 + multipleOf: 16 240 + minimum: 0 241 + maximum: 4080 242 + default: 2000 243 + description: 244 + Specifies the length of time (in ms) within which an axial gesture must be 245 + completed in order to be interpreted as a flick or swipe. Default and max- 246 + imum values as well as step size are reduced by a factor of 4 with device 247 + version 2. 248 + 249 + azoteq,thresh-swipe: 250 + $ref: /schemas/types.yaml#/definitions/uint32 251 + minimum: 0 252 + maximum: 255 253 + default: 128 254 + description: 255 + Specifies the number of points across which an axial gesture must travel 256 + in order to be interpreted as a flick or swipe. 257 + 258 + dependencies: 259 + azoteq,gesture-swipe: ["linux,keycodes"] 260 + azoteq,timeout-tap-ms: ["linux,keycodes"] 261 + azoteq,timeout-swipe-ms: ["linux,keycodes"] 262 + azoteq,thresh-swipe: ["linux,keycodes"] 209 263 210 264 patternProperties: 211 265 "^channel@[0-7]$": ··· 543 483 544 484 azoteq,hall-enable; 545 485 azoteq,suspend-mode = <2>; 486 + 487 + linux,keycodes = <KEY_PLAYPAUSE>, 488 + <KEY_STOPCD>, 489 + <KEY_NEXTSONG>, 490 + <KEY_PREVIOUSSONG>; 491 + 492 + azoteq,timeout-tap-ms = <400>; 493 + azoteq,timeout-swipe-ms = <800>; 546 494 547 495 channel@0 { 548 496 reg = <0x0>;