input: xec: use the generic keyboard code

Split the common keyboard scanning code out of the XEC specific driver
and use the generic code instead.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2023-11-20 16:36:14 +00:00 committed by Anas Nashif
commit a63b3d1de6
7 changed files with 84 additions and 387 deletions

View file

@ -6,7 +6,7 @@ description: Microchip XEC keyboard matrix controller
compatible: "microchip,xec-kbd"
include: [base.yaml, pinctrl-device.yaml]
include: [kbd-matrix-common.yaml, pinctrl-device.yaml]
properties:
"#address-cells":
@ -32,3 +32,9 @@ properties:
type: array
required: true
description: ADC PCR register index and bit position
row-size:
required: true
col-size:
required: true