Commit graph

17,121 commits

Author SHA1 Message Date
Benjamin Cabé
506e95325d include: can: re-organize doxygen groups
group controller and transceiver API under a common umbrella

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-30 12:30:50 +02:00
Benjamin Cabé
ce97cd1d9c include: devicetree: show DT helpers in their respective device sections
The various DT helpers benefit from being shown in their respective
device sections as it's expected that some users will be looking there
rather than generic Devicetree help pages.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-29 22:55:23 -04:00
Chris Friedt
ab8b55ac99 posix: move posix limit definitions to posix_limits.h
Rather than keeping limits defined in a common way, controllable with one
Kconfig, move posix definitions out of the standard common libc header
`<limits.h>` into `<zephyr/posix/posix_limits.h>`, not controlled with
Kconfig. Additionally, include `<zephyr/posix/posix_limits.h>` wherever
an in-tree C library includes a custom `<limits.h>`.

Note: the only reason any of the `<limits.h>` files exist, is to define
the POSIX limit PATH_MAX without declaring `_POSIX_C_SOURCE`, which would
be necessary according to the standard, and each of the custom `<limits.h>`
files is nearly identical in this regard.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-08-29 18:21:10 +02:00
Chris Friedt
c4533d1b69 posix: move limit definitions to common libc limits.h
In order to reduce conflicts with limits defined in external C libraries,
move Zephyr's POSIX limits from posix_features.h to limits.h in the
common C library sources.

In order to give the implementation better control over where POSIX
limit definitions originate, use `#include_next <limits.h>` to pull in
the corresponding header of the C library, and provide a non-user
configurable option `CONFIG_TC_PROVIDES_POSIX_LIMIT_DEFS` that may be set
in order to ensure that the C library version of POSIX limits are used.

Note: this may mean that runtime invariant values are inconsistent with
parts that are actually in use within Zephyr, so applications are
encouraged to use `sysconf()` with external C libraries that implement
parts of the POSIX standard to query system configuration values at
runtime.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-08-29 18:21:10 +02:00
Bjarki Arge Andreasen
db8274a5f9 modem: add versions to all headers
Versions for specific modem modules don't include versions in their
headers, and the chat module did not even define a group.

This commits updates most modem modules to include versions in
their headers. Specifically, the following modules have their
versions set to 1.0.0, as these should no longer be marked
experimental:

- modem_chat
- modem_cmux
- modem_pipe
- modem_pipelink
- modem_ppp
- modem_ubx

Though the modem_ubx was recently refactored, it is tested in CI
and is implemented by two drivers, and has been present since
release 3.7, so it is not marked as experimental.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-08-29 18:19:27 +02:00
Duy Nguyen
de3a78bb9a include: arch: rx: Change the ROM value by using KCONFIG
Change the ROM_START and ROM_SIZE to using KCONFIG option
same as other architecture

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2025-08-29 09:00:50 +02:00
Duy Nguyen
d29af6ff16 arch: rx: Update Exception Vector Table handling for RX
The RXv2, RXv3 feature with a configuration to be able to relocate
the exception vector table by setting the extb register in the
CPU, this commit support to enable the config and code handling
for it

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2025-08-29 09:00:50 +02:00
Lyle Zhu
613dcf327e Bluetooth: Classic: SCO: Get SCO conn info
Save the air_mode to SCO connect object.

Add a structure `struct bt_conn_sco_info` to return the SCO conn info.

Return SCO info through `struct bt_conn_sco_info` when calling the
function `bt_conn_get_info()`.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-08-28 13:59:10 +02:00
The Nguyen
d71b4a1938 boards: shields: add support for rtk0eg0019b01002bj shield
Add Capacitive Touch Application Board RTK0EG0019B01002BJ

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2025-08-28 13:58:43 +02:00
Alex Fabre
714cbd85ec log: backend: net: add const qualifier to hostname
When setting the net log hostname, the string content is not modified.

