input: convert xpt2046 from kscan
Convert the XPT2046 driver to the input subsystem, change the api, remove the callback and enable logic. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
82e5eba817
commit
9065c2d156
7 changed files with 24 additions and 61 deletions
|
@ -1,53 +0,0 @@
|
|||
# Copyright (c) 2023 Seppo Takalo
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Driver for XPT2046 touch IC
|
||||
compatible: "xptek,xpt2046"
|
||||
|
||||
include: [kscan.yaml, spi-device.yaml]
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: true
|
||||
description: Interrupt GPIO.
|
||||
|
||||
touchscreen-size-x:
|
||||
type: int
|
||||
required: true
|
||||
description: horizontal resolution of screen
|
||||
|
||||
touchscreen-size-y:
|
||||
type: int
|
||||
required: true
|
||||
description: vertical resolution of screen
|
||||
|
||||
min-x:
|
||||
type: int
|
||||
required: true
|
||||
description: minimum raw X value reported.
|
||||
|
||||
min-y:
|
||||
type: int
|
||||
required: true
|
||||
description: minimum raw Y value reported.
|
||||
|
||||
max-x:
|
||||
type: int
|
||||
required: true
|
||||
description: maximum raw X value reported.
|
||||
|
||||
max-y:
|
||||
type: int
|
||||
required: true
|
||||
description: maximum raw Y value reported.
|
||||
|
||||
z-threshold:
|
||||
type: int
|
||||
description: Z value threshold to trigger a touch
|
||||
default: 100
|
||||
|
||||
reads:
|
||||
type: int
|
||||
description: How many reads per touch to average the value
|
||||
default: 1
|
Loading…
Add table
Add a link
Reference in a new issue