Commit graph

17,121 commits

Author SHA1 Message Date
Mark Wang
ad474e2513 doc: bluetooth: add a2dp API doc
add a2dp to the doc

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-10-17 11:15:10 +02:00
Mathieu Choplain
6a414b6fff kernel: hooks: clean up the top-level documentation comment
Clean up the top-level comment in the platform hooks header which is used
when generating documentation:
- capitalize "soc" as "SoC"
- capitalize "zephyr"
- simplify "soc and board specific" -> "SoC/board-specific"

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-16 22:35:45 -04:00
Mathieu Choplain
6f92735d28 kernel: hooks: make definitions appear in Doxygen
The hooks' signature was not visible to Doxygen due to preprocessor
conditionals - instead, the dummy no-op implementation was seen instead.

Update #ifdef guard to make the hooks' signature and the associated
documentation visible to Doxygen such that it appears in docs.

Also fix a tiny typo on soc_reset_hook()'s documentation comment.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-16 22:35:45 -04:00
Qiang Zhao
56098d60b4 drivers: dsa_nxp_imx_netc: add Qbv capability
add Qbv capability for dsa_nxp_imx_netc

Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
2025-10-16 22:34:41 -04:00
Qiang Zhao
a12c664b53 net: dsa: add set/get_config support
Supported set/get_config API.

Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
2025-10-16 22:34:41 -04:00
Dan Kalowsky
27afe41b10 debug: thread_analyzer: add thread analyzer option to reset frame
Use THREAD_ANALYZER_LONG_FRAME_PER_INTERVAL config to reset
longest frame value to zero after printing so that longest frame
now represents longest frame for the most recent interval.  The
longest overall frame is often at startup and this modification
allows one to observe subsequent long frames.

Signed-off-by: Jay Lawlor <jlawlor@amperecomputing.com>
Signed-off-by: Dan Kalowsky <dkalowsky@amperecomputing.com>
2025-10-16 22:33:22 -04:00
Tomasz Chyrowicz
3ae8a43667 storage: Allow to use subpartitions in flash_map
Allow to use both partition and subpartition names when suing the
flash_map API.
That way it is possible to introduce a hierarchy within DTS in a
backward compatible way.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2025-10-16 15:06:12 -04:00
Tomasz Chyrowicz
5c010ed9a3 devicetree: Fix ADDRESS macro for non-nv-flash
Currently the DT_FIXED_PARTITION_ADDR as well as
DT_FIXED_SUBPARTITION_ADDR works only for partitions under the
soc,nv-flash -compatible nodes.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2025-10-16 15:06:12 -04:00
Tomasz Chyrowicz
e4ecd4b290 devicetree: Fix MTD macro for subpartitions
The DT_MTD_FROM_FIXED_SUBPARTITION must go one level more than the
DT_MTD_FROM_FIXED_PARTITION counterpart.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2025-10-16 15:06:12 -04:00
Jeremy Dick
034e88ebb3 drivers: mipi-dbi-spi: Fix the delay for gpio CS
Fix a typo in the argument passed to SPI_CS_CONTROL_INIT_GPIO
in MIPI_DBI_SPI_CONFIG_DT

Signed-off-by: Jeremy Dick <jdick@pivotint.com>
2025-10-16 12:15:39 -04:00
Zafer SEN
a103ef0406 drivers: modem: HL78XX Modem Driver
Adding HL78XX Modem Driver Implementation Using Modem Chat Framework

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2025-10-16 17:17:24 +03:00
Emilio Benavente
8e8056324d soc: nxp: mcxw: Enable EDMA
Add DMA nodes for MCXW7X SOC DTS.
This SOC used TRIGMUX instead of DMAMUX.
Enable EDMAv3 for the frdm_mcxw71 and frdm_mcxw72
platforms.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
Co-authored-by: Declan Snyder <declan.snyder@nxp.com>
2025-10-16 17:17:12 +03:00
Francois Ramu
02f000084f include: drivers: stm32 clock mux CK48 definition
Define the STM32_CK48_ENABLED especially for the stm32F4 series
when ck48 node is enabled to leverage its already implemented support.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2025-10-16 17:16:31 +03:00
Krzysztof Chruściński
3595c9d0d4 tests: pm: policy_api: Add test for locking all PM states
Add test case that validates behavior of pm_policy_state_all_lock_get
and pm_policy_state_all_lock_put.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-10-16 17:15:20 +03:00
Krzysztof Chruściński
336e89efd6 pm: policy: Add option to lock all power states
Add function for getting and putting a lock for all power states.
It is much faster version of requesting 0 us latency with actual
intention to disable all power states.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-10-16 17:15:20 +03:00
Jordan Yates
9f1e166abd modem: modem_ppp: optimise frame wrapping
Optimise the PPP frame wrapping process by performing all work inside a
single function into a contiguous buffer, instead of operating on the
ring buffer one byte at a time.

