Skip to content

Commit c52ba71

Browse files
congnguyenhuudkalowsk
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 <cong.nguyenhuu@nxp.com>
1 parent 2298ec4 commit c52ba71

File tree

13 files changed

+1056
-1
lines changed

13 files changed

+1056
-1
lines changed

MAINTAINERS.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,6 +2008,23 @@ Release Notes:
20082008
tests:
20092009
- sample.drivers.espi.ps2
20102010

2011+
"Drivers: PSI5":
2012+
status: maintained
2013+
maintainers:
2014+
- manuargue
2015+
- Dat-NguyenDuy
2016+
collaborators:
2017+
- congnguyenhuu
2018+
files:
2019+
- drivers/psi5/
2020+
- include/zephyr/drivers/psi5/
2021+
- dts/bindings/psi5/
2022+
- doc/hardware/peripherals/psi5.rst
2023+
labels:
2024+
- "area: PSI5"
2025+
tests:
2026+
- drivers.psi5
2027+
20112028
"Drivers: PTP Clock":
20122029
status: maintained
20132030
maintainers:

doc/hardware/peripherals/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Peripherals
4747
pcie.rst
4848
peci.rst
4949
ps2.rst
50+
psi5.rst
5051
pwm.rst
5152
rtc.rst
5253
regulators.rst

doc/hardware/peripherals/psi5.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. _psi5_api:
2+
3+
Peripheral Sensor Interface (PSI5)
4+
##################################
5+
6+
Overview
7+
********
8+
9+
The PSI5 API provides functionality to communicate with Peripheral Sensor Interface (PSI5)
10+
devices.
11+
12+
Configuration Options
13+
*********************
14+
15+
Related configuration options:
16+
17+
* :kconfig:option:`CONFIG_PSI5`
18+
19+
API Reference
20+
*************
21+
22+
.. doxygengroup:: psi5_interface

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 2025 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 2025 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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright 2025 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+
select PINCTRL if $(dt_compat_any_has_prop,$(DT_COMPAT_NXP_S32_PSI5),pinctrl-0)
9+
help
10+
Enable support for NXP S32 PSI5 driver.

0 commit comments

Comments
 (0)