620 Commits

Author SHA1 Message Date
Chris Friedt
25c2aaef9b posix: xsi: streams: deprecate CONFIG_XOPEN_STREAMS (again)
CONFIG_XOPEN_STREAMS does not follow the pattern of other XSI Option
Groups, where the Option Group name is not the same as the feature
test macro that indicates it is supported by the implementation.

Deprecate CONFIG_XOPEN_STREAMS and rename it to CONFIG_XSI_STREAMS.

For more information, please see
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/\
V1_chap02.html#tag_02_01_05_09

Signed-off-by: Chris Friedt <chris@fr4.co>
2026-01-20 13:24:51 +00:00
Gatien Chevallier
624e018a5f nvmem: Add OTP API support
OTP drivers are the interface to One Time Programmable memory, which
is NVMEM. Add the interface with the OTP API to the NVMEM one.

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
2026-01-16 11:42:50 +00:00
Mathieu Choplain
8f5a5bb7cd doc: services: mem_mgmt: cleanup zephyr,memory-attr examples
Remove whitespace between parentheses and value. This seems to be the only
place in tree where such a pattern is found, and it violates the rules of
the Devicetree linter executed by CI.

Replace ARM-specific MPU attributes with their plain variant, also removing
the unnecessary parentheses in the process.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-12 11:55:36 +01:00
Mathieu Choplain
219cdf756a boards: arm: use zephyr:board-supported-hw
Replace legacy hand-mantained tables with the new directive that generates
a table automatically based on platform device tree.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2026-01-06 13:36:30 +00:00
Benjamin Cabé
18c1a63891 doc: fix bad indentation causing elements to render as definition lists
Fixes documents where blocks where indented to the right of their parent
causing them to render as definition lists.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-12-18 23:37:50 +01:00
Tobias Kässer
858acad5ac doc: fix CONFIG_PM_DEVICE_RUNTIME_ASYNC typo
Fixed typo CONFIOG_PM_DEVICE_RUNTIME_ASYNC to
CONFIG_PM_DEVICE_RUNTIME_ASYNC in device runtime PM documentation.

Signed-off-by: Tobias Kässer <t.kaesser@gmail.com>
2025-12-17 10:57:32 +02:00
Benjamin Cabé
fd24cefd01 doc: spelling/typo fixes
minor spelling/typo fixes, mainly around using proper US English

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-12-11 16:32:58 -05:00
Seppo Takalo
392665578c doc: modem: Add documentation regarding CMUX power saving
Add documentation and state machine diagrams for CMUX power saving
feature and how to use it with Zephyr.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-12-04 05:24:38 -05:00
Benjamin Cabé
d55b7be1ac doc: services: crc: add CRC doc page
Add a page for documenting CRC services

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-12-01 12:25:05 -05:00
Benjamin Cabé
da95e8499a doc: services: storage: sort ToC entries alphabetically
Sort entries alphabetically instead of the current somewhat random order.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-12-01 08:27:52 +01:00
Benjamin Cabé
4ee5499f67 doc: storage: nvmem: move nvmem docs under storage
This moves nvmem docs to a better suited home since we already have
a section for all things storage.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-12-01 08:27:52 +01:00
Benjamin Cabé
bd62f24893 doc: storage: fs: move file system docs under storage
This moves fs docs to a better suited home since we already have
a section for all things storage.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-12-01 08:27:52 +01:00
Benjamin Cabé
8c6c350138 doc: storage: retention: move retention docs under storage
This moves retention into a better suited home since we already have
a section for all things storage.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-12-01 08:27:52 +01:00
Kyle Bonnici
589be43e2e devicetree: remaining files
Applying dts-linter results for remaining format files

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2025-11-28 10:09:39 +00:00
Pieter De Gendt
b72da97eec doc: services: nvmem: Mention flash configuration
Add an entry to the configuration section for flash related Kconfig
symbols.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-11-28 09:50:47 +00:00
Benjamin Cabé
4ff7102ed9 doc: services: serialization: add cbor doc page
Add a doc page for CBOR as part of Serialization services

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-11-28 09:50:28 +00:00
Benjamin Cabé
fe2357072e doc: services: serialization: add json doc page
Move the mostly empty doc section from misc to serialization.
Also add basic code snippets.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-11-28 09:50:28 +00:00
Benjamin Cabé
89292a29b9 doc: update references to RFCs using :rfc: role across multiple files
Sphinx has a built-in `:rfc:` role for referencing RFC documents.
This commit updates documentation pages referencing RFCs to use this role.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-11-27 16:05:19 +01:00
Marco Domingo
42d0611ce0 doc: tfm: fix broken reference to mps3 board
Replace the outdated :ref:`mps3_board` reference with the proper
:zephyr:board:`mps3` role to align with current board documentation.