On a nRF54L15 (M33 @ 128 MHz) before the change:
```
Wrapping 1062 byte packet: ~4.1 ms
Wrapping 1355 byte packet: ~5.0 ms
```
After the change:
```
Wrapping 1026 byte packet: ~2.4 ms
Wrapping 1341 byte packet: ~3.1 ms
```

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-16 17:15:08 +03:00
Tom Burdick
6b350da5ec dma: Drop syscalls
DMA syscalls as they were implemented were unsafe. Accepting a void* was
never acceptable as many things could not be verified about it.
Accepting a channel identifier meant that a user mode thread could
start/stop any DMA channel which in theory could be owned by any other
driver. This shouldn't be possible.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2025-10-16 17:14:59 +03:00
Julien Vermillard
9ee47f2856 net: lwm2m: add cache filtering
Introduce `lwm2m_set_cache_filter()` so applications can drop cached
samples before they reach the LwM2M SEND path.

Fixes #91590

Signed-off-by: Julien Vermillard <julien@clunkymachines.com>
2025-10-16 17:10:24 +03:00
Lukas Gehreke
9e69628d5e drivers: modem: sim7080: Made dns timeout and retry configurable
Timeout and retries for DNS lookups were hardcoded. This commit
introduces kconfig settings for the default values and functions
for runtime configuration.

Signed-off-by: Lukas Gehreke <lk.gehreke@gmail.com>
2025-10-15 17:37:58 -04:00
Lukas Gehreke
d81dbba660 drivers: modem: sim7080: Added missing doxygen docu to public header.
Added missing doxygen comments to public header.

Signed-off-by: Lukas Gehreke <lk.gehreke@gmail.com>
2025-10-15 17:37:58 -04:00
Lukas Gehreke
2659d38a9a drivers: modem: Fixed style issues of sim7080 driver
Fixed zephyr style violations.

Signed-off-by: Lukas Gehreke <lk.gehreke@gmail.com>
2025-10-15 17:37:58 -04:00
Lukas Gehreke
aa270c04e8 drivers: modem: sim7080: added force reset function.
Added function to forcefully reset the modem by holding the pwrkey
for 15 seconds.

Signed-off-by: Lukas Gehreke <lk.gehreke@gmail.com>
2025-10-15 17:37:58 -04:00
Lukas Gehreke
e8b9a8a88e drivers: modem: sim7080: added function to query local time
Added funtion to query local time and added injection time to
gnss xtra validity query function.

Signed-off-by: Lukas Gehreke <lk.gehreke@gmail.com>
2025-10-15 17:37:58 -04:00
Lukas Gehreke
bc6584cd8b drivers: sim7080: implemented gnss xtra functionality.
Added funtions to download a gnss xtra file, query its validity
and use it in gps.

Signed-off-by: Lukas Gehreke <lk.gehreke@gmail.com>
2025-10-15 17:37:58 -04:00
Lukas Gehreke
0a0c595c12 drivers: modem: sim7080: added command to inquire ue system information
Added command to query ue system information from the modem.

Signed-off-by: Lukas Gehreke <lk.gehreke@gmail.com>
2025-10-15 17:37:58 -04:00
Lukas Gehreke
2727c2d461 drivers: modem: sim7080: added function to query the modem state.
Added function to query the modem state from application side.

