Re: [PATCH v2 5/7] Input: mt6779-keypad - support double keys matrix

From: AngeloGioacchino Del Regno
Date: Wed Jul 27 2022 - 03:34:32 EST


Il 26/07/22 14:56, Mattijs Korpershoek ha scritto:
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

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

Double key is configured by setting BIT(0) of the KP_SEL register.

Enable double key matrix support based on the mediatek,keys-per-group
device tree property.

Signed-off-by: Mattijs Korpershoek <mkorpershoek@xxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>