Thread (23 messages) 23 messages, 4 authors, 2022-07-26
STALE1454d

[PATCH v1 3/6] dt-bindings: mediatek,mt6779-keypad: add mediatek,double-keys

From: Mattijs Korpershoek <hidden>
Date: 2022-07-20 14:48:59
Also in: linux-devicetree, linux-input, linux-mediatek, lkml
Subsystem: input (keyboard, mouse, joystick, touchscreen) drivers, mediatek keypad driver, open firmware and flattened device tree bindings, the rest · Maintainers: Dmitry Torokhov, Mattijs Korpershoek, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Linus Torvalds

MediaTek keypad has 2 modes of detecting key events:
- single key: each (row, column) can detect one key
- double key: each (row, column) is a group of 2 keys

Currently, only single key detection is supported (by default)
Add an optional property, mediatek,double-keys to support double
key detection.

Double key support exists to minimize cost, since it reduces the number
of pins required for physical keys.

Signed-off-by: Mattijs Korpershoek <redacted>
diff --git a/Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml b/Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml
index ca8ae40a73f7..03c9555849e5 100644
--- a/Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml
+++ b/Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml
@@ -49,6 +49,12 @@ properties:
     maximum: 256
     default: 16
 
+  mediatek,double-keys:
+    description: |
+      use double key matrix instead of single key
+      when set, each (row,column) is a group that can detect 2 keys
+    type: boolean
+
 required:
   - compatible
   - reg
-- 
b4 0.10.0-dev-54fef

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help