Signed-off-by: Lukas Gehreke <lk.gehreke@gmail.com>
2025-10-15 17:37:58 -04:00
Lukas Gehreke
0d4757b07c drivers: modem: Added battery measurement function for sim7080
Added function to measure battery voltage, battery charge status
and battery connection level.

Signed-off-by: Lukas Gehreke <lk.gehreke@gmail.com>
2025-10-15 17:37:58 -04:00
Lukas Gehreke
c1e765dcad drivers: modem: sim7080: added function to get iccid
Added function to get the iccid number.

Signed-off-by: Lukas Gehreke <lk.gehreke@gmail.com>
2025-10-15 17:37:58 -04:00
Lukas Gehreke
08e665360e drivers: modem: sim7080: added gpio set function
Added functionality to set modem gpio pins.

Signed-off-by: Lukas Gehreke <lk.gehreke@gmail.com>
2025-10-15 17:37:58 -04:00
Lukas Gehreke
fcf9bdce36 drivers: modem: sim7080: added stop functions for network and gnss
Network and gnss can be disabled with stop functions instead of power
cycling the modem. The start functions will also not power cycle the
modem. In order to call the start functions the modem needs to be
booted.

Signed-off-by: Lukas Gehreke <lk.gehreke@gmail.com>
2025-10-15 17:37:58 -04:00
Qingsong Gou
4e2dfe348d drivers: reset: add reset driver support for sf32lb
add reset driver for sf32lb platform

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2025-10-15 17:36:32 -04:00
Chris Friedt
8f899db04d posix: sched: move sched_yield() to pthread.c
The `sched_yield()` function was originally included to facilitate the of
POSIX_REALTIME and POSIX_THREADS_EXT Option Groups in Issue 5.

It was then marked as part of the _POSIX_PROCESS_SCHEDULING Option in
Issue 6, but then was not clearly marked as part of the
POSIX_THREADS(_BASE) Option Group until Issue 7.

Moving it to `pthread.c` (and making it a function with regular
linkage rather than inline) ensures that it will be available with the
`POSIX_THREADS` Option Group.

For more information, please see `POSIX_THREADS_BASE` in
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/\
V4_subprofiles.html and
https://pubs.opengroup.org/onlinepubs/9799919799/xrat/\
V4_subprofiles.html

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-15 11:46:00 -04:00
Benjamin Cabé
1962a63beb include: storage: stream_flash: doc: hide stream_flash_ctx internals
stream_flash_ctx is opaque so actually ensure that Doxygen treat all its
fields as hidden from the public documentation.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-15 11:41:49 -04:00
Jordan Yates
b92a43d7c0 net: conn_mgr_connectivity: idle timeouts
Implement idle timeouts, primarily in the common connectivity library,
with individual interfaces notifying the library when the interface has
been used.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-15 15:39:25 +03:00
Jordan Yates
e3a7bb30bd net: conn_mgr_connectivity: idle timeout parameter
Add an interface idle timeout parameter to the connectivity
binding structure. This will be used to track idle timeouts for
interfaces.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-15 15:39:25 +03:00
Jordan Yates
cfe0a68743 net: net_if: add NET_IF_DECLARE
Add a helper macro to declare a network interface, enabling the use of
`NET_IF_GET` in the driver before the call to `NET_DEVICE_OFFLOAD_INIT`
or `NET_DEVICE_INIT`.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-15 15:39:25 +03:00
Sergei Ovchinnikov
3ae0d39de7 drivers: sensor: npm13xx_charger: improve sample fetching
Change the npm13xx_charger fetch function to first trigger a sample
and then block until the result is available.

Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
2025-10-15 15:38:48 +03:00
Michael Zimmermann
be0adf76b5 net: mqtt_sn: add support for short topics
The publish and subscribe APIs allocate topics implicitly, but don't
support allocating predefined or short topics. Additionally, we don't want
to force using short topics in case the passed topic is 2 bytes long, in
case the user doesn't want that (e.g. because the server doesn't support
it).

So instead, we add a new API which works similar to
mqtt_sn_predefine_topic, which allows allocating a short topic before using
any of these APIs.

Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
2025-10-15 15:35:58 +03:00
Michael Zimmermann
e82b8cb150 net: mqtt_sn: never clear predefined and short topics
- These are independent from connections since they are always valid.
- Implicitly created topics(e.g. from publish or subscribe) can't be
  deleted either, so that doesn't make things worse compared to those.

Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
2025-10-15 15:35:58 +03:00
Quy Tran
8d98b4acbd drivers: comparator: Add comparator driver support for RX
Add comparator support for Renesas RX with LVD

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-15 12:07:46 +03:00
Mark Wang
0fd58cc20c bluetooth: a2dp: implement get_config
implement get configuration

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
(cherry picked from commit 54cae2e75bcb7ee38ec4d7c24cef8835e3836a05)
2025-10-15 12:06:56 +03:00
Mark Wang
3d81dc086d bluetooth: a2dp: implement delay report
implement delay report

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-10-15 12:06:56 +03:00
Furkan Akkiz
3b60683906 dt-bindings: gpio: Update bit position of MAX32 GPIO flags
Shift GPIO pad control flags by one bit so that they do not overlap with
drive strength flags.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
2025-10-15 12:04:40 +03:00
Anas Nashif
f22a0afc74 testsuite: coverage: Support semihosting
Use semihosting to collect coverage data instead of dumping data to
serial console.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-10-14 17:32:46 -04:00
Chris Friedt
20cda02d11 posix: multi process: add support for times()
Add support for the `times()` function, which can be used to get the
number of ticks spent in "system" and "user" mode, and which returns
the "real time" that has expired, since an arbitrary point in the past.

The following invariant should always hold:

rtime <= stime + utime

The `times()` function measures time for the calling process and all
of it's child processes. In Zephyr, we don't support separate processes
(yet), so the time spent in child processes is zero.

Additionally, in Zephyr we do not differentiate between "system" time
(i.e. time spent executing kernel code) and "user" time (time spent
executing application code). We only have information on "total time"
(time spent executing code) and "execution time" (time spent executing
code plus idle time).

For now, only report utime, since it is not clear how to obtain other
values.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-14 17:27:08 -04:00
Jeremy Dick
011a357db0 drivers: mipi-dbi-spi: fix initialization of SPI CS
Set cs_is_gpio only if there is a GPIO CS, configure the CS as
a native hardware CS if not

This fixes incorrectly trying to use a GPIO CS when there isn't one

Signed-off-by: Jeremy Dick <jdick@pivotint.com>
2025-10-14 17:26:59 -04:00
Phi Tran
58dac199c2 drivers: dtc: support dtc driver on RSK_RX130_512KB.
Initial commit to support DTC driver on Renesas RX130.
* drivers: DTC: implementation for DTC driver on RX130.
* dts: rx: update dts node in SoC layer to support DTC on RX130.

Signed-off-by: Phi Tran <phi.tran.jg@bp.renesas.com>
2025-10-14 12:53:49 +03:00
Mark Wang
39eaec0513 bluetooth: a2dp: improve the stream l2cap release
When signal l2cap is disconnected, use `release_work` to release the
related stream l2cap connections. When releasing the sep's stream l2cap,
use `delay_work` to check the stream l2cap disconnecting result.
Move the stream l2cap disconnecting callback to sep because the chan is
in sep, then use this callback to indicate the sep stream chan is
released and sep is idle.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-10-14 12:53:27 +03:00
Mark Wang
b9dc6a7fde bluetooth: a2dp: remove the aborted stream callback
The `released` callback is enough indicate that the stream is
invalid/released, so remove the `aborted` callback.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-10-14 12:53:27 +03:00
Minh Tang
4c74ff8a0b drivers: ctsu: Add support CTSU driver for RX MCUs
Add support for Capatitive Touch Sensing Unit driver for RX MCUs

Signed-off-by: Minh Tang <minh.tang.ue@bp.renesas.com>
2025-10-14 12:52:50 +03:00