Skip to content

Commit 003e391

Browse files
congnguyenhuudkalowsk
authored andcommitted
drivers: introduce Single Edge Nibble Transmission (SENT) driver
This driver allows to communication (receive data) with SENT device Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
1 parent 1f9cca4 commit 003e391

File tree

14 files changed

+928
-1
lines changed

14 files changed

+928
-1
lines changed

MAINTAINERS.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,6 +2120,23 @@ Release Notes:
21202120
tests:
21212121
- drivers.sensor
21222122

2123+
"Drivers: SENT":
2124+
status: maintained
2125+
maintainers:
2126+
- manuargue
2127+
- Dat-NguyenDuy
2128+
collaborators:
2129+
- congnguyenhuu
2130+
files:
2131+
- drivers/sent/
2132+
- include/zephyr/drivers/sent/
2133+
- dts/bindings/sent/
2134+
- doc/hardware/peripherals/sent.rst
2135+
labels:
2136+
- "area: SENT"
2137+
tests:
2138+
- drivers.sent
2139+
21232140
"Drivers: SMBus":
21242141
status: maintained
21252142
maintainers:

doc/hardware/peripherals/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Peripherals
5454
retained_mem.rst
5555
sdhc.rst
5656
sensor/index.rst
57+
sent.rst
5758
spi.rst
5859
stepper.rst
5960
smbus.rst

doc/hardware/peripherals/sent.rst

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

drivers/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ add_subdirectory_ifdef(CONFIG_RETAINED_MEM retained_mem)
8282
add_subdirectory_ifdef(CONFIG_RTC rtc)
8383
add_subdirectory_ifdef(CONFIG_SDHC sdhc)
8484
add_subdirectory_ifdef(CONFIG_SENSOR sensor)
85+
add_subdirectory_ifdef(CONFIG_SENT sent)
8586
add_subdirectory_ifdef(CONFIG_SERIAL serial)
8687
add_subdirectory_ifdef(CONFIG_SMBUS smbus)
8788
add_subdirectory_ifdef(CONFIG_SPI spi)

drivers/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ source "drivers/retained_mem/Kconfig"
7979
source "drivers/rtc/Kconfig"
8080
source "drivers/sdhc/Kconfig"
8181
source "drivers/sensor/Kconfig"
82+
source "drivers/sent/Kconfig"
8283
source "drivers/serial/Kconfig"
8384
source "drivers/sip_svc/Kconfig"
8485
source "drivers/smbus/Kconfig"

drivers/sent/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/sent/sent.h)
5+
6+
zephyr_library()
7+
8+
zephyr_library_sources_ifdef(CONFIG_SENT_NXP_S32 sent_nxp_s32.c)

drivers/sent/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 SENT
5+
bool "SENT Single Edge Nibble Transmission (SENT)"
6+
help
7+
Enable SENT Driver Configuration
8+
9+
if SENT
10+
11+
module = SENT
12+
module-str = sent
13+
source "subsys/logging/Kconfig.template.log_config"
14+
15+
config SENT_INIT_PRIORITY
16+
int "SENT driver init priority"
17+
default KERNEL_INIT_PRIORITY_DEVICE
18+
help
19+
SENT driver device initialization priority.
20+
21+
source "drivers/sent/Kconfig.nxp_s32"
22+
23+
endif # SENT

drivers/sent/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 SENT_NXP_S32
5+
bool "NXP S32 SENT driver"
6+
default y
7+
depends on DT_HAS_NXP_S32_SENT_ENABLED
8+
select PINCTRL if $(dt_compat_any_has_prop,$(DT_COMPAT_NXP_S32_SENT),pinctrl-0)
9+
help
10+
Enable support for NXP S32 SENT driver.

0 commit comments

Comments
 (0)