Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NXP S32 introduce support PSI5 #79824

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
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
12 changes: 12 additions & 0 deletions MAINTAINERS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1942,6 +1942,18 @@ Release Notes:
tests:
- sample.drivers.espi.ps2

"Drivers: PSI5":
status: maintained
maintainers:
- congnguyenhuu
files:
- drivers/psi5/
- include/zephyr/drivers/psi5/
- dts/bindings/psi5/
- doc/hardware/peripherals/psi5.rst
labels:
- "area: PSI5"

"Drivers: PTP Clock":
status: maintained
maintainers:
Expand Down
2 changes: 2 additions & 0 deletions boards/nxp/s32z2xxdc2/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ The boards support the following hardware features:
+-----------+------------+-------------------------------------+
| DSPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| PSI5 | on-chip | psi5 |
+-----------+------------+-------------------------------------+

Other hardware features are not currently supported by the port.

Expand Down
1 change: 1 addition & 0 deletions doc/hardware/peripherals/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Peripherals
pcie.rst
peci.rst
ps2.rst
psi5.rst
pwm.rst
rtc.rst
regulators.rst
Expand Down
22 changes: 22 additions & 0 deletions doc/hardware/peripherals/psi5.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.. _psi5_api:

Peripheral Sensor Interface (PSI5)
##################################

Overview
********

The PSI5 API provides functionality to communicate with Peripheral Sensor Interface (PSI5)
devices.

Configuration Options
*********************

Related configuration options:

* :kconfig:option:`CONFIG_PSI5`

API Reference
*************

.. doxygengroup:: psi5_interface
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 2025 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 2025 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 2025 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
Loading