Skip to content

Commit b5a5bdd

Browse files
rriveramcruscarlescufi
authored andcommitted
haptics: Introduces support for DRV2605 Haptic Driver
Adds support for the DRV2605 haptic driver. Signed-off-by: Ricardo Rivera-Matos <[email protected]>
1 parent ab6a738 commit b5a5bdd

File tree

5 files changed

+721
-0
lines changed

5 files changed

+721
-0
lines changed

drivers/haptics/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
zephyr_library()
44
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/haptics.h)
55

6+
zephyr_library_sources_ifdef(CONFIG_HAPTICS_DRV2605 drv2605.c)
67
zephyr_library_sources_ifdef(CONFIG_USERSPACE haptics_handlers.c)

drivers/haptics/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ config HAPTICS_INIT_PRIORITY
1919
help
2020
Haptic driver initialization priority.
2121

22+
source "drivers/haptics/Kconfig.drv2605"
23+
2224
endif # HAPTICS

drivers/haptics/Kconfig.drv2605

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright 2024 Cirrus Logic, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config HAPTICS_DRV2605
5+
bool "DRV2605 Haptics Driver"
6+
default y
7+
depends on DT_HAS_TI_DRV2605_ENABLED
8+
select I2C
9+
help
10+
Enable I2C-based driver for the Texas Instruments DRV2605 Haptics
11+
Driver.

0 commit comments

Comments
 (0)