-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: input: added stm32 tsc peripheral support #81187
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
924ca5a
dts: bindings: added stm32 tsc driver bindings
arifbalik 3ff6b02
boards: st: added tsc peripheral to U0 series
arifbalik d84c2e2
driver: input: added input_tsc_keys
arifbalik 5ea7263
tests: misc: added stm32 tsc driver test implementation
arifbalik 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
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 |
|---|---|---|
|
|
@@ -16,5 +16,6 @@ supported: | |
| - i2c | ||
| - pwm | ||
| - usart | ||
| - tsc | ||
| ram: 40 | ||
| flash: 256 | ||
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,21 @@ | ||
| # Copyright (c) 2024 Arif Balik <[email protected]> | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| config INPUT_STM32_TSC_KEYS | ||
| bool "STM32 TSC touch library" | ||
| default y | ||
| depends on DT_HAS_ST_STM32_TSC_ENABLED | ||
| select RING_BUFFER | ||
| help | ||
| Enable support for STM32 TSC touch library. | ||
|
|
||
| config INPUT_STM32_TSC_KEYS_BUFFER_WORD_SIZE | ||
| int "STM32 TSC touch buffer size in words" | ||
| default 10 | ||
| depends on INPUT_STM32_TSC_KEYS | ||
| help | ||
| Size of the ring buffer for the STM32 TSC touch library. The size of this | ||
| buffer together with the sampling-interval property in the tsc-keys | ||
| device tree node determines the time window of interest. A slope value is | ||
| calculated between the oldest and the newest value in the buffer to | ||
| generate a press or release input event. |
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.