Skip to content

Commit 0da8959

Browse files
André Apitzschdtor
authored andcommitted
dt-bindings: input: syna,rmi4: Document F1A function
In some configurations the touch controller can support touch keys. Document the linux,keycodes property that enables those keys and specifies the keycodes that should be used to report the key events. Signed-off-by: André Apitzsch <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent a9c95d1 commit 0da8959

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Documentation/devicetree/bindings/input/syna,rmi4.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,24 @@ properties:
8989
required:
9090
- reg
9191

92+
rmi4-f1a@1a:
93+
type: object
94+
additionalProperties: false
95+
$ref: input.yaml#
96+
description:
97+
RMI4 Function 1A is for capacitive keys.
98+
99+
properties:
100+
reg:
101+
maxItems: 1
102+
103+
linux,keycodes:
104+
minItems: 1
105+
maxItems: 4
106+
107+
required:
108+
- reg
109+
92110
patternProperties:
93111
"^rmi4-f1[12]@1[12]$":
94112
type: object
@@ -201,6 +219,7 @@ allOf:
201219

202220
examples:
203221
- |
222+
#include <dt-bindings/input/linux-event-codes.h>
204223
#include <dt-bindings/interrupt-controller/irq.h>
205224
206225
i2c {
@@ -234,6 +253,7 @@ examples:
234253
235254
rmi4-f1a@1a {
236255
reg = <0x1a>;
256+
linux,keycodes = <KEY_BACK KEY_HOME KEY_MENU>;
237257
};
238258
};
239259
};

0 commit comments

Comments
 (0)