input: add a pat912x driver
Add an initial input driver for the PixArt PAT9125EL, just core functionalities for now, will add more configuration properties at a later stage. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
38b63e9e77
commit
3538335f5a
6 changed files with 315 additions and 0 deletions
27
dts/bindings/input/pixart,pat912x.yaml
Normal file
27
dts/bindings/input/pixart,pat912x.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Copyright 2024 Google LLC
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: PAT9125EL Miniature Optical Navigation Chip
|
||||
|
||||
compatible: "pixart,pat912x"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
motion-gpios:
|
||||
type: phandle-array
|
||||
required: true
|
||||
description:
|
||||
GPIO connected to the motion pin, active low.
|
||||
|
||||
zephyr,axis-x:
|
||||
type: int
|
||||
description: |
|
||||
The input code for the X axis to report for the device, typically any of
|
||||
INPUT_REL_*. No report produced for the device X axis if unspecified.
|
||||
|
||||
zephyr,axis-y:
|
||||
type: int
|
||||
description: |
|
||||
The input code for the Y axis to report for the device, typically any of
|
||||
INPUT_REL_*. No report produced for the device Y axis if unspecified.
|
Loading…
Add table
Add a link
Reference in a new issue