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 SENT #80117

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
14 changes: 14 additions & 0 deletions MAINTAINERS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1999,6 +1999,20 @@ Release Notes:
tests:
- drivers.sdhc

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

"Drivers: Serial/UART":
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 |
+-----------+------------+-------------------------------------+
| SENT | on-chip | sent |
+-----------+------------+-------------------------------------+

Other hardware features are not currently supported by the port.

Expand Down
3 changes: 2 additions & 1 deletion boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_rtu0.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022-2024 NXP
# Copyright 2022-2025 NXP
# SPDX-License-Identifier: Apache-2.0

identifier: s32z2xxdc2/s32z270/rtu0
Expand All @@ -19,4 +19,5 @@ supported:
- adc
- i2c
- dma
- sent
vendor: nxp
3 changes: 2 additions & 1 deletion boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_rtu0_D.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023-2024 NXP
# Copyright 2023-2025 NXP
# SPDX-License-Identifier: Apache-2.0

identifier: s32z2xxdc2@D/s32z270/rtu0
Expand All @@ -19,4 +19,5 @@ supported:
- adc
- i2c
- dma
- sent
vendor: nxp
3 changes: 2 additions & 1 deletion boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_rtu1.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022-2024 NXP
# Copyright 2022-2025 NXP
# SPDX-License-Identifier: Apache-2.0

identifier: s32z2xxdc2/s32z270/rtu1
Expand All @@ -19,4 +19,5 @@ supported:
- adc
- i2c
- dma
- sent
vendor: nxp
3 changes: 2 additions & 1 deletion boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_rtu1_D.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022-2024 NXP
# Copyright 2022-2025 NXP
# SPDX-License-Identifier: Apache-2.0

identifier: s32z2xxdc2@D/s32z270/rtu1
Expand All @@ -19,4 +19,5 @@ supported:
- adc
- i2c
- dma
- sent
vendor: nxp
1 change: 1 addition & 0 deletions doc/hardware/peripherals/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Peripherals
reset.rst
retained_mem.rst
sdhc.rst
sent.rst
sensor/index.rst
spi.rst
stepper.rst
Expand Down
22 changes: 22 additions & 0 deletions doc/hardware/peripherals/sent.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.. _sent_api:

Single Edge Nibble Transmission (SENT)
######################################

Overview
********

The SENT API provides functionality to communicate with Single Edge Nibble Transmission (SENT)
devices.

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

Related configuration options:

* :kconfig:option:`CONFIG_SENT`

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

.. doxygengroup:: sent_interface
1 change: 1 addition & 0 deletions drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ add_subdirectory_ifdef(CONFIG_RETAINED_MEM retained_mem)
add_subdirectory_ifdef(CONFIG_RTC rtc)
add_subdirectory_ifdef(CONFIG_SDHC sdhc)
add_subdirectory_ifdef(CONFIG_SENSOR sensor)
add_subdirectory_ifdef(CONFIG_SENT sent)
add_subdirectory_ifdef(CONFIG_SERIAL serial)
add_subdirectory_ifdef(CONFIG_SMBUS smbus)
add_subdirectory_ifdef(CONFIG_SPI spi)
Expand Down
1 change: 1 addition & 0 deletions drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ source "drivers/retained_mem/Kconfig"
source "drivers/rtc/Kconfig"
source "drivers/sdhc/Kconfig"
source "drivers/sensor/Kconfig"
source "drivers/sent/Kconfig"
source "drivers/serial/Kconfig"
source "drivers/sip_svc/Kconfig"
source "drivers/smbus/Kconfig"
Expand Down
8 changes: 8 additions & 0 deletions drivers/sent/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/sent/sent.h)

zephyr_library()

zephyr_library_sources_ifdef(CONFIG_SENT_NXP_S32 sent_nxp_s32.c)
23 changes: 23 additions & 0 deletions drivers/sent/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 SENT
bool "Single Edge Nibble Transmission (SENT)"
help
Enable SENT Driver Configuration

if SENT

module = SENT
module-str = sent
source "subsys/logging/Kconfig.template.log_config"

config SENT_INIT_PRIORITY
int "SENT driver init priority"
default KERNEL_INIT_PRIORITY_DEVICE
help
SENT driver device initialization priority.

source "drivers/sent/Kconfig.nxp_s32"

endif # SENT
9 changes: 9 additions & 0 deletions drivers/sent/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 SENT_NXP_S32
bool "NXP S32 SENT driver"
default y
depends on DT_HAS_NXP_S32_SENT_ENABLED
help
Enable support for NXP S32 SENT driver.
Loading
Loading