input: add a paw32xx driver
Add a driver for PAW32xx sensors. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
d42f483e1a
commit
4a5fa01694
7 changed files with 571 additions and 1 deletions
52
dts/bindings/input/pixart,paw32xx.yaml
Normal file
52
dts/bindings/input/pixart,paw32xx.yaml
Normal file
|
@ -0,0 +1,52 @@
|
|||
# Copyright 2024 Google LLC
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: PAW32xx ultra low power wireless mouse chip
|
||||
|
||||
compatible: "pixart,paw32xx"
|
||||
|
||||
include: spi-device.yaml
|
||||
|
||||
properties:
|
||||
motion-gpios:
|
||||
type: phandle-array
|
||||
required: true
|
||||
description:
|
||||
GPIO connected to the motion pin, active low.
|
||||
|
||||
zephyr,axis-x:
|
||||
type: int
|
||||
required: true
|
||||
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
|
||||
required: true
|
||||
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.
|
||||
|
||||
res-cpi:
|
||||
type: int
|
||||
description: |
|
||||
CPI resolution for the sensor. This can also be changed in runtime using
|
||||
the paw32xx_set_resolution() API.
|
||||
|
||||
invert-x:
|
||||
type: boolean
|
||||
description: |
|
||||
Invert X axis values.
|
||||
|
||||
invert-y:
|
||||
type: boolean
|
||||
description: |
|
||||
Invert Y axis values.
|
||||
|
||||
force-awake:
|
||||
type: boolean
|
||||
description: |
|
||||
Initialize the sensor in "force awake" mode. This can also be enabled or
|
||||
disabled in runtime by the application using the paw32xx_force_awake()
|
||||
API.
|
Loading…
Add table
Add a link
Reference in a new issue