drivers/input/ft5x06: Adapt to touchscreen frame

Calling touch_register() to register touchscreen driver instead of
registering generic driver.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
wangjianyu3
2025-07-05 00:36:05 +08:00
committed by Alan C. Assis
parent ed1384fc81
commit 770d4a6c86
3 changed files with 40 additions and 431 deletions
+5 -11
View File
@@ -218,12 +218,6 @@ config FT5X06_POLLMODE
in detecting touch related events and (2) it will consume a
significant amount of CPU time to perform the polling.
config FT5X06_SWAPXY
bool "Swap X/Y"
default n
---help---
Reverse the meaning of X and Y to handle different LCD orientations.
config FT5X06_SINGLEPOINT
bool "Single point"
default n
@@ -252,11 +246,11 @@ config FT5X06_THRESHY
endif # FT5X06_SINGLEPOINT
config FT5X06_NPOLLWAITERS
int "Number FT5336/FT5x06 poll waiters"
default 4
---help---
Maximum number of threads that can be waiting on poll()
config FT5X06_SAMPLE_NBUFFER
int "Number FT5336/FT5x06 sample buffers"
default 4
---help---
Maximum number of samples buffered.
endif # INPUT_FT5X06
+33 -420
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -40,6 +40,7 @@
#include <nuttx/irq.h>
#include <nuttx/i2c/i2c_master.h>
#include <nuttx/input/touchscreen.h>
#ifdef CONFIG_INPUT_FT5X06
@@ -81,6 +82,7 @@ struct ft5x06_config_s
{
/* Device characterization */
struct touch_lowerhalf_s lower;
uint8_t address; /* 7-bit I2C address (only bits 0-6 used) */
uint32_t frequency; /* Default I2C frequency */