Skip to content

Commit

Permalink
drivers: introduce support Peripheral Sensor Interface (PSI5) driver
Browse files Browse the repository at this point in the history
This driver allows to communication (send, receive) with PSI5 device

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
  • Loading branch information
congnguyenhuu committed Dec 12, 2024
1 parent 1baf93b commit 16f5942
Show file tree
Hide file tree
Showing 8 changed files with 932 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ add_subdirectory_ifdef(CONFIG_PINCTRL pinctrl)
add_subdirectory_ifdef(CONFIG_PM_CPU_OPS pm_cpu_ops)
add_subdirectory_ifdef(CONFIG_POWER_DOMAIN power_domain)
add_subdirectory_ifdef(CONFIG_PS2 ps2)
add_subdirectory_ifdef(CONFIG_PSI5 psi5)
add_subdirectory_ifdef(CONFIG_PTP_CLOCK ptp_clock)
add_subdirectory_ifdef(CONFIG_PWM pwm)
add_subdirectory_ifdef(CONFIG_REGULATOR regulator)
Expand Down
1 change: 1 addition & 0 deletions drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ source "drivers/pinctrl/Kconfig"
source "drivers/pm_cpu_ops/Kconfig"
source "drivers/power_domain/Kconfig"
source "drivers/ps2/Kconfig"
source "drivers/psi5/Kconfig"
source "drivers/ptp_clock/Kconfig"
source "drivers/pwm/Kconfig"
source "drivers/regulator/Kconfig"
Expand Down
8 changes: 8 additions & 0 deletions drivers/psi5/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright 2024 NXP
# SPDX-License-Identifier: Apache-2.0

zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/psi5/psi5.h)

zephyr_library()

zephyr_library_sources_ifdef(CONFIG_PSI5_NXP_S32 psi5_nxp_s32.c)
23 changes: 23 additions & 0 deletions drivers/psi5/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2024 NXP
# SPDX-License-Identifier: Apache-2.0

menuconfig PSI5
bool "Peripheral Sensor Interface (PSI5) driver"
help
Enable PSI5 Driver Configuration

if PSI5

module = PSI5
module-str = psi5
source "subsys/logging/Kconfig.template.log_config"

config PSI5_INIT_PRIORITY
int "PSI5 driver init priority"
default KERNEL_INIT_PRIORITY_DEVICE
help
PSI5 driver device initialization priority.

source "drivers/psi5/Kconfig.nxp_s32"

endif # PSI5
9 changes: 9 additions & 0 deletions drivers/psi5/Kconfig.nxp_s32
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2024 NXP
# SPDX-License-Identifier: Apache-2.0

config PSI5_NXP_S32
bool "NXP S32 PSI5 driver"
default y
depends on DT_HAS_NXP_S32_PSI5_ENABLED
help
Enable support for NXP S32 PSI5 driver.
Loading

0 comments on commit 16f5942

Please sign in to comment.