Skip to content

Commit 6c8391d

Browse files
congnguyenhuuDat-NguyenDuy
authored andcommitted
drivers: introduce support Peripheral Sensor Interface (PSI5) driver
This driver allows to communication (send, receive) with PSI5 device Signed-off-by: Cong Nguyen Huu <[email protected]>
1 parent 1cfd624 commit 6c8391d

File tree

8 files changed

+886
-0
lines changed

8 files changed

+886
-0
lines changed

drivers/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ add_subdirectory_ifdef(CONFIG_PINCTRL pinctrl)
7474
add_subdirectory_ifdef(CONFIG_PM_CPU_OPS pm_cpu_ops)
7575
add_subdirectory_ifdef(CONFIG_POWER_DOMAIN power_domain)
7676
add_subdirectory_ifdef(CONFIG_PS2 ps2)
77+
add_subdirectory_ifdef(CONFIG_PSI5 psi5)
7778
add_subdirectory_ifdef(CONFIG_PTP_CLOCK ptp_clock)
7879
add_subdirectory_ifdef(CONFIG_PWM pwm)
7980
add_subdirectory_ifdef(CONFIG_REGULATOR regulator)

drivers/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ source "drivers/pinctrl/Kconfig"
7171
source "drivers/pm_cpu_ops/Kconfig"
7272
source "drivers/power_domain/Kconfig"
7373
source "drivers/ps2/Kconfig"
74+
source "drivers/psi5/Kconfig"
7475
source "drivers/ptp_clock/Kconfig"
7576
source "drivers/pwm/Kconfig"
7677
source "drivers/regulator/Kconfig"

drivers/psi5/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright 2024 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/psi5/psi5.h)
5+
6+
zephyr_library()
7+
8+
zephyr_library_sources_ifdef(CONFIG_PSI5_NXP_S32 psi5_nxp_s32.c)

drivers/psi5/Kconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2024 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
menuconfig PSI5
5+
bool "Peripheral Sensor Interface (PSI5) driver"
6+
help
7+
Enable PSI5 Driver Configuration
8+
9+
if PSI5
10+
11+
module = PSI5
12+
module-str = psi5
13+
source "subsys/logging/Kconfig.template.log_config"
14+
15+
config PSI5_INIT_PRIORITY
16+
int "PSI5 driver init priority"
17+
default KERNEL_INIT_PRIORITY_DEVICE
18+
help
19+
PSI5 driver device initialization priority.
20+
21+
source "drivers/psi5/Kconfig.nxp_s32"
22+
23+
endif # PSI5

drivers/psi5/Kconfig.nxp_s32

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright 2024 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config PSI5_NXP_S32
5+
bool "NXP S32 PSI5 driver"
6+
default y
7+
depends on DT_HAS_NXP_S32_PSI5_ENABLED
8+
help
9+
Enable support for NXP S32 PSI5 driver.

0 commit comments

Comments
 (0)