Skip to content

Commit

Permalink
haptics: Introduces support for DRV2605 Haptic Driver
Browse files Browse the repository at this point in the history
Adds support for the DRV2605 haptic driver.

Signed-off-by: Ricardo Rivera-Matos <[email protected]>
  • Loading branch information
rriveramcrus authored and carlescufi committed Aug 8, 2024
1 parent ab6a738 commit b5a5bdd
Show file tree
Hide file tree
Showing 5 changed files with 721 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/haptics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
zephyr_library()
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/haptics.h)

zephyr_library_sources_ifdef(CONFIG_HAPTICS_DRV2605 drv2605.c)
zephyr_library_sources_ifdef(CONFIG_USERSPACE haptics_handlers.c)
2 changes: 2 additions & 0 deletions drivers/haptics/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ config HAPTICS_INIT_PRIORITY
help
Haptic driver initialization priority.

source "drivers/haptics/Kconfig.drv2605"

endif # HAPTICS
11 changes: 11 additions & 0 deletions drivers/haptics/Kconfig.drv2605
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright 2024 Cirrus Logic, Inc.
# SPDX-License-Identifier: Apache-2.0

config HAPTICS_DRV2605
bool "DRV2605 Haptics Driver"
default y
depends on DT_HAS_TI_DRV2605_ENABLED
select I2C
help
Enable I2C-based driver for the Texas Instruments DRV2605 Haptics
Driver.
Loading

0 comments on commit b5a5bdd

Please sign in to comment.