Signed-off-by: Marco Domingo <marco.domingo2@arm.com>
2025-11-24 14:57:46 -05:00
Rodrigo Peixoto
6b321eaffd doc: zbus: Adjust observer types image
Add the Async Listener type to the observer types image.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2025-11-24 08:47:40 +01:00
Rodrigo Peixoto
9463d9a51d doc: zbus: async listeners
Add documentation for async listeners.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2025-11-21 11:42:56 -05:00
Alberto Escolar Piedras
68e4d0c517 doc/services/shell: Fix incorrect variable name
sys_getopt has now its global status variables prefixed.
Let's fix the docs.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-11-20 17:14:57 +00:00
Jamie McCrae
02e6615020 doc: services: pm: device: Fix missing #ifdef
Adds a missing #ifdef for CONFIG_DEVICE_DEINIT_SUPPORT for the
driver deinit function example

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-11-20 17:14:50 +00:00
Jamie McCrae
1cacdf8e43 doc: services: device_mgmt: smp_groups: Add note on single setting
Adds a note that saving single settings is supported, when the
required Kconfig is enabled

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-11-19 15:56:49 -05:00
Tomáš Juřena
598b904d7e doc: smf: Fix return type in event sample
Fix mismatch between `*_run` function return type and implementation.
The run functions return `enum smf_state_result`, but the event-driven
sample defined them as void while still returning a value.

Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
2025-11-19 15:56:18 -05:00
JP Hutchins
43f51cd3ed doc: mcumgr: update smp/smpclient; add smpmgr
smp & smpclient have complete, well-tested, coverage
of the spec. smpmgr application is added.

Signed-off-by: JP Hutchins <jp@intercreate.io>
2025-11-18 17:48:43 -05:00
Jukka Rissanen
22f9ef0a33 sys: getopt: Rename getopt to sys_getopt to avoid conflicts with Posix
Summary:

As Zephyr getopt is not really compatible with Posix getopt, rename
Zephyr getopt to sys_getopt.

Background:

Zephyr getopt module was introduced in #31356 to be used by the shell.
Zephyr's getopt is not the standard one. It has multiple APIs which make
it more suited for a system like Zephyr where different components may
want to use it for different purposes. Including APIs to init it,
get and set its internal state etc.
Several Zephyr modules (shell, net, wifi, ztest) use this getopt with
these special APIs. The getopt module is bundled in the POSIX
compatibility API subsystem (CONFIG_POSIX_C_LIB_EXT).

Problem description:

As it is not the standard getopt(), no C library can possibly provide
a Zephyr compatible version (even if such C library were to provide a
standard getopt()). As it is bundled in Zephyr's POSIX API in
CONFIG_POSIX_C_LIB_EXT), multiple components that depend on it are
selecting CONFIG_POSIX_C_LIB_EXT. Zephyr core components should not
depend on the POSIX API in this way.

Changes done in this commit:

Rename the getopt*() APIs to sys_getopt*() and move them into a module
under lib/utils with its own Kconfig option to enable it.
Zephyr's users are changed to use this new component.
The POSIX subsystem can continue providing getopt() by calling the new
sys_getopt() and in that way retain backwards compatibility for external
users.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-18 10:46:29 -05:00
Jakub Klimczak
f16f3f641e zvfs: Move fdtable into ZVFS
The file descriptor table is used in every area that expects to work on
files through descriptor indices. It can only be operated on through
functions whose names indicate a relationship with ZVFS (`zvfs_*fd*`).
The integer file descriptor mechanism shouldn't be separate from ZVFS.
This will make cooperation between different file access APIs much
simpler. This commit also makes preparations for the fdtable becoming
optional.

Signed-off-by: Jakub Klimczak <jklimczak@internships.antmicro.com>
2025-11-18 08:12:19 -05:00
Zhaoxiang Jin
e5c0abb43b doc: cpu_freq: add details about on-demand policy
add details about on-demand policy

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-11-13 20:46:01 -05:00
Jordan Yates
9251f9d814 doc: llext: document symbol groups
Add documentation for LLEXT symbol groups and the default groups created
by Zephyr.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-11-13 23:19:19 +02:00
Benjamin Cabé
dba7304c98 doc: instrumentation: add documentation for the instrumentation subsystem
Add documentation for the instrumentation subsystem as this was missing
from the initial contribution.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-11-12 09:08:45 -05:00
Jordan Yates
3ad0946ce7 doc: tfm: document output files
Document the useful output files that exist, which files they are
constructed from, and what they can be used for.

Update other sections that are no longer correct with changes.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-11-07 19:23:26 +02:00
Loic Domaigne
6750f4a5d6 doc: services: logging: add limitation when using logging thread name
Add a note about a limitation when using deferred logging + thread name
together with dynamically allocated struct k_thread. This limitation has
been raised in issue #95077.

Signed-off-by: Loic Domaigne <tech@domaigne.com>
2025-11-06 14:02:51 -05:00
Daniel Skinstad Drabitzius
bc9a5ef8c5 doc: services: device_mgmt: add mender-mcu to OTA examples
Add mender-mcu entry to `Examples of OTA` list.

Signed-off-by: Daniel Skinstad Drabitzius <daniel.drabitzius@northern.tech>
2025-11-05 15:22:21 -05:00
Zhaoxiang Jin
393f542e51 doc: cpu_freq: Improve cpu_freq documentation.
Improve cpu_freq documentation.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-11-03 16:59:22 +02:00
Jamie McCrae
2eef80996c doc: services: device_mgmt: smp_groups: Add update on settings save
Adds an optional field which has been added to save by subtree

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-10-31 10:36:42 -04:00
Albort Xue
151e9b8b24 doc: services: pm: use pm_device_runtime_get in power_domain diagram
Update the power domain flow diagram in doc/services/pm/power_domain.rst
to use the current runtime PM API name pm_device_runtime_get instead of
the older pm_device_get. This keeps the documentation consistent with the
renamed device runtime power management APIs.

Signed-off-by: Albort Xue <yao.xue@nxp.com>
2025-10-31 10:35:54 -04:00
Pisit Sawangvonganan
74b3617003 doc: rst: fix typo in (boards, doc, samples)
Utilize a code spell-checking tool to scan for and correct spelling errors
in `.rst` files within the `boards`, `doc`, and `tests` directories.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2025-10-29 10:32:30 +02:00
BUDKE Gerson Fernando
a7fbbb00d3 docs: services: tfm: Add note about confirmed images
Extend the Signing Images section in the build documentation to
highlight the differences between confirmed and unconfirmed images
with respect to the PSA Certified Firmware Update API.

Signed-off-by: BUDKE Gerson Fernando <gerson.budke@leica-geosystems.com>
2025-10-24 13:27:24 -04:00
Anas Nashif
24e094ef5e lib: move cpu_load into lib/os
Move cpu_load to lib/os, as this functionality on its own does not
justify being a subsystem on its own.

Fixes #95498

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-10-22 09:02:38 +02:00
Benjamin Cabé
312688d7ea Revert "posix: xsi: streams: deprecate CONFIG_XOPEN_STREAMS"
This reverts commit b762a43738
which was merged without enough time in review.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-20 11:28:54 -04:00
Chris Friedt
b762a43738 posix: xsi: streams: deprecate CONFIG_XOPEN_STREAMS
CONFIG_XOPEN_STREAMS does not follow the pattern of other XSI Option
Groups, where the Option Group name is not the same as the feature
test macro that indicates it is supported by the implementation.

Deprecate CONFIG_XOPEN_STREAMS and rename it to CONFIG_XSI_STREAMS.

For more information, please see
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/\
V1_chap02.html#tag_02_01_05_09

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-19 20:53:48 -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
Chris Friedt
2b8e614dca doc: posix: move sched_yield() from to POSIX_THREADS_base
Move `sched_yield()` from the `_POSIX_PRIORITY_SCHEDULING` Option to the
`POSIX_THREADS_BASE` Option Group.

For more information, please see
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
Sudan Landge
fed87e6bb4 doc: update TF-M requirements
The TF-M requirements document contained a hard-coded list of Python
packages which is incomplete and can easily drift out of sync with the
TF-M project. Replace this list with a reference to TF-M’s own
``tools/requirements.txt`` so that all required dependencies are covered.

Also update the list of boards that support TF-M.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-10-14 12:53:38 +03:00
Anas Nashif
b827253306 doc: tf-m: fix link to documentation
Fix broken link to docs of TF-M.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-10-09 22:54:44 +03:00
Peter Mitsis
b6cf82768a doc: Update CPU Frequency Scaling for SMP
Update the CPU Frequency Scaling documentation to show that it
works on SMP systems.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Peter Mitsis
014a1e6226 doc: Standardize on P-state
Instead of having a mix of of p-state and P-state, standardize on
P-state for consistency.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Karsten Koenig
d833556ee5 drivers: debug: Moved nrf_etr from misc
Moved the nrf_etr driver from the drive/misc folder into the recently
established driver/debug folder where it is a better fit. Moved the
associated files such as bindings and headers accordingly as well.

Signed-off-by: Karsten Koenig <karsten.koenig@nordicsemi.no>
2025-10-08 10:09:02 +02:00
Siwei Yang
4b71cf9822 lib: smf: add API to get the current leaf and executing state
Retrieve the current leaf state by calling `smf_get_current_leaf_state`
and the state which is currently-executing by calling
`smf_get_current_executing_state`.

Signed-off-by: Siwei Yang <yswysc@gmail.com>
2025-10-07 22:58:58 -04:00