Signed-off-by: Alex Fabre <alex.fabre@rtone.fr>
2025-08-28 11:32:11 +02:00
Cheng Chang
2768acb856 bluetooth: host: avdtp: Fix command and response format error
There are three aspects of changes involved:
1.  The format of Service Category should be checked  in set
configuration cmd and error code and Service Category
should be detailed in response.
2. There is no  INT Stream Endpoint ID in re_config cmd,.
3. Fail ACP SEID should be added to start and suspend rej rsp.

Signed-off-by: Cheng Chang <cheng.chang@nxp.com>
2025-08-28 06:24:19 +02:00
Emil Gydesen
ef700ec525 Bluetooth: CAP: Remove sid from u->b handover params
The SID is now gettable via bt_le_ext_adv_get_info.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-27 20:52:19 +02:00
Emil Gydesen
bbcbcbfc41 Bluetooth: Adv: Store SID and expose via adv_info
Store the SID in the advertising set, and let it be possible
to get it again via bt_le_ext_adv_get_info.

The SID may be used by higher layers to shared information
about the advertising set.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-27 20:52:19 +02:00
Benjamin Cabé
e7b49592b2 include: drivers: swdp: Add missing doxygen comments
Complete the documentation of swdp.h

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-27 16:35:33 +02:00
Benjamin Cabé
6aa3e9e972 include: lorawan: document deps of clock sync and frag transport APIs
Add Doxygen tags giving users an indication that some API will only be
available if the corresponding Kconfig option is enabled.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-27 16:32:57 +02:00
Benjamin Cabé
993713a47f include: lorawan: remove ifdef-ry
Do not KConfig-gate function declarations as per
Zephyr's API guidelines

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-27 16:32:57 +02:00
Lyle Zhu
5245307512 Bluetooth: GATT: Check len of response before parsing response PDU
In function `parse_read_by_uuid()`, the response length is not checked
before parsing the response PDU. There is a potential issue that the
`len` will be underflowed if the `len` is less than the size of
`struct bt_att_data`.

Check the length before parsing the response PDU. If the length is less
then the size of `struct bt_att_data`, notify the upper layer with the
error `BT_ATT_ERR_INVALID_PDU` and stop the parsing.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-08-27 15:16:47 +02:00
Qiang Zhang
0887ccd660 clock: Add KPP clock support for ccm.
Add KPP clock support for ccm.

Signed-off-by: Qiang Zhang <qiang.zhang_6@nxp.com>
2025-08-27 09:47:10 +02:00
Benjamin Cabé
0928c70f19 include: sensing: doc: documentation improvements
- Move sensing documentation in the "OS Services" group
  and clean up group declarations
- Add missing documentation for the Sensing Subsystem API and complete
  existing docs when it was too terse
- Other grammar/cosmetic improvements

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-26 23:50:47 +02:00
Benjamin Cabé
0f7b1033d5 include: sensing: doc: sensor types doxygen fixes
add missing docs, group types using `@name`

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-26 23:50:47 +02:00
Benjamin Cabé
98b006566d include: ec_host_cmd: doxygen improvements
- add some missing docs
- make sure API guarded by Kconfig is showing up in the docs
- show EC Host Command docs in the Device Management group
- re-arrange groups for backends and simulator API

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-26 22:07:52 +02:00
Raffael Rostagno
6293140ff6 drivers: clock_control: esp32h2: Add support
Add clock control support for ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Raffael Rostagno
5a84b68e61 bindings: clock: intmux: pinctrl: esp32h2: Add defines
Add defines for clock, interrupt management and pin control.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Aleksander Wasaznik
3a8846e947 Bluetooth: Document bt_conn_le_cs_mode and clarify encoding notes
Add API documentation for `bt_conn_le_cs_mode` and internal extractors
for main and sub-mode parts. Clarify that the enum values are an
internal encoding, not a stable API, and that the sub-mode extractor
maps 0 to HCI 0xFF (unused) for a compact representation.

