File tree Expand file tree Collapse file tree 6 files changed +539
-0
lines changed Expand file tree Collapse file tree 6 files changed +539
-0
lines changed Original file line number Diff line number Diff line change 146146 group = <6>;
147147 channel-ios = <TSC_IO2>;
148148 sampling-io = <TSC_IO1>;
149+ ts1 {
150+ compatible = "tsc-keys";
151+ sampling-interval-ms = <10>;
152+ noise-threshold = <50>;
153+ zephyr,code = <INPUT_KEY_0>;
154+ };
149155 };
150156};
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ zephyr_library_sources_ifdef(CONFIG_INPUT_PAW32XX input_paw32xx.c)
2828zephyr_library_sources_ifdef(CONFIG_INPUT_PINNACLE input_pinnacle.c)
2929zephyr_library_sources_ifdef(CONFIG_INPUT_PMW3610 input_pmw3610.c)
3030zephyr_library_sources_ifdef(CONFIG_INPUT_SBUS input_sbus.c)
31+ zephyr_library_sources_ifdef(CONFIG_INPUT_STM32_TSC_KEYS input_tsc_keys.c)
3132zephyr_library_sources_ifdef(CONFIG_INPUT_STMPE811 input_stmpe811.c)
3233zephyr_library_sources_ifdef(CONFIG_INPUT_TOUCH input_touch.c)
3334zephyr_library_sources_ifdef(CONFIG_INPUT_XEC_KBD input_xec_kbd.c)
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ source "drivers/input/Kconfig.sbus"
3333source "drivers/input/Kconfig.sdl"
3434source "drivers/input/Kconfig.stmpe811"
3535source "drivers/input/Kconfig.touch"
36+ source "drivers/input/Kconfig.tsc_keys"
3637source "drivers/input/Kconfig.xec"
3738source "drivers/input/Kconfig.xpt2046"
3839# zephyr-keep-sorted-stop
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2024 Arif Balik <
[email protected] >
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ config INPUT_STM32_TSC_KEYS
5+ bool "STM32 TSC touch library"
6+ default y
7+ depends on DT_HAS_ST_STM32_TSC_ENABLED
8+ select RING_BUFFER
9+ help
10+ Enable support for STM32 TSC touch library.
11+
12+ config INPUT_STM32_TSC_KEYS_BUFFER_WORD_SIZE
13+ int "STM32 TSC touch buffer size in words"
14+ default 10
15+ depends on INPUT_STM32_TSC_KEYS
16+ help
17+ Size of the ring buffer for the STM32 TSC touch library. The size of this
18+ buffer together with the sampling-interval property in the tsc-keys
19+ device tree node determines the time window of interest. A slope value is
20+ calculated between the oldest and the newest value in the buffer to
21+ generate a press or release input event.
You can’t perform that action at this time.
0 commit comments