Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,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 @@ -71,6 +71,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
9 changes: 9 additions & 0 deletions drivers/psi5/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 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)
zephyr_library_sources_ifdef(CONFIG_PSI5_S_NXP_S32 psi5_s_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
16 changes: 16 additions & 0 deletions drivers/psi5/Kconfig.nxp_s32
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 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.

config PSI5_S_NXP_S32
bool "NXP S32 PSI5_S driver"
default y
depends on DT_HAS_NXP_S32_PSI5_S_ENABLED
help
Enable support for NXP S32 PSI5_S driver.
Loading
Loading