-
Notifications
You must be signed in to change notification settings - Fork 7.7k
drivers: input: add support for Renesas CTSU #92433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
thenguyenyf
wants to merge
5
commits into
zephyrproject-rtos:main
Choose a base branch
from
renesas:renesas_ra_ctsu_driver_support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
275a84b
manifest: update hal_renesas revision to latest
thenguyenyf 6964578
drivers: input: initial support for renesas,ra-ctsu
thenguyenyf e24d5f3
bindings: pinctrl: add ctsu psel selection for Renesas RA
thenguyenyf 5be3778
dts: arm: renesas: add CTSU device node for Renesas RA
thenguyenyf 0c1eaa3
boards: renesas: ek_ra2a1: add support for ctsu on Renesas RA
thenguyenyf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2025 Renesas Electronics Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if !INPUT_RENESAS_RA_QE_TOUCH_CFG | ||
|
||
config INPUT_RENESAS_RA_CTSU_NUM_SELF_ELEMENTS | ||
default 1 | ||
|
||
endif # INPUT_RENESAS_RA_QE_TOUCH_CFG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Copyright (c) 2025 Renesas Electronics Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config INPUT_RENESAS_RA_CTSU | ||
bool "Renesas RA Capacitive Touch driver" | ||
default y | ||
depends on DT_HAS_RENESAS_RA_CTSU_ENABLED | ||
select USE_RA_FSP_CTSU | ||
select USE_RA_FSP_TOUCH | ||
select SYS_MEM_BLOCKS | ||
select GPIO | ||
select PINCTRL | ||
help | ||
Enable Renesas RA Touch Sensing driver. | ||
|
||
if INPUT_RENESAS_RA_CTSU | ||
|
||
config INPUT_RENESAS_RA_DEVICE_VCC | ||
int "SoC VCC input in minivolt" | ||
default 3300 | ||
help | ||
SoC VCC input in milivolt. | ||
|
||
config INPUT_RENESAS_RA_QE_TOUCH_CFG | ||
bool "Using QE Touch Workflow to config this driver" | ||
help | ||
If this config was enabled, setting for CTSU and Cap | ||
Touch driver will be reflected the setting that generated | ||
from QE Touch Workflow. | ||
Please add the generated C source files into the app CMakeLists | ||
to make the driver can using it. | ||
|
||
if !INPUT_RENESAS_RA_QE_TOUCH_CFG | ||
|
||
config INPUT_RENESAS_RA_CTSU_NUM_SELF_ELEMENTS | ||
int "Number of self-capacitance elements" | ||
default 0 | ||
help | ||
Number of self-capacitance elements in the CTSU. | ||
|
||
config INPUT_RENESAS_RA_CTSU_NUM_MUTUAL_ELEMENTS | ||
int "Number of mutual-capacitance elements" | ||
default 0 | ||
help | ||
Number of mutual-capacitance elements in the CTSU. | ||
|
||
choice INPUT_RENESAS_RA_CTSU_CHATTERING_SUPPRESSION_TYPE | ||
prompt "Type of chattering suppression" | ||
default INPUT_RENESAS_RA_CTSU_CHATTERING_SUPPRESSION_TYPE_A | ||
|
||
config INPUT_RENESAS_RA_CTSU_CHATTERING_SUPPRESSION_TYPE_A | ||
bool "Counter of exceed threshold is hold within hysteresis range" | ||
help | ||
Counter of exceed threshold is hold within hysteresis range. | ||
|
||
config INPUT_RENESAS_RA_CTSU_CHATTERING_SUPPRESSION_TYPE_B | ||
bool "Counter of exceed threshold is reset within hysteresis range" | ||
help | ||
Counter of exceed threshold is reset within hysteresis range. | ||
|
||
endchoice # INPUT_RENESAS_RA_CTSU_CHATTERING_SUPPRESSION_TYPE | ||
|
||
endif # !INPUT_RENESAS_RA_QE_TOUCH_CFG | ||
|
||
config INPUT_RENESAS_RA_CTSU_POLLING_INTERVAL_MS | ||
int "CTSU debounce interval time" | ||
range 20 500 | ||
default 100 | ||
help | ||
Debouncing interval time in milliseconds. | ||
|
||
config INPUT_RENESAS_RA_CTSU_STABILIZATION_TIME_US | ||
int "CTSU stabilization time" | ||
default 20 | ||
help | ||
Stabilization time required to wait between 2 scans. | ||
|
||
config INPUT_RENESAS_RA_CTSU_DRV_STACK_SIZE | ||
int "CTSU internal thread stack size" | ||
default 512 | ||
help | ||
CTSU driver internal thread stack size. | ||
|
||
config INPUT_RENESAS_RA_CTSU_DRV_PRIORITY | ||
int "CTSU internal thread priority" | ||
default 8 | ||
help | ||
CTSU driver internal thread priority. | ||
|
||
config INPUT_RENESAS_RA_CTSU_MSG_MEM_BLOCK_SIZE | ||
int "CTSU internal sys_mem_blocks allocator size" | ||
default 10 | ||
help | ||
CTSU driver internal sys_mem_blocks allocator maximum num blocks. | ||
|
||
endif # INPUT_RENESAS_RA_CTSU |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.