kscan: input: add input to kscan adapter
Add a driver that listens for input events and reports them on a kscan API. This allows porting kscan drivers to the input APIs while maintaining compatibility with the existing kscan based applications. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
286f10323c
commit
a9735abf84
5 changed files with 153 additions and 0 deletions
23
dts/bindings/kscan/zephyr,kscan-input.yaml
Normal file
23
dts/bindings/kscan/zephyr,kscan-input.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Copyright 2023 Google LLC
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Input to kscan adapter.
|
||||
|
||||
Allows using an input device with the kscan API. Define as a child node of
|
||||
the input device, for example
|
||||
|
||||
chosen {
|
||||
zephyr,keyboard-scan = &kscan_input;
|
||||
};
|
||||
|
||||
ft5336@38 {
|
||||
...
|
||||
kscan_input: kscan-input {
|
||||
compatible = "zephyr,kscan-input";
|
||||
};
|
||||
};
|
||||
|
||||
compatible: "zephyr,kscan-input"
|
||||
|
||||
include: kscan.yaml
|
Loading…
Add table
Add a link
Reference in a new issue