Skip to content

Commit 90159c3

Browse files
committed
drivers: modem: nrf91-slm socket offloaded driver
This commit adds a socket offloaded driver for the Nordic nRF91x Serial LTE Modem. Signed-off-by: Wilkins White <ww@novadynamics.com>
1 parent 7a8bd3d commit 90159c3

File tree

8 files changed

+2630
-0
lines changed

8 files changed

+2630
-0
lines changed

drivers/modem/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,7 @@ if (CONFIG_MODEM_SIM7080)
3535
zephyr_library_sources(simcom-sim7080.c)
3636
endif()
3737

38+
add_subdirectory_ifdef(CONFIG_MODEM_NRF91_SLM nordic)
39+
3840
zephyr_library_sources_ifdef(CONFIG_MODEM_CELLULAR modem_cellular.c)
3941
zephyr_library_sources_ifdef(CONFIG_MODEM_AT_SHELL modem_at_shell.c)

drivers/modem/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,5 +195,6 @@ source "drivers/modem/Kconfig.at_shell"
195195

196196
source "drivers/modem/Kconfig.hl7800"
197197
source "drivers/modem/Kconfig.simcom-sim7080"
198+
source "drivers/modem/nordic/Kconfig"
198199

199200
endif # MODEM

drivers/modem/nordic/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright 2025 Nova Dynamics LLC
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
zephyr_library_sources(nrf91_slm_dns.c nrf91_slm_socket.c nrf91_slm.c)

drivers/modem/nordic/Kconfig

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright 2025 Nova Dynamics LLC
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config MODEM_NRF91_SLM
5+
bool "Nordic nRF91x SLM Driver"
6+
select MODEM_SOCKET
7+
select NET_OFFLOAD
8+
select NET_SOCKETS_OFFLOAD
9+
select MODEM_MODULES
10+
select MODEM_CHAT
11+
select MODEM_PIPE
12+
select MODEM_BACKEND_UART
13+
select RING_BUFFER
14+
depends on DT_HAS_NORDIC_NRF91_SLM_ENABLED
15+
imply GPIO
16+
help
17+
Enables the offloaded driver for the Nordic nRF91 Serial LTE Modem.
18+
19+
if MODEM_NRF91_SLM
20+
21+
config MODEM_NRF91_SLM_PERIODIC_SCRIPT_MS
22+
int "Periodic script interval in milliseconds"
23+
default 2000
24+
25+
config MODEM_NRF91_SLM_UART_BUFFER_SIZES
26+
int "The UART receive and transmit buffer sizes in bytes."
27+
default 512
28+
29+
config MODEM_NRF91_SLM_CHAT_BUFFER_SIZES
30+
int "The size of the buffers used for the chat scripts in bytes."
31+
default 128
32+
33+
endif

0 commit comments

Comments
 (0)