Also mark the extractors as private helpers and tighten wording for
developer clarity.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
2025-08-26 16:14:16 +02:00
Mike J. Chen
ebab75bb73 nvs: support sector_size of 64KB
Allows NVS to work with flash device configured to
use only 64KB block erase. Due to how addresses
are encoded internally in NVS, 64KB is the maximum
sector size. Add a test for this during mount.

Add a native_sim unit test case for 64kb erase block size

Signed-off-by: Mike J. Chen <mjchen@google.com>
2025-08-26 16:13:23 +02:00
Jeppe Odgaard
ddc4479243 shell: mqtt: use topic levels
Change topic from <device_id>_rx (and tx) to <device_id>/sh/rx.

This allows use of wildcards. E.g. subscribe to all devices "+/sh/tx".

Level "sh" is added to the topic to make it less generic and prevent
potential clashes with other topics.

The topic part after <device_id> is configurable via Kconfig.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-08-26 13:25:47 +02:00
Make Shi
240ad5cedc bluetooth: avrcp: Add support for AVRCP browsing
- AVRCP SDP record updates for browsing channel
- L2CAP setup for AVCTP browsing channel, and add connect/disconnect
- Add SetBrowsedPlayer browsing command handling

Signed-off-by: Make Shi <make.shi@nxp.com>
2025-08-26 09:32:21 +02:00
Make Shi
b923bde676 bluetooth: avrcp: provide an API for net buffer allocation
Add bt_avrcp_create_pdu() to allocate net_buf with protocol headroom.

Signed-off-by: Make Shi <make.shi@nxp.com>
2025-08-26 09:32:21 +02:00
Jannik Woernle
b10204b36d kernel: k_pipe: Fixed initializer order
Changed order of Z_PIPE_INITIALIZER to match with k_pipe struct

Signed-off-by: Jannik Woernle <jjw2202@outlook.de>
2025-08-26 08:34:55 +02:00
Daniel DeGrasse
dcb472926c include: zephyr: move disks directory to disk
Move disks directory to disk to match with the naming of the driver
class. This only affects the recently introduced header for STM32 disk
drivers so it should be very low impact.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-08-26 04:07:27 +02:00
Ioannis Damigos
92d092f715 include: drivers: bluetooth: Use DT_ENUM_IDX_OR to get HCI bus from DT
Use DT_ENUM_IDX_OR instead of DT_STRING_UPPER_TOKEN_OR to get HCI bus
from DT, in order to avoid the expansion of UART/SPI/etc. macros when
they exist in vendor's SoC headers.

Fixes #93675

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>

fix
2025-08-26 04:07:10 +02:00
Ioannis Damigos
4920a6d7b1 bluetooth: hci: Remove deprecated IPM HCI bus
Remove deprecated IPM HCI bus.

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
2025-08-26 04:07:10 +02:00
Emil Gydesen
23e0d30a39 Bluetooth: ISO: Expand defines and their text
Add a few missing defines for limits used in ISO.
Add missing units and provide the value in both
hex and decimal (with units) for easier-to-read support.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-25 17:50:33 +02:00
Armando Visconti
03f20f9712 rtio: Add Flush completion queue API
Add API to flush completion queue.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2025-08-25 13:32:11 +02:00
Mark Wang
3544546356 bluetooth: a2dp: implement the get_all_capabilities
From avdtp spec, the get_all_capablities should be used if the avdtp
version is v1.3, otherwise the get_capabilities should be used.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-08-25 13:31:55 +02:00
Mark Wang
d8f35a5baa bluetooth: sdp: add avdtp protocol
get the avdtp version through the bt_sdp_get_proto_param

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-08-25 13:31:55 +02:00
Benjamin Cabé
88de138290 include: gnss: dt-bindings: remove unused header file
This file contains macro definitions for baudrates that are not needed ;
probably leftover from an earlier iteration of the binding that used an
enum for the baudrate(?)

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-25 11:39:58 +02:00
Peter Mitsis
0111cc9030 kernel: Execute function on another CPU
Adds infrastructure to allow the execution of a function on
a different CPU. The function to be executed on another CPU
runs within the IPI handler at ISR level (and is thus subject
to those constraints).

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-08-25 09:12:31 +02:00
Benjamin Cabé
6191f131d4 include: bindesc: doc: doxygen clean-ups
Re-organize groups, including addition of a top level "Binary
Descriptors" group that becomes the main entry in OS Services

Add missing documentation to some API (bindesc_entry, with public
fields, and bindesc_handle, opaque)

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 16:46:43 +02:00
Benjamin Cabé
b69c9c1f10 net: include: icmp: doxygen fixes
Group name was incorrectly used as a brief description ;
used the opportunity to fully clean-up file and group
definition

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 16:46:29 +02:00
Tom Burdick
9c27d72922 rtio: Add a context pool
Adds a context pool that can be used when a number of threads may be
dynamically created to use with RTIO. While the pool has a small cost to
it, the cost of verifying a statically declared kobject likely makes it
worth avoiding dynamically allocating these with the typical
kobject_alloc method. Instead this arena style pool of objects can be
used where the kobject validation uses the gperf hash created at build
time.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2025-08-22 16:45:53 +02:00
Benjamin Cabé
71722b2d40 include: drivers: espi: doxygen comments for espi_evt_data_pvt
follow up to commit 5e3f1dbaa that introduced espi_evt_data_pvt without
full doxygen comments for it.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 14:50:54 +02:00
Benjamin Cabé
f7f84f0a46 include: drivers: misc: Add doxygen docs for NXP FlexIO driver
Add missing doxygen docs for the NXP FlexIO driver and "mount" into the
Misc. drivers doxygen group.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 12:57:03 +02:00
Benjamin Cabé
87138ea36e include: drivers: flash: andes: fix doxygen for Andes XIP flash exops
Use proper Doxygen commands so that 100% of the
andes_flash_xip_api_ex.h header is documented.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 12:38:11 +02:00
Benjamin Cabé
bf6b2366c7 include: drivers: flash: npcx: fix doxygen for NPCX flash exops
Use proper Doxygen commands so that 100% of the
npcx_flash_api_ex.h header is documented.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 12:38:11 +02:00
Benjamin Cabé
aa8e51622b include: drivers: flash: ra: fix doxygen for Renesas RA flash exops
Use proper Doxygen commands so that 100% of the
ra_flash_api_extensions.h header is documented.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 12:38:11 +02:00
Benjamin Cabé
12c705e65b include: drivers: flash: rts5912: fix doxygen for rts5912 flash exops
Use proper Doxygen commands so that 100% of the rts5912_flash_api_ex.h
header is documented.

Note that this uncovers weird usage of in vs. out parameters in the
various functions and might be worth a cleanup as a follow-up.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 12:38:11 +02:00
Benjamin Cabé
d990c20851 include: drivers: flash: stm32: fix doxygen for stm32 flash exops
Use proper Doxygen commands so that 100% of the
stm32_flash_api_extensions.h header is documented.
Removed unnecessary #ifdefs since enums needed not to be guarded from
declaration in the context of the header file.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 12:38:11 +02:00
Benjamin Cabé
f0f4198cc0 include: drivers: flash: Add Doxygen group for flash exops
Add a new Doxygen group for vendor-specific extended operations so that
they can all be properly documented and show up in one place.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 12:38:11 +02:00
Tanguy Raufflet
786d770b46 dt-bindings: stm32mp2_clock.h: add clock for spi peripherals
Add clock bindings for SPI peripherals for the STM32MP2 series.

Signed-off-by: Tanguy Raufflet <tanguy.raufflet@savoirfairelinux.com>
2025-08-22 12:35:56 +02:00