dt-bindings: mediatek,mt6779-keypad: add mediatek,keys-per-group
authorMattijs Korpershoek <mkorpershoek@baylibre.com>
Tue, 26 Jul 2022 12:56:08 +0000 (14:56 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 10 Aug 2022 22:44:05 +0000 (15:44 -0700)
The 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

With double key, two keys are physically wired to one (row, column) pin.
These keys are in the same "group".

Multiple keys in the same group reduces the number of pins which
minimizes cost.

Add a keys-per-group property to describe this.

Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220720-mt8183-keypad-v2-3-6d42c357cb76@baylibre.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml

index ca8ae40..387d044 100644 (file)
@@ -49,6 +49,12 @@ properties:
     maximum: 256
     default: 16
 
+  mediatek,keys-per-group:
+    description: each (row, column) group has multiple keys
+    $ref: /schemas/types.yaml#/definitions/uint32
+    default: 1
+    maximum: 2
+
 required:
   - compatible
   - reg