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

Add reusable modem modules and generic modem driver #56692

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions MAINTAINERS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,15 @@ Modbus:
labels:
- "area: modbus"

Modem Modules:
status: maintained
maintainers:
- bjarki-trackunit
files:
- subsys/modem/
- include/zephyr/modem/
- tests/subsys/modem/

OSDP:
status: maintained
maintainers:
Expand Down
2 changes: 2 additions & 0 deletions drivers/modem/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ if (CONFIG_MODEM_SIM7080)
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
zephyr_library_sources(simcom-sim7080.c)
endif()

zephyr_library_sources_ifdef(CONFIG_MODEM_CELLULAR modem_cellular.c)
1 change: 1 addition & 0 deletions drivers/modem/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ source "drivers/modem/Kconfig.ublox-sara-r4"
source "drivers/modem/Kconfig.quectel-bg9x"
source "drivers/modem/Kconfig.wncm14a2a"
source "drivers/modem/Kconfig.gsm"
source "drivers/modem/Kconfig.cellular"

source "drivers/modem/Kconfig.hl7800"
source "drivers/modem/Kconfig.simcom-sim7080"
Expand Down
33 changes: 33 additions & 0 deletions drivers/modem/Kconfig.cellular
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright (c) 2023 Bjarki Arge Andreasen
# SPDX-License-Identifier: Apache-2.0

config MODEM_CELLULAR
bool "Generic cellular modem support"
select MODEM_MODULES
select MODEM_PPP
select MODEM_CMUX
select MODEM_CHAT
select MODEM_PIPE
select MODEM_BACKEND_UART
select RING_BUFFER
select NET_L2_PPP_OPTION_MRU
depends on (DT_HAS_QUECTEL_BG95_ENABLED || DT_HAS_ZEPHYR_GSM_PPP_ENABLED || \
DT_HAS_SIMCOM_SIM7080_ENABLED || DT_HAS_U_BLOX_SARA_R4_ENABLED || \
DT_HAS_SWIR_HL7800_ENABLED)
help
This driver uses the generic 3gpp AT commands, along
with the standard protocols CMUX and PPP, to configure
cellular modems to establish a point-to-point
network connection. It is a plug-in replacement for the
existing GSM_PPP driver, and a template for tailored
drivers for the ublox, quectel and other modems, which
include power management and more complex device specific
features.

if MODEM_CELLULAR

config MODEM_CELLULAR_APN
string "APN"
default "internet"

endif