input: pat912x: add a bunch of settings
Add devicetree based settings for resolution, axis inversion and sleep mode enable. Keep the resolution setting in its own function so it can be called by the application again in runtime if needed. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
a14ba6a253
commit
7d676c2331
4 changed files with 150 additions and 0 deletions
|
@ -25,3 +25,35 @@ properties:
|
|||
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-x-cpi:
|
||||
type: int
|
||||
description: |
|
||||
CPI resolution for the X axis, range 0 to 1275, rounded down to the
|
||||
closest supported value in increments of 5.
|
||||
|
||||
res-y-cpi:
|
||||
type: int
|
||||
description: |
|
||||
CPI resolution for the Y axis, range 0 to 1275, rounded down to the
|
||||
closest supported value in increments of 5.
|
||||
|
||||
invert-x:
|
||||
type: boolean
|
||||
description: |
|
||||
Invert X axis values.
|
||||
|
||||
invert-y:
|
||||
type: boolean
|
||||
description: |
|
||||
Invert Y axis values.
|
||||
|
||||
sleep1-enable:
|
||||
type: boolean
|
||||
description: |
|
||||
Enable sleep1 mode.
|
||||
|
||||
sleep2-enable:
|
||||
type: boolean
|
||||
description: |
|
||||
Enable sleep2 mode, only valid if sleep1 is also enabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue