Skip to content

Commit 56c083e

Browse files
jlabundydtor
authored andcommitted
dt-bindings: input: iqs269a: Add bindings for OTP variants
This patch adds bindings for the D0 order code of the device. This order code represents an OTP variant that enables a touch-and-hold function in place of slider 1. Also included is the ability to specify the 00 order code (default option with no OTP customization) explicitly. Signed-off-by: Jeff LaBundy <jeff@labundy.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/ZZMaW9RkQ9bKXOUn@nixie71 Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 00521a9 commit 56c083e

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

Documentation/devicetree/bindings/input/iqs269a.yaml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ description: |
2020
2121
properties:
2222
compatible:
23-
const: azoteq,iqs269a
23+
enum:
24+
- azoteq,iqs269a
25+
- azoteq,iqs269a-00
26+
- azoteq,iqs269a-d0
2427

2528
reg:
2629
maxItems: 1
@@ -207,6 +210,16 @@ properties:
207210
default: 1
208211
description: Specifies the slider coordinate filter strength.
209212

213+
azoteq,touch-hold-ms:
214+
multipleOf: 256
215+
minimum: 256
216+
maximum: 65280
217+
default: 5120
218+
description:
219+
Specifies the length of time (in ms) for which the channel selected by
220+
'azoteq,gpio3-select' must be held in a state of touch in order for an
221+
approximately 60-ms pulse to be asserted on the GPIO4 pin.
222+
210223
linux,keycodes:
211224
minItems: 1
212225
maxItems: 8
@@ -514,6 +527,21 @@ patternProperties:
514527

515528
additionalProperties: false
516529

530+
if:
531+
properties:
532+
compatible:
533+
contains:
534+
enum:
535+
- azoteq,iqs269a-d0
536+
then:
537+
patternProperties:
538+
"^channel@[0-7]$":
539+
properties:
540+
azoteq,slider1-select: false
541+
else:
542+
properties:
543+
azoteq,touch-hold-ms: false
544+
517545
required:
518546
- compatible
519547
- reg

0 commit comments

Comments
 (0)