drivers: input: ft5336: Enable interrupts in conjunction with DT config
Enabling `CONFIG_INPUT_FT5336_INTERRUPT` if the ft5336 node in DT has `int-gpios` property. As a result of this change, some boards can eliminate lines that explicitly configure `CONFIG_INPUT_FT5336_INTERRUPT`. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
parent
5d23996361
commit
ecefb5de5d
14 changed files with 1 additions and 63 deletions
|
|
@ -72,9 +72,6 @@ config BT_HCI_VS
|
||||||
# https://www.buydisplay.com/2-8-inch-tft-touch-shield-for-arduino-w-capacitive-touch-screen-module
|
# https://www.buydisplay.com/2-8-inch-tft-touch-shield-for-arduino-w-capacitive-touch-screen-module
|
||||||
if DISPLAY
|
if DISPLAY
|
||||||
|
|
||||||
config INPUT_FT5336_INTERRUPT
|
|
||||||
default y
|
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
||||||
config LV_Z_VDB_SIZE
|
config LV_Z_VDB_SIZE
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,6 @@ config GPIO_AXP192_INIT_PRIORITY
|
||||||
config REGULATOR_FIXED_INIT_PRIORITY
|
config REGULATOR_FIXED_INIT_PRIORITY
|
||||||
default 75
|
default 75
|
||||||
|
|
||||||
config INPUT_FT5336_INTERRUPT
|
|
||||||
default y if INPUT
|
|
||||||
|
|
||||||
config INPUT
|
config INPUT
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,6 @@
|
||||||
|
|
||||||
if BOARD_M5STACK_CORES3_ESP32S3_PROCPU || BOARD_M5STACK_CORES3_ESP32S3_PROCPU_SE
|
if BOARD_M5STACK_CORES3_ESP32S3_PROCPU || BOARD_M5STACK_CORES3_ESP32S3_PROCPU_SE
|
||||||
|
|
||||||
config INPUT_FT5336_INTERRUPT
|
|
||||||
default y if INPUT
|
|
||||||
|
|
||||||
config INPUT
|
config INPUT
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,6 @@ config LV_Z_FLUSH_THREAD
|
||||||
|
|
||||||
endif # LVGL
|
endif # LVGL
|
||||||
|
|
||||||
# Enable interrupt support when using FT5336 driver
|
|
||||||
config INPUT_FT5336_INTERRUPT
|
|
||||||
default y if INPUT
|
|
||||||
|
|
||||||
if DT_HAS_NXP_ENET_MAC_ENABLED && NETWORKING
|
if DT_HAS_NXP_ENET_MAC_ENABLED && NETWORKING
|
||||||
|
|
||||||
config NET_L2_ETHERNET
|
config NET_L2_ETHERNET
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,6 @@ endif # LVGL
|
||||||
|
|
||||||
if INPUT
|
if INPUT
|
||||||
|
|
||||||
config INPUT_FT5336_INTERRUPT
|
|
||||||
default y
|
|
||||||
|
|
||||||
config LV_Z_POINTER_INPUT_MSGQ_COUNT
|
config LV_Z_POINTER_INPUT_MSGQ_COUNT
|
||||||
default 70
|
default 70
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,6 @@ if SHIELD_ADAFRUIT_2_8_TFT_TOUCH_V2 || SHIELD_ADAFRUIT_2_8_TFT_TOUCH_V2_NANO
|
||||||
|
|
||||||
if DISPLAY
|
if DISPLAY
|
||||||
|
|
||||||
if INPUT
|
|
||||||
|
|
||||||
# NOTE: Enable if IRQ line is available (requires to solder jumper)
|
|
||||||
config INPUT_FT5336_INTERRUPT
|
|
||||||
default n
|
|
||||||
|
|
||||||
endif # INPUT
|
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
||||||
config LV_Z_VDB_SIZE
|
config LV_Z_VDB_SIZE
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,6 @@ if SHIELD_BUYDISPLAY_2_8_TFT_TOUCH_ARDUINO
|
||||||
|
|
||||||
if DISPLAY
|
if DISPLAY
|
||||||
|
|
||||||
if INPUT
|
|
||||||
|
|
||||||
# NOTE: Enable if IRQ line is available (requires to solder jumper)
|
|
||||||
config INPUT_FT5336_INTERRUPT
|
|
||||||
default n
|
|
||||||
|
|
||||||
endif # INPUT
|
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
||||||
config LV_Z_VDB_SIZE
|
config LV_Z_VDB_SIZE
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,6 @@ if SHIELD_BUYDISPLAY_3_5_TFT_TOUCH_ARDUINO
|
||||||
|
|
||||||
if DISPLAY
|
if DISPLAY
|
||||||
|
|
||||||
if INPUT
|
|
||||||
|
|
||||||
# NOTE: Enable if IRQ line is available (requires to solder jumper)
|
|
||||||
config INPUT_FT5336_INTERRUPT
|
|
||||||
default n
|
|
||||||
|
|
||||||
endif # INPUT
|
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
||||||
config LV_Z_VDB_SIZE
|
config LV_Z_VDB_SIZE
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@ if LVGL
|
||||||
config INPUT
|
config INPUT
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config INPUT_FT5336_INTERRUPT
|
|
||||||
default y
|
|
||||||
|
|
||||||
if MIPI_DSI_MCUX_2L
|
if MIPI_DSI_MCUX_2L
|
||||||
# Enable color swap in driver
|
# Enable color swap in driver
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@ if LVGL
|
||||||
config INPUT
|
config INPUT
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config INPUT_FT5336_INTERRUPT
|
|
||||||
default y
|
|
||||||
|
|
||||||
# LVGL should allocate buffers equal to size of display
|
# LVGL should allocate buffers equal to size of display
|
||||||
config LV_Z_VDB_SIZE
|
config LV_Z_VDB_SIZE
|
||||||
default 100
|
default 100
|
||||||
|
|
|
||||||
|
|
@ -24,13 +24,6 @@ config MEMC
|
||||||
|
|
||||||
endif # DISPLAY
|
endif # DISPLAY
|
||||||
|
|
||||||
if INPUT
|
|
||||||
|
|
||||||
config INPUT_FT5336_INTERRUPT
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # INPUT
|
|
||||||
|
|
||||||
config DISK_DRIVER_SDMMC
|
config DISK_DRIVER_SDMMC
|
||||||
default y if DISK_DRIVERS
|
default y if DISK_DRIVERS
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,13 +24,6 @@ endif # DISPLAY
|
||||||
config INPUT
|
config INPUT
|
||||||
default y if LVGL
|
default y if LVGL
|
||||||
|
|
||||||
if INPUT
|
|
||||||
|
|
||||||
config INPUT_FT5336_INTERRUPT
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # INPUT
|
|
||||||
|
|
||||||
config DISK_DRIVER_SDMMC
|
config DISK_DRIVER_SDMMC
|
||||||
default y if DISK_DRIVERS
|
default y if DISK_DRIVERS
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,6 @@ if BOARD_STM32H7B3I_DK
|
||||||
config INPUT
|
config INPUT
|
||||||
default y if LVGL
|
default y if LVGL
|
||||||
|
|
||||||
config INPUT_FT5336_INTERRUPT
|
|
||||||
default y if INPUT_FT5336
|
|
||||||
|
|
||||||
# MEMC needs to be enabled in order to store
|
# MEMC needs to be enabled in order to store
|
||||||
# display buffer to external SDRAM connected to FMC
|
# display buffer to external SDRAM connected to FMC
|
||||||
config MEMC
|
config MEMC
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ config INPUT_FT5336_PERIOD
|
||||||
|
|
||||||
config INPUT_FT5336_INTERRUPT
|
config INPUT_FT5336_INTERRUPT
|
||||||
bool "Interrupt"
|
bool "Interrupt"
|
||||||
|
default y if $(dt_compat_any_has_prop,$(DT_COMPAT_FOCALTECH_FT5336),int-gpios)
|
||||||
help
|
help
|
||||||
Enable interrupt support (requires GPIO).
|
Enable interrupt support (requires GPIO).
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue