Commit graph

5843 commits

Author SHA1 Message Date
Benjamin Cabé 677219ff1a doc: Allow to control wrapping behavior per table
Backport a useful CSS rule from Godot that allows to have *all* cells of
a table to wrap. This can be useful for list-tables in particular,
where otherwise the first column don't wrap.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-23 14:32:39 +02:00
Alberto Escolar Piedras 421693b574 doc: extend application sphinx extension to support flash arguments
Passing arguments to west flash is needed in many cases
but there was no way to properly generate documentation
with such examples.
With this new "flash-args" option we can now.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-10-23 12:54:31 +02:00
Yong Cong Sin 49d7910aa4 shell: Update doc to include MQTT transport
The Shell MQTT transport was added in #38107, but isn't
mentioned in the Shell documentation.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2023-10-23 12:38:54 +02:00
Rodrigo Peixoto 32bdb24a92 doc: zbus: fix VDED notification sequence figure
The figure and table related to the VDED notification sequence were wrong.
It fixes that by changing the image and adjusting the table content.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2023-10-23 12:37:08 +02:00
Benjamin Cabé 234df43912 doc: samples: expose JSON-LD markup & meta description for code samples
Since samples are starting to leverage the new :zephyr:code-sample
directive, let's use the available  meta data to expose that structured
information to search engines.

This commit adds JSON-LD markup to the HTML output of code sample pages
and sets the meta description to the samples' description.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-23 12:30:51 +02:00
Benjamin Cabé 15515f4c7e doc: samples: exclude CodeSample children during transformation
CodeSample node is meant to be a temporary node that's transformed into
standard docutils nodes. While the node might contain children useful
for the transformation, they're not meant to be included in the result
of the transform.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-23 12:30:51 +02:00
Johann Fischer c152e0980c usb: device: cdc_acm: block in uart_poll_out() routine
According to the UART API documentation, implementation must block when
the transceiver is full. For CDC ACM UART, TX ringbuffer can be
considered as transceiver buffer/FIFO. Blocking when the USB subsystem
is not ready is considered highly undesirable behavior. Blocking may
also be undesirable when CDC ACM UART is used as a logging backend.

Change the behavior of CDC ACM poll out to:
 - Block if the TX ring buffer is full, hw_flow_control property is
   enabled, and called from a non-ISR context.
 - Do not block if the USB subsystem is not ready, poll out
   implementation is called from an ISR context, or hw_flow_control
   property is disabled.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-10-23 11:48:44 +02:00
Martí Bolívar 1d3b8bd879 doc: west: release notes for v1.2
The main new features are a 'west grep' command and a new
'description:' field in the manifest file's 'projects:' elements.

Rather than try to keep the version number in index.rst up to
date, which it frequently is not, just delete the paragraph.

Signed-off-by: Martí Bolívar <mbolivar@amperecomputing.com>
2023-10-21 13:14:57 +02:00
Martí Bolívar 41ca16628f doc: west: API changes for v1.2
These are backwards compatible extensions in keeping with
our promise to adhere to semantic versioning from now on.

Signed-off-by: Martí Bolívar <mbolivar@amperecomputing.com>
2023-10-21 13:14:57 +02:00
Martí Bolívar 26ca13e30a doc: west: manifest file format changes for v1.2
Add information about changes to the file format.

Signed-off-by: Martí Bolívar <mbolivar@amperecomputing.com>
2023-10-21 13:14:57 +02:00
Martí Bolívar cbc41bc854 doc: west: sort west.manifest.Project info by release
For legibility.

Signed-off-by: Martí Bolívar <mbolivar@amperecomputing.com>
2023-10-21 13:14:57 +02:00
Martí Bolívar a4392a31cd doc: west: add docs for west grep
The main documentation for the command itself is in the 'west help
grep' output, so just add an entry in the list of built-in commands.
Document the extra config options as well.

Signed-off-by: Martí Bolívar <mbolivar@amperecomputing.com>
2023-10-21 13:14:57 +02:00
Martí Bolívar fb3961db9f doc: west: sort built-in project commands by name
For convenience

Signed-off-by: Martí Bolívar <mbolivar@amperecomputing.com>
2023-10-21 13:14:57 +02:00
Henrik Brix Andersen 6b60dc4e0d doc: releases: add working draft release notes + guide for v3.6.0
Add working draft for the release notes and migration guide for v3.6.0.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2023-10-20 15:56:41 +01:00
Fabio Baltieri d933e7417f doc: guidelines: add a note about specialized drivers
Add a note about requirements for specialized drivers, clarifying the
requirements about using Zephyr APIs.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-10-20 15:19:58 +02:00
Flavio Ceolin 05fb54b090 doc: security: Update info about tools
Since there are multiple static analysis tools being used
now, it is better to change references for a particular one
and just point to static analysis section in the documentation.

JIRA is no longer used for tracking security issues. Update it
to Github.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-20 15:11:01 +02:00
Anas Nashif 719fee2bbc doc: ztest: adapt ztest docs
Remove remaining usage and documenation of dropped kconfig that is now
the default.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-10-20 15:04:29 +02:00
Dmitrii Golovanov c8d6a62b9d samples: gdbstub: doc: Remove redundant sample
Remove gdbstub sample (samples/subsys/debug/gdbstub) as duplicated
by a test (tests/subsys/debug/gdbstub).

Update the GDB stub documentation.

Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
2023-10-20 15:03:55 +02:00
Seppo Takalo 8ffb64d46f net: lwm2m: Allow configuring update period
Add new configuration value CONFIG_LWM2M_UPDATE_PERIOD
that allows calculating update period from last update,
instead of calculating it from the lifetime.

In runtime, server is allowed to change the lifetime of the
registration which causes update perdiod to be effected.

When fixed update period is preferred, UPDATE_PERIOD
config is then used.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2023-10-20 14:57:38 +02:00
Johan Hedberg bafcf57ac1 doc: release: add Zephyr 3.5 as supported release
Add Zephyr 3.5 as a supported release until July 26th 2024, i.e. when
3.7 is planned to be released.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-10-20 13:20:49 +03:00
Johan Hedberg 0d907c7428 doc: add 3.5.0 to the index of releases
Add the new release to the doc index.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-10-20 13:20:49 +03:00
Fabio Baltieri aa316fbd2e docs: migration-guide-3.5: deduplicate the ram-disk notes
This point ended up being mentioned twice for some reasons.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-10-20 12:07:38 +03:00
Johan Hedberg 97956e402e doc: release: Remove "Working Draft" from titles
Remove "Working Draft" from the release notes and migration guide

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-10-20 09:37:20 +03:00
Johan Hedberg 625d1bfc61 doc: release: 3.5: Remove empty sections
Remove empty sections from the document.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-10-19 22:20:26 +03:00
Johan Hedberg 6597a65b23 doc: release: 3.5: Add more content to the major enhancements
List more items in the "major encements" section.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-10-19 20:07:34 +01:00
Benjamin Cabé 472def94e7 doc: use more modern fonts
Use Noto as baseline font and Inconsolata Nerd Font for source code.
These are both esthetically pleasing and have good Unicode coverage.

NOTE: Unsupported characters (i.e. emojis, at the time of this commit)
are rendered as tofu (i.e. a square).

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-19 21:03:57 +03:00
Benjamin Cabé 201b666ecb doc: use XeLaTeX as TeX typesetting engine
XeLaTeX is a TeX typesetting engine that extends LaTeX with support for
Unicode and modern font technologies such as OpenType.

It is included in all the LaTeX distro recommended for Zephyr so it is
safe to assume it is available to the user interested in building the
PDF documentation locally

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-19 21:03:57 +03:00
Martí Bolívar 64f6ef860a doc: release-notes-3.5: devicetree
Document the changes in this release.

Signed-off-by: Martí Bolívar <mbolivar@amperecomputing.com>
2023-10-19 18:14:04 +01:00
Daniel DeGrasse f190547dda docs: migration-guide-3.5: add note about ramdisk instantiation
Add note to migration guide describing how to instantiate a ramdisk
using devicetree, and calling out Kconfig options that have been removed
with this change

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-10-19 17:42:21 +01:00
Daniel DeGrasse b8e6da0c86 doc: release: 3.5: add release notes for SDHC and Disk drivers
Add release notes for SDHC and disk driver updates merged since 3.4

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-10-19 18:45:11 +03:00
Daniel DeGrasse 7d32b552d0 docs: migration-guide-3.5: add changes for i.MX RT boards
Add migration guide notes for i.MX RT boards, including the following
changes:
- i.MX RT boards must now manually enable
  CONFIG_DEVICE_CONFIGURATION_DATA and CONFIG_NXP_IMX_EXTERNAL_SDRAM
  when required
- SNVS pin names have changed for i.MX RT11xx series boards

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-10-19 16:29:27 +01:00
Andrzej Głąbek 7e5b4219db doc: release: Add v3.5 notes for ADC, I2S, PWM, and Nordic HAL
Add release notes for ADC, I2S, and PWM drivers, and for Nordic HAL.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2023-10-19 16:23:02 +01:00
Johan Hedberg 6f7f80fe8a doc: migration-guide: Reorder the sections more logically
Reorder the sections so that the core/wide impact ones come first (e.g.
Kernel and C-Library) and more specific ones (e.g. architectures) come
last.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-10-19 17:51:39 +03:00
Johan Hedberg 76757a6bf0 doc: migration-guide: Add a link to the release notes
Add a link to the 3.5 release notes from the migration guide.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-10-19 17:51:39 +03:00
Johan Hedberg 7842fd9e4f doc: migration-guide: Remove extra backtick
Remove an extra backtick character.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-10-19 17:51:39 +03:00
Johan Hedberg 75860cd49a doc: release: 3.5: Provide a link to the migration guide
Add a reference from the release notes to the migration guide.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-10-19 10:25:14 +01:00
Johan Hedberg 3e22bb332d doc: release: 3.5: Mention ACPICA library
ACPI support was enhanced for 3.5 by adopting the ACPICA library as a
new module.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-10-19 10:14:50 +01:00
Johan Hedberg 1465c75483 doc: release: 3.5: Add information for new x86 boards
Mention ISH and Intel Alder Lake which which were added for 3.5.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-10-19 10:14:50 +01:00
Anas Nashif 69fd128771 doc: add sections to migration guide
Add sections to the migration guide to make it easier to spot and follow
suggestions of specific areas.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-10-19 11:32:11 +03:00
Evgeniy Paltsev 6076d54d07 doc: release-notes: arc: reword VPX part
Reword VPX part as was requested by @abrodkin

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
2023-10-19 08:52:06 +03:00
Evgeniy Paltsev 47385a93ab doc: add release-notes for ARC architecture and platforms
Add release notes for ARC for 3.5 release

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
2023-10-18 20:26:46 +03:00
Benjamin Cabé cfe667deb8 doc: gsg: fix syntax highlighting of code blocks
Added explicit code blocks throughout the document.

Removed several incorrect uses of "console" language where it should have
been shell or bat.
"console" is only for _bash_ sessions that include a prompt.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-18 18:39:42 +03:00
Benjamin Cabé 70b49c7f51 doc: build: Fix highlighting of code blocks
Set appropriate language for code blocks to show up with the right
syntax highlighting.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-18 18:39:23 +03:00
Yanfeng Liu 4940a31b9e doc: hardware:porting:arch fix typo
remove unnessary item break to fix XIP kernel case.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2023-10-18 18:38:36 +03:00
Benjamin Cabé 86bff1e072 doc: Render app commands with "shell" language
The 'console' language in pygments is for Bash shell session, i.e code
snippets were commands MUST start with a prompt.
The commands rendered by the ZephyrAppCommandsDirective do not include
a prompt, and should therefore be set as "shell".

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-18 15:39:27 +01:00
TOKITA Hiroshi a849303058 doc: release: 3.5: Add note on RaspberryPi Pico related changes
Adds notes on changes about rpi_pico

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2023-10-18 15:19:39 +01:00
Benjamin Cabé d3487c48bf doc: Group linkcheck options together in conf.py
Group all sections related to linkcheck target together.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-18 17:08:19 +03:00
Benjamin Cabé b3a52f4882 doc: Configure copybutton extension for ignoring shell prompts
Add required settings for telling the copybutton Sphinx extension to
ignore prompts when copying a code block.

Both bash prompt and Zephyr UART prompt are ignored.

Examples of the new behavior:

.. code-block:: console

    $ echo "Hello World"
    Hello World

The copied text will be: 'echo "Hello World"'.

.. code-block:: console

   uart:~$ l2cap connect 29
   Chan sec: 1
   L2CAP connection pending
   Channel 0x20000210 connected
   Channel 0x20000210 status 1
   uart:~$ l2cap send 3 14
   Rem 2
   Rem 1
   Rem 0
   Outgoing data channel 0x20000210 transmitted
   Outgoing data channel 0x20000210 transmitted
   Outgoing data channel 0x20000210 transmitted

The copied text will be: 'l2cap connect 29\nl2cap send 3 14'.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-18 17:08:19 +03:00
Vinayak Kariappa Chettimada d15ce54db1 doc: releases: v3.5.0: Add Bluetooth release notes
Add Bluetooth release notes for Zephyr v3.5.0.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2023-10-18 13:52:12 +01:00
Benjamin Cabé 57c17da528 doc: devicetree: Fix highlighting of code blocks
Make sure devicetree code blocks all have proper pygments language set.
Fixed a few other "none" code blocks as well.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-18 13:22:45 +03:00
Benjamin Cabé edf9435a68 doc: guidelines: Properly highlight .rst snippets
This commit fixes syntax higlighting of all the reStructuredText
snippets in the documentation guidelines by setting default
higlighting language to rst.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-18 13:18:43 +03:00
Benjamin Cabé 02226208bf doc: intro: cleanup VFS section
* add mention of ext2 as a supported file system.
* remove unnecessary mention to configurability and logging since it's
  not unique to VFS.
* capitalize FatFS properly

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-18 13:17:57 +03:00
Benjamin Cabé 00fc22a44a doc: porting: Set proper languages for syntax highlighting
Make sure devicetree, kconfig, etc. code snippets all have proper
pygments language set.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-18 13:16:34 +03:00
Benjamin Cabé 1be457f280 doc: kconfig: Add syntax highlighting for Kconfig snippets
Add proper pygments settings to make Kconfig snippets look pretty.
Also fixed a few config and devicetree code blocks.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-18 13:15:51 +03:00
Benjamin Cabé 822904733e doc: twister: syntax highlight + formatting cleanups
- Added language info to code-blocks when relevant (ex. for yaml
  snippets)
- Formatted grammar for expression language as antlr and added
  syntax highlighting
- Fixed various formatting issues with lists, definition lists...

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-18 10:13:19 +01:00
Emilio Benavente b2b2afc672 docs: migration-guide-3.5: LPC55XXX Clock Init
The inclusion of this note in the migration guide
explains the clocking change that occured in the
LPC55XXX soc as well as the added Kconfig that toggles
the PLL1 from being initialized. Also updated the
lpc board docs to state the correct System
Clock Value.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2023-10-18 09:47:24 +03:00
Benjamin Cabé 447d19b701 doc: smf: Properly highlight C code
Set default syntax highlighting language to C for this page.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-18 09:46:28 +03:00
Bjarki Arge Andreasen 8fada11761 doc: releases: Add modem modules to release notes 3.5
This commit adds an entry for the modem modules to
the release notes for release 3.5

Signed-off-by: Bjarki Arge Andreasen <bjarkix123@gmail.com>
2023-10-17 21:58:30 +03:00
Bjarki Arge Andreasen 61e8793292 doc: services: Add modem entry
This commit adds an entry for the modem subsystem in the
services documentation section.

Signed-off-by: Bjarki Arge Andreasen <bjarkix123@gmail.com>
2023-10-17 21:58:30 +03:00
Bjarki Arge Andreasen cc03017b13 doc: _doxygen: define modem group
Add @defgroup for modem APIs

Signed-off-by: Bjarki Arge Andreasen <bjarkix123@gmail.com>
2023-10-17 21:58:30 +03:00
Benjamin Cabé 32918ddd92 doc: Fix broken references to Kconfig options
Fixed a few occurrences of incorrect references to Kconfig options
(missing the CONFIG_ prefix)

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-17 19:50:39 +01:00
Flavio Ceolin 4b930e888d doc: migration-guide-3.5: Power management update
Add information about power management required changes.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-17 17:41:30 +01:00
Flavio Ceolin dbfd1971d8 doc: release: Add power management relnotes for 3.5
Add relevant power management notes for 3.5 release.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-17 17:41:30 +01:00
Benjamin Cabé 54f51cbcb3 doc: intro: fix improper definition list
add missing blank line to not have the sentence render as a definition
list.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-17 19:05:20 +03:00
Rodrigo Peixoto 475361b22c doc: releases: v3.5.0: zbus release notes
Add the changes of zbus during the Zephyr v3.5.0 development.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2023-10-17 15:34:39 +03:00
Benjamin Cabé 9e9f439522 doc: releases: clean-up release notes section
The contents of the Release notes section was partly outdated and partly
misplaced. Moved the relevant bits to the actual intro of the doc.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-17 13:43:43 +03:00
Benjamin Cabé 1b34ddae96 doc: releases: Move release notes of EOL releases to a dedicated page
The ever growing list of release notes for past releases was making it
too easy to miss the migration guide for the latest release. This commit
moves the release notes for EOL releases to a dedicated page.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-17 13:43:43 +03:00
Flavio Ceolin b1b8b3b4d0 doc: migration-guide-3.5: Random subsys update
Add information about header name changes.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-17 13:19:02 +03:00
Andrei Hutanu 9fcc609237 docs: mem: slabs: fix for mem_slab docs snippets
Attempting to run the memory slab docs snippets will
result in build issues. This PR is an attempt to fix
those.

Signed-off-by: Andrei Hutanu <andrei.hutanu.i@gmail.com>
2023-10-17 13:17:56 +03:00
Tom Burdick edfddd6a11 docs: releases: RTIO Release Notes for 3.5
Adds release notes for the RTIO subsystem for 3.5 with notable bug
fixes, changes, and feature additions.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2023-10-17 13:17:01 +03:00
Tom Burdick b272760f06 docs: releases: Adds I2C release notes for 3.5
Adds a subset (there was a lot!) of notable fixes, features, and driver
additions for I2C

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2023-10-16 22:32:55 +03:00
Tom Burdick cb9230ee30 docs: releases: Add DMA release notes for 3.5
Adds notable bug fixes, driver additions, and feature additions to the
DMA API and drivers in 3.5.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2023-10-16 22:26:44 +03:00
Flavio Ceolin 90b9809c6f doc: security: cve-2023-4257 left embargo
Disclose information about cve-2023-4257.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-14 18:43:49 +03:00
Flavio Ceolin 52cf7e6fdf doc: vuln: Add information about CVE-2023-4263
Information about CVE-2023-4263

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-14 18:43:27 +03:00
Flavio Ceolin bcd3882f88 doc: release: 3.5: Add info about CVE-2023-4263
Add CVE-2023-4263 info to release notes.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-14 18:43:27 +03:00
Benjamin Cabé 8ec1a27920 doc: ring_buffer: fix typos and incoherences
Fixed an incorrect mention of buffer size being expressed in 32-byte
words for data item mode when it's in fact 32-bit.
Fixed a few broken references to C functions and structs.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-14 18:42:34 +03:00
Declan Snyder dde691bdd4 doc: migration-guide-3.5: LPC DMA dma-channels
Include in migration guide about how the meaning of dma-channels
to the LPC DMA driver has been changed/fixed, which will
affect downstream boards, and information about the new Kconfig
achieving the old functionality of dma-channels.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2023-10-14 10:52:35 +03:00
Maureen Helm e9a8497b0d doc: release: Add sensor release notes for v3.5.0
Added comments about new drivers, bug fixes, and enhancements made to
sensor drivers since the last release.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2023-10-13 23:04:11 +03:00
Flavio Ceolin 49d4ad9315 doc: vuln: Add information about CVE-2023-5563
Information about CVE-2023-5563

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-13 20:19:51 +03:00
Flavio Ceolin 5e10b34a56 doc: release: 3.5: Add info about CVE-2023-5563
Add CVE-2023-5563 info to release notes.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-13 20:19:51 +03:00
Peter Mitsis e9987aabbc kernel: Remove legacy mem block from mailbox
Memory blocks are a legacy feature and are to be removed from
mailboxes.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2023-10-13 09:56:02 +03:00
Jamie McCrae 16bb226593 doc: release: 3.5: Add note on 2 fixed MCUmgr bugs
Adds notes on a fixed settings_mgmt and fs_mgmt bug

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-10-12 16:06:44 +03:00
Daniel Leung 04a0cf7d79 kernel: deprecate K_THREAD_STACK_MEMBER
The macro K_THREAD_STACK_MEMBER has actually been deprecated
since v2.4.0 in the macro doxygen description, but it was
never marked with __DEPRECATED_MACRO. Since this was being
used in various drivers, make it follow the deprecation
process.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-10-12 11:07:00 +01:00
Yanfeng Liu a275e45c85 doc: build:kconfig:settings rewise CONF_FILE description
make item#2 as part of item#1 to reduce confusions.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2023-10-12 09:47:19 +03:00
Yanfeng Liu fc682c35a2 doc: build:kconfig:settings align with guidelines
use unnumbered list to align with guidelines

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2023-10-12 09:47:19 +03:00
Rodrigo Peixoto 28eb47922e doc: zbus: add entries to the migration guide
ZBus had one break change related to the runtime observers'
configuration, and the VDED delivery sequence has changed. This commit
adds entries on the migration guide about the mentioned changes.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2023-10-11 22:33:40 +03:00
Rodrigo Peixoto d2001eeb96 doc: zbus: update documentation with changes for 3.5
Add documentation for the new way to storage observers, the message
subscribers, and the confirmed message sample.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2023-10-11 22:33:40 +03:00
Martí Bolívar 9ceb8ce10a doc: west: build: fix info on --pristine default
In commit commit c19c6fb438
("Revert "scripts: west build: default build.pristine to auto""),
we set the default --pristine value back to 'never', but the
documentation never got updated. Fix it.

Signed-off-by: Martí Bolívar <mbolivar@amperecomputing.com>
2023-10-11 09:47:23 -07:00
Kevin Townsend 905b7dbf3b doc: releases: Rename Arm to Arc
Fixes a typo in the release notes where two 'Arm' entries were
present, and the first should have been 'Arc'.

Signed-off-by: Kevin Townsend <kevin.townsend@analog.com>
2023-10-11 18:44:09 +03:00
Filip Kokosinski 739bbbb153 doc/releases/release-notes-3.5: add RISC-V release notes
This commit adds RISC-V release notes for Zephyr v3.5.0.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2023-10-11 14:13:15 +03:00
Marcin Gasiorek 47822586e4 doc: Remove two redundant characters in rst file
Remove additional dot and bracket.

Signed-off-by: Marcin Gasiorek <marcin.gasiorek@nordicsemi.no>
2023-10-11 11:10:05 +02:00
Martin Jäger b1cc4e9a14 doc: releases: release-notes-3.5: update CAN ISO-TP
Add sections for CAN ISO-TP changes in this release and describe API
changes in migration guide.

Signed-off-by: Martin Jäger <martin@libre.solar>
2023-10-11 09:38:08 +03:00
Erwan Gouriou e0192e1287 doc: release note 3.5: Document Shields additions
Document shields added in V3.5 release.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2023-10-11 00:20:45 +03:00
Erwan Gouriou dc3295608a doc: migration guide 3.5: Document STM32 changes
Document STM32 breaking or not backward compatible changes made on V3.5
release.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2023-10-11 00:20:45 +03:00
Erwan Gouriou 01c31f2dc5 doc: release note 3.5: Document STM32 changes
Document STM32 related changes made on V3.5 release.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2023-10-11 00:20:45 +03:00
Martin Jäger 13e0abf4a5 doc: releases: release-notes v3.5: update DAC driver
Add section for added DAC drivers in this release.

Signed-off-by: Martin Jäger <martin@libre.solar>
2023-10-10 21:24:03 +01:00
Flavio Ceolin cd291e5c98 doc: release: 3.5: Add info about CVE-2023-4259
Add CVE-2023-4259 info to release notes.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-10 21:11:33 +03:00
Flavio Ceolin b1fdce6336 doc: vuln: Add information about CVE-2023-4259
Information about CVE-2023-4259

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-10 21:11:33 +03:00
Fabian Blatz c5064cf708 doc: release-notes: Add 3.5.0 release notes for LVGL
Added section for LVGL changes done for release 3.5.0.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2023-10-10 17:44:24 +03:00
Robert Lubos fdaba20b2c doc: net: Add page for net_time
So that the type is visible and "referencable" in the documentation.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-10-10 16:27:32 +03:00
Robert Lubos ae109c6ea5 doc: release-notes: Add 3.5.0 release notes for networking
Add 3.5.0 release notes for networking.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-10-10 16:27:32 +03:00
Jamie McCrae 365a6f5da0 doc: retention: Add note on mutex configuration
Adds a note on how to configure and what to beware of when
disabling mutex support in a multithreading application

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-10-10 16:27:10 +03:00
Jamie McCrae 9ea9c85f00 doc: retained_mem: Add note on mutex configuration
Adds a note on how to configure and what to beware of when
disabling mutex support in a multithreading application

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-10-10 16:27:10 +03:00
Jordan Yates c928e3b125 doc: release-notes: Add 3.5.0 notes for LoRaWAN
Document the upgrade from v4.6.0 to v4.7.0.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2023-10-10 14:04:44 +03:00
Flavio Ceolin 5f53d4977f doc: relnotes: 3.5: Random subsys release notes
Information about the removal of a deprecated symbol.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-10 12:42:58 +03:00
Flavio Ceolin 0c040501e6 doc: relnotes: 3.5: Entropy drivers release notes
Add relevant information about entropy drivers.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-10 12:42:58 +03:00
Daniel Leung 54c7cdb6a1 doc: release/3.5: add bits about UART drivers
This adds some bits on additions and changes for UART drivers.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-10-10 10:42:41 +01:00
Daniel Leung 73acdbbcaf doc: release/3.5: add bits about shadow variable warning
This adds bits about partially enabling warnings on shadow
variables for a subset of in-tree code.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-10-10 10:42:41 +01:00
Daniel Leung e28a80d42b doc: release/3.5: add bits about userspace and syscalls
This adds bits about changes related to userspace and syscalls.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-10-10 10:42:41 +01:00
Daniel Leung 61f939da30 doc: release/3.5: added bits on I3C driver changes
This adds some bits about changes to the I3C CDNS driver.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-10-10 10:42:41 +01:00
Daniel Leung 83a6223da2 doc: release/3.5: add bits for PCIe
This adds some bits about changes on PCIe subsystem.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-10-10 10:42:41 +01:00
Daniel Leung f0d71f54d9 doc: release/3.5: add some bits on Xtensa
This adds some bits on added Xtensa MMU support, refactoring of
ESP32 folder, and various board additions/removals.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-10-10 10:42:41 +01:00
Jukka Rissanen d52cb2202f doc: release: 3.5: Add Ethernet and Wi-Fi info
Add changes to Ethernet and Wi-Fi drivers for v3.5.
Also add information about generic Ethernet and Wi-Fi changes.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2023-10-10 11:18:04 +02:00
Henrik Brix Andersen f09b67b304 doc: release: Fix formatting of bullet lists
Without the extra newline, Sphinx does not render bullet lists correctly.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2023-10-09 21:22:07 +03:00
Pieter De Gendt 9473b638b6 doc: release-notes: Add 3.5.0 release notes for nanopb
Added section for nanopb changes done for release 3.5.0.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2023-10-09 19:07:11 +03:00
Gerard Marull-Paretas 474aa963ff doc: migration-guide: inform about device dependencies changes
Device dependencies are now optional, before they were always built.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2023-10-09 13:51:58 +01:00
Gerard Marull-Paretas f767cf48c9 doc: migration-guide: inform about CMSIS header changes
arch headers are deprecated, header in CMSIS glue code must be used
instead.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2023-10-09 13:51:58 +01:00
Gerard Marull-Paretas a7cbfa4970 doc: migration-guide: inform about NMI_INIT removal
It may be needed by out-of-tree ARM SoCs.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2023-10-09 13:51:58 +01:00
Gerard Marull-Paretas c4a579c5da doc: migration-guide: add PM/poweroff changes
Inform about required changes related to PM/poweroff.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2023-10-09 13:51:58 +01:00
Gerard Marull-Paretas 2d3ea64d05 doc: migration-guide: inform about GPIO optional ops changes
Related to https://github.com/zephyrproject-rtos/zephyr/pull/62394
changes.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2023-10-09 13:51:58 +01:00
Gerard Marull-Paretas f7c21e5dd2 doc: release-notes: add documentation infra changes
Only relevant thing: Sphinx upgrade.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2023-10-09 13:51:58 +01:00
Gerard Marull-Paretas 28c9c7b41d doc: release-notes: add regulator API changes
Add relevant changes to the regulator area.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2023-10-09 13:51:58 +01:00
Henrik Brix Andersen a27d281722 doc: release-notes: add CAN release notes for v3.5.0
Add CAN related release notes for Zephyr v3.5.0. API changes are already
described in the migration guide for v3.5.0.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2023-10-09 15:27:17 +03:00
TOKITA Hiroshi 73f45f6573 doc: migration-guide: add notes on SSD1306 Kconfig changes
Some SSD1306 Kconfig options replaced by dts to make able to
configure per device.
Add the description how to migrate it.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2023-10-09 15:06:35 +03:00
Henrik Brix Andersen 80997cc98f doc: release-notes: add EEPROM release notes for v3.5.0
Add EEPROM related release notes for Zephyr v3.5.0.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2023-10-09 15:02:13 +03:00
Christopher Friedt 9cd81c1640 doc: release: 3.5: (partial) kernel release notes
Include dynamic thread stack allocation and support for
k_spin_trylock().

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-10-09 06:14:12 -04:00
Christopher Friedt 086dd2e03c doc: release: 3.5: add posix api release notes
Add release notes with  POSIX API updates for v3.5.0.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-10-09 06:08:17 -04:00
Christopher Friedt b0a3736eff doc: posix: add posix timers and clock selection
Update the POSIX API documentation with details on
POSIX_TIMERS and POSIX_CLOCK_SELECTION.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-10-09 06:08:17 -04:00
Flavio Ceolin 29f6ea431d doc: vuln: Add information about CVE-2023-3725
Information about CVE-2023-3725

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-09 10:16:53 +02:00
Flavio Ceolin 49e811bb2d doc: release: 3.5: Add info about CVE-2023-3725
Add CVE-2023-3725 info to release notes.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-09 10:16:53 +02:00
Peter Mitsis d66cf91706 doc: Add missing threads references to object cores
Two references to the integration of object cores with threads were
missing from the documentation. This fixes that.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2023-10-09 10:16:46 +02:00
Benjamin Cabé a601b43ef8 security: doc: add missing headings
Add headings for 2022 and 2023 CVEs to make document navigation easier.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-06 13:58:51 +01:00
Flavio Ceolin 9a1c5e2603 doc: release: 3.5 Add info about CVE-2023-4260
Add CVE-2023-4260 info to release notes.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-06 12:20:46 +01:00
Flavio Ceolin 4667a0c07e doc: vuln: Add information about CVE-2023-4260
Information about CVE-2023-4260

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-06 12:20:46 +01:00
Benjamin Cabé 6db5d84dbb doc: Improve "Contributing to Zephyr" landing page
The "Contributing to Zephyr" page used to be a simple table of contents
with pointers to sub-pages. This bland page was not very inviting to new
contributors, and provided little to no context as to what to expect in
each sub-section. This commit improves the landing page by implenmenting
the following changes:

- Remove auto toctree and replace with manually curated entries that
  provide more context about each sub-section.
- Add a section about the Zephyr Contributor Badge.
- Add a section about getting help, with links to Discord and dev
  mailing list.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-06 09:28:10 +02:00
Benjamin Cabé 620f6b9a6d doc: guidelines: remove stale mention to nightly builds
Drop the mention to nightly builds being posted to the build@ mailing
list.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-06 09:28:10 +02:00
Benjamin Cabé 3ba4b6f95b doc: Improve documentation guidelines intro
The intro of this document was starting to show its age. Simplified
some of the wording and added a reference to the documentation build
instructions.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-06 09:28:10 +02:00
Jamie McCrae b3c5150753 doc: release: 3.5: Add fixed bug to MCUboot log
Adds a note on a bug being fixed with align on non-swap modes

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-10-06 09:17:06 +02:00
Flavio Ceolin 66d76d4afa doc: vuln: Add CVEs under embargo
Add placeholders for CVEs under embargo.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-05 09:13:53 +01:00
Flavio Ceolin 78f24b0a27 doc: release: 3.5 Add CVEs under embargo
Add CVEs fixed that are under embargo.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-05 09:13:53 +01:00
Flavio Ceolin 078967671c doc: vuln: Add information about CVE-2023-4264
Information about CVE-2023-4264

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-04 21:46:57 +03:00
Flavio Ceolin e9e698e4f1 doc: release: 3.5 Add info about CVE-2023-4264
Add CVE-2023-4264 info to release notes.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-04 21:46:57 +03:00
Fabio Baltieri 2f64ac9ab6 doc: release: add 3.5 change and release notes about bq274xx
Few channels of this driver were using the wrong units, add a note
pointing out that this needs a matching change in any application using
them.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-10-04 16:19:24 +01:00
Fabio Baltieri 761dac4fa7 doc: release: add 3.5 add build time checking release notes
Add few notes about the change in build time priority cheking and the
new initlevels target.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-10-04 16:19:24 +01:00
Fabio Baltieri 9eaa6a2798 doc: release: add 3.5 migration notes about CONTAINER_OF
Add a migration note entry about CONTAINER_OF type checking for the
k_work use case. This was common enough that it's probably worth a note
pointing at the conversion function.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-10-04 16:19:24 +01:00
Fabio Baltieri a51593b8fa doc: release: add 3.5 input notes and migration guide
Add 3.6 release notes and migration guide for various changes in the
input subsystem.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-10-04 16:19:24 +01:00
Benjamin Cabé f7f8acaf03 doc: remove instructions regarding numbered steps
"Numbered steps" were dropped a long time ago in a previous revamp of
the stylesheet, so dropping instructions related to them in the
documentation guidelines.

Also remove unecessary mention to "how to build the doc" as it's
already mentioned as a note at the top of the document.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-04 15:05:31 +01:00
Benjamin Cabé ce15b5af0c doc: gsg: remove unused numbered steps
There used to be a dedicated style to number headings in a .rst document
but there is currently no actual stylesheet for it, and the added value
 is somewhat limited: dropping the associated directive from the GSG.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-04 15:05:31 +01:00
Nicola Guerrera 93beac7a69 docs: update sha256 for SDK
Update sha256.sum urls to 0.16.3 in index.rst and
installation_linux.rst.

Signed-off-by: Nicola Guerrera <guerrera.nicola@gmail.com>
2023-10-04 14:52:25 +01:00
Jamie McCrae b375092441 doc: services: device_mgmt: smp_group_0: Tidy documentation
Minor doc changes

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-10-04 10:29:08 +03:00
Flavio Ceolin 15aa3acaf6 kconfig: Remove MP_NUM_CPUS usage
Zephyr's code base uses MP_MAX_NUM_CPUS to
know how many cores exists in the target. It is
also expected that both symbols MP_MAX_NUM_CPUS
and MP_NUM_CPUS have the same value, so lets
just use MP_MAX_NUM_CPUS and simplify it.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-03 17:45:53 +01:00
Robert Lubos 3f39f70799 doc: api: Update link for connection manager
Update link for connection manager in API overview page.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-10-03 15:38:18 +01:00
Flavio Ceolin e3dc860429 doc: vuln: Add information about CVE-2023-4262
Information about CVE-2023-4262

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-03 15:36:28 +01:00
Johann Fischer a2a21e6dcf doc: release: add migration guide for RAM disk driver
Add migration guide and devicetree example for RAM disk driver.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-10-03 14:41:49 +01:00
Alberto Escolar Piedras 8f5b3334ed doc: release: 3.5: native boards updates
Release notes content related to the POSIX arch
and native boards.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-10-03 14:24:17 +01:00
Jamie McCrae ea4a463cc0 doc: release: 3.5: Add additional retention change note
Adds a note on the change to disable retention system mutex
support

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-10-02 17:00:28 +01:00
Jamie McCrae d0b1031593 doc: release: 3.5: Add retained memory changes
Adds notes on changes to retained memory

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-10-02 17:00:28 +01:00
Jamie McCrae 12639b6860 doc: release: 3.5: Add additional MCUmgr changes
Adds some additional notes on changes to MCUmgr in 3.5

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-10-02 17:00:28 +01:00
Jamie McCrae c80750ec9c doc: release: 3.5: Add MCUboot release notes
Adds the changes in MCUboot to this release

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-10-02 17:00:28 +01:00
Jamie McCrae 7e37df33de doc: migration-guide: 3.5: Add note on SMP version 2 error handlers
Adds a note about required changed for Zephyr 3.4 SMP version 2
error translation handlers in Zephyr 3.5 (or newer)

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-10-02 17:00:28 +01:00
Jamie McCrae 2aafc0d4d7 doc: release: 3.5: Correct word in MCUmgr update
Changes wrong word transport to group

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-10-02 17:00:28 +01:00
Flavio Ceolin 3d91b927c2 doc: release: 3.5: Add info about CVE-2023-5184
Add CVE-2023-5184 to 3.5 release notes.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-02 16:58:21 +01:00
Flavio Ceolin 390fcd9adf doc: vuln: Add information about CVE-2023-5184
Information about CVE-2023-5184

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-02 16:58:21 +01:00
Donatien Garnier 6de57d0985 Bluetooth: Host: Document required changes for L2CAP accept() callback
Add a required change in the migration guide to document the changes
to the accept() callback in struct bt_l2cap_server.

Signed-off-by: Donatien Garnier <donatien.garnier@blecon.net>
2023-10-02 15:24:05 +02:00
Anas Nashif ebc8fdac4f doc: fix link to manifest listing and documentation
Point to the correct page referencing manifest entries.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-10-02 14:52:10 +02:00
Anas Nashif dd7532dcf9 doc: add manifest extension
Generate index of west projects and information about them.
Based on an extension from sdk-nrf repo.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-10-01 09:21:50 +03:00
Anas Nashif f00b4a8a15 doc: modules: integration modes
Document integration modes of modules.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-10-01 09:21:50 +03:00
Peter Mitsis 1afc32e762 doc: Add object core documentation
Adds documentation for both object cores and object core statistics.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2023-09-30 08:04:14 +03:00
Tom Burdick 09f38b5f20 docs: Add documentation for llext
Adds a basic overview and API docs for llext.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2023-09-29 20:50:38 -04:00
Anas Nashif 34e16225eb neural_net: remove unused experimental API
Experimental API is not being used anymore, remove it.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-09-29 20:48:33 -04:00
Benjamin Cabé a6f8935e4f doc: sphinx.util.progress_message is deprecated
As of Sphinx 6.1, sphinx.util.progress_message is deprecated and
sphinx.util.display.progress_message should be used instead.

See https://www.sphinx-doc.org/en/master/changes.html#id165

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-29 20:57:30 +03:00
Grzegorz Swiderski f62c805a3d doc: board_porting: Extend the board extensions section
Tweak a few sentences and add a basic example, to fit in with the
overall document a little better. Also, fix an invalid cross-reference.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2023-09-29 16:29:49 +02:00
Grzegorz Swiderski 491901d605 doc: board_porting: Move the board extensions section
It was awkwardly placed in the middle of the "Write your devicetree"
section, breaking up the flow of the guide. A more natural placement
would be underneath "Contributing your board", considering that this
feature deals with boards already submitted to Zephyr.

Let's relocate this part and swap two of its paragraphs in the process,
to motivate the feature before describing it.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2023-09-29 16:29:49 +02:00
Anisetti Avinash Krishna d2af54fc02 doc: devlop: api: Added TGPIO api overview
Added TGPIO API overview as experimental.

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
2023-09-29 16:28:09 +02:00
Anisetti Avinash Krishna db70b8ed11 doc: hardware: peripherals: Added tgpio.rst
Added tgpio.rst file for documentation generation.

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
2023-09-29 16:28:09 +02:00
Juha Heiskanen 647fb4dc8f net: lwm2m: RD client Deregister event indicate
Added a new event for LWM2M_RD_CLIENT_EVENT_DEREGISTER for
indicate LwM2M client dereistartion.

Updated unit test and sample for new event type

Signed-off-by: Juha Heiskanen <juha.heiskanen@nordicsemi.no>
2023-09-29 16:53:55 +03:00
Evgeniy Paltsev 5133f62523 doc: twister: add chapter about managing tests timeouts
Document timeout_multiplier board.yaml option and
--timeout-multiplier twister option.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
2023-09-29 12:59:31 +02:00
Maureen Helm d5287578fe dts: bindings: boards: Update Ethernet PHY to use reg property
Updates Ethernet PHY devicetree bindings to be more consistent with
Linux by using the standard `reg` property for the PHY address instead
of a custom `address` property. As a result, MDIO controller bindings
now require standard `#address-cells` and `#size-cells` properties.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2023-09-29 09:47:15 +02:00
Yonatan Schachter 0bc277b7a0 release-notes: Added binary descriptors
Added binary descriptors to the release notes, under
"Libraries / Subsystems".

Signed-off-by: Yonatan Schachter <yonatan.schachter@gmail.com>
2023-09-28 23:04:47 +03:00
Henrik Brix Andersen ddd2b490b0 doc: releases: update v3.5 migration guide with changes in CAN timing
Update the migration guide for v3.5 to mention the changes related to
setting CAN timing.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2023-09-28 16:28:56 +02:00
Dominik Ermel 7668b4fbb3 doc/services/device_mgmt: Bootloader info request definition
Specification for MCUmgr OS group command allowing to query
for bootloader information.
Provide information on supported MCUboot parameters query by MCUmgr
group OS.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2023-09-28 16:27:45 +02:00
Dominik Ermel 83d69f50ad doc/release-notes: MCUboot overwrite mode Kconfig info
Note on CONFIG_MCUBOOT_BOOTLOADER_MODE_OVERWRITE_ONLY.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2023-09-28 16:27:45 +02:00
Grant Ramsay a8497c5216 kernel: msg_q: Remove alignment requirements from message queue docs
Alignment of the message queue's ring buffer is not necessary.
The underlying implementation uses memcpy (which is
alignment-agnostic) and does not expose any internal pointers

Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
2023-09-28 16:14:56 +02:00
Florian Grandel e63969521c doc: ieee802154: mgmt: improved docs
Hides types in the IEEE 802.15.4 net_mgmt sub-API that are of no public
interest and improves documentation of the remainder.

All constants that are not meant to be used by applications have been
hidden. Only the API actually being of relevance to application
developers is now publicly visible and documented.

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2023-09-28 15:13:12 +02:00
Florian Grandel 9864d03c6e doc: openthread: integrate ot/ieee802154 docs
Integrates and cross-references OpenThread and native IEEE 802.15.4 docs
as they share a common driver layer.

While OpenThread is of course not an IEEE 802.15.4 subsystem API it is
still included in the ieee802154 documentation group, purely for
convenience to the documentation readers.

For organizational purposes OT is considered a separate area of
maintenance and therefore keeps its dedicated documentation page - but
the two subsystems now cross-reference each other for convenience.

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2023-09-28 15:13:12 +02:00
Florian Grandel 80fc350849 doc: ieee802154: improved API documentation structure
Improves the API documentation including it's structure and integration
into the Zephyr documentation.

Previously the API status of the IEEE 802.15.4 API (and its sub-APIs)
was unclear.

This change adds three APIs in an "unstable" state:
- IEEE 802.15.4 L2 for subsystem developers
- IEEE 802.15.4 drivers for driver developers
- IEEE 802.15.4 net_mgmt for application developers

The corresponding APIs are documented at a group level.

These sub-APIs need to be separately versioned as they have different
audiences, change velocities and levels of stability.

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2023-09-28 15:13:12 +02:00
Florian Grandel 0fad581211 doc: connectivity/networking/utils: minor fixes
Fixes bugs in USB and DSA group titles (networking) and a minor bug in
sys/utils.

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2023-09-28 15:13:12 +02:00
Georges Oates_Larsen 98a506f341 net: conn_mgr: Write documentation
Write documentation for conn_mgr and its subsystems, especially
guidelines for writing connectivity implementations

Signed-off-by: Georges Oates_Larsen <georges.larsen@nordicsemi.no>
2023-09-28 15:11:14 +02:00
Yonatan Schachter 726e14e475 doc: bindesc: Add documentation for binary descriptors
Add documentation for binary descriptors under "OS Services"

Signed-off-by: Yonatan Schachter <yonatan.schachter@gmail.com>
2023-09-28 07:39:09 -04:00
Pavel Vasilyev b2c163e108 doc: Bluetooth: Mesh: Fix line width to 100 in mesh docs
From Codying Style guideline:
https://docs.zephyrproject.org/latest/contribute/guidelines.html#coding-style

`The line length is 100 columns or fewer. In the documentation, longer
lines for URL references are an allowed exception.`

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2023-09-28 09:33:37 +02:00
Jamie McCrae 14fe04dbf3 doc: release: 3.5: Add note on new blinfo subsystem
Adds a note that a new retention module, bootloader information
(blinfo) has been added

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-09-27 20:18:31 -04:00
Jamie McCrae 3205a5865d doc: api: Add blinfo as experimental
Adds blinfo as an experimental API

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-09-27 20:18:31 -04:00
Jamie McCrae 4fe6f52175 doc: retention: Add blinfo subsystem documentation
Adds some documentation on how to use the new subsystem

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-09-27 20:18:31 -04:00
Flavio Ceolin 59c501c6df doc: security: Add information about backports
Clarify about how to proceed with backports for vulnerabilities.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-09-27 20:15:56 -04:00
Anas Nashif 79aaa9061c doc: release: update merge criteria
Document 4 eye principal for reviews and merges.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-09-27 20:13:04 -04:00
Anas Nashif 6dc15abb85 doc: roles: remove reference to slide
Reference to slide that does not exist.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-09-27 20:13:04 -04:00
Florian Grandel a12a6ab5b9 drivers: ieee802154: introduce channel pages
Replaces the previous approach to define bands via hardware capabilities
by the standard conforming concept of channel pages.

In the short term this allows us to correctly calculate the PHY specific
symbol rate and several parameters that directly depend from the symbol
rate and were previously not being correctly calculated for some of the
drivers whose channel pages could not be represented previously:
* We now support sub-nanosecond precision symbol rates for UWB. Rounding
  errors are being minimized by switching from a divide-then-multiply
  approach to a multiply-then-divide approach.
* UWB HRP: symbol rate depends on channel page specific preamble symbol
  rate which again requires the pulse repetition value to be known
* Several MAC timings are being corrected based on the now correctly
  calculated symbol rates, namely aTurnaroundTime, aUnitBackoffPeriod,
  aBaseSuperframeDuration.

In the long term, this change unlocks such highly promising functional
areas as UWB ranging and SUN-PHY channel hopping in the SubG area (plus
of course any other PHY specific feature).

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2023-09-27 12:44:15 -04:00
Grzegorz Swiderski 8b273a45a6 doc: sysbuild: Update documentation about BUILD_ONLY
It is now possible to `west flash` or `west debug` a build-only image.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2023-09-27 17:49:12 +02:00
Benjamin Cabé 14348c53d4 net: doc: coap: Eclipse Titan is now on Gitlab
Eclipse Titan is now hosted on Gitlab (previously GitHub).
Update URLs accordingly.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-27 15:49:14 +02:00
Aleksandr Khromykh 236e3b64db Bluetooth: Mesh: shell supports 32 bytes static oob
Commit adds support of 32 bytes static oob in mesh shell.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2023-09-27 15:48:08 +02:00
Aaron Massey 12cbfcf397 fuel_gauge: Repl property struct w/ union
Based on review of the similar charger driver API, it's been demonstrated
from the community that embedding a per value property type when fetching
properties. Separating off the property types from the property values
themselves also allow an array of property types to declared as static
const.

Break up fuel_gauge_property struct into a fuel_gauge_prop_val union and a
fuel_gauge_prop_t property type as inputs into fuel gauge API functions.

Signed-off-by: Aaron Massey <aaronmassey@google.com>
2023-09-27 12:07:59 +02:00
Aaron Massey e294b16a2f fuel_gauge: Add fuel_guage_get_props()
The fuel_gauge_get_prop() function prototype declares a function that
retrieves multiple fuel gauge properties at once. The naming suggests it
ought to fetch a singular property at a time. Moreso, some clients may just
want to fetch properties one at a time and may feel uncomfortable using a
prototype for fetching multiple properties when wanting to fetch them one
at a time.

Modify fuel_gauge_get_prop() to fetch a single property and add
fuel_gauge_get_props() to support fetching multiple properties. Modify
existing tests/drivers/samples.

This is part of #61818 work.

Signed-off-by: Aaron Massey <aaronmassey@google.com>
2023-09-27 12:07:59 +02:00
Seppo Takalo ebfbf83153 net: lwm2m: Clean up shell documentation
Move commands that require parameters first into the list.

Move syntax line first, command documentation second,
flags last. This is much like Unix commands do

❯ /bin/ls --help
Usage: /bin/ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).

Compared to:

uart:~$ lwm2m
lwm2m - LwM2M commands
Subcommands:
  read    :read PATH [OPTIONS]
          Read value from LwM2M resource
          -x   Read value as hex stream (default)
          -s   Read value as string

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2023-09-26 16:55:16 +02:00
Dominik Ermel a43107299f doc/release-notes: Add info on downgrade prevention Kconfig
Adds note on addition of
MCUBOOT_BOOTLOADER_MODE_WITH_DOWNGRADE_PREVENTION
to MCUboot Kconfig module.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2023-09-26 16:41:25 +02:00
Daniel Leung c1e488c2ed doc: release: 3.5: add a note on UART ns16550 driver changes
This adds a note on the changes related to the device
initialization macros and removal of two kconfigs.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-09-26 12:03:04 +02:00
Flavio Ceolin acc4dcec1e doc: release: 3.5 Add info about CVE-2023-4258
Add security related information in 3.5 release notes.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-09-26 08:39:16 +02:00
Flavio Ceolin f4baa2b094 doc: vuln: Add information about CVE-2023-4258
Information about CVE-2023-4258

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-09-26 08:39:16 +02:00
Carles Cufi d118ef5fde doc: migration: Move picolibc section to required changes
After having migrated a bunch of apps to the new default C library we
have realized that some of the caveats described in the existing
picolibc section of the migration guide do require action on the user
more often than previously thought. In order to ensure that all users
see those and can act upon them, move the picolibc migration info to the
required changes section.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2023-09-25 18:44:34 -04:00
Anas Nashif 687f2507e3 doc: point to new zephyr sdk: 0.16.3
Change docs to point to new Zephyr SDK.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-09-25 17:11:42 -04:00
Mia Koen 0a0198898d doc: bluetooth: mesh: note and spec name fix
Fixed a note in Config Server model
and spec name in couple of other models

Signed-off-by: Mia Koen <mia.koen@nordicsemi.no>
2023-09-25 16:43:54 +02:00
Pavel Vasilyev 0e26a0ddb9 doc: Bluetooth: Mesh: Correct DFU and BLOB models specs names
Correct DFU and BLOB models specs names. Also mentioning that they are
experimental yet (under BT_MESH_V1d1 option).

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2023-09-25 16:42:55 +02:00
Pavel Vasilyev 1146f5a8ea doc: Bluetooth: Mesh: Fix note rendering
Fix tabulation for correct note rendering.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2023-09-25 16:42:55 +02:00
Pavel Vasilyev 663a54c6d5 doc: Bluetooth: Mesh: Remove "draft" word from mesh 1.1 spec
The specification is now adopted.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2023-09-25 16:42:55 +02:00
Anas Nashif 1640d37189 drivers: neural_net: remove obsolete driver
This driver is not being used by anything and is not being built or
tested, so remove it.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-09-25 07:40:07 -04:00
Jamie McCrae 30092d1910 doc: release: 3.5: Add note on sysbuild MCUboot encryption support
Adds a note that sysbuild can now set the encryption key for
MCUboot and target images.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-09-25 12:45:44 +02:00
Benjamin Cabé fef887a7b3 doc: bluetooth: mesh: Fix LaTeX math equations
While it doesn't seem to be an issue for HTML rendering, the use of
\verb is not allowed within LaTeX equations and breaks the PDF build.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-25 09:50:45 +02:00
Andrei Emeltchenko 0aaa5a9ac2 samples: webusb: Copy needed file from the external repository
Copy file index.html from the external repository
finikorg/webusb-sample.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-09-25 09:48:01 +02:00
Benjamin Cabé 2e5f56665b doc: tracing: fix formatting issue
The list of user-defined functions in "User-Defined Tracing" section was
not properly formatted (missing blank line).
Switched the (broken) list to a code block to now provide C syntax
highlighting.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-22 16:42:32 +01:00
Benjamin Cabé d30ec30a85 doc: guides: Update PDF output path
The zephyr.pdf file is to be found in _build/latex folder, not
_build/pdf.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-22 14:38:12 +01:00
Benjamin Cabé b6165e01ca doc: can: samples: fix bad reference to can-counter sample
Fixed a dangling reference that was silently ignored before.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-22 10:18:02 +01:00
Tomasz Bursztyka ba02d85c74 doc/nvme: NVMe mandates dword-aligned buffer addresses
In Zephyr, this is let to the disk access API user. There is nothing the
driver can do about it.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2023-09-22 09:23:18 +02:00
Benjamin Cabé f6a4217a88 doc: driver: samples: Update driver samples to use new Sphinx extension
Migrated existing driver samples to use the new code-sample directive
and role.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-22 09:21:43 +02:00
Guillaume Gautier 01f080ebe0 doc: releases: update migration guide
Update migration guide

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 09:21:34 +02:00
Gerard Marull-Paretas beec8b05a8 device: only allow PRE_KERNEL_1/2 and POST_KERNEL levels
Because devices share the same underlying infrastructure with SYS_INIT,
the same levels have always been available. However, not all of them are
needed, and some are not even usable. For example, `EARLY` can't be used
because when initialized `z_device_state_init` has not been called yet.
`SMP` has never been used by device drivers, and it is now in question,
likely to be moved to SMP specific hooks. Finally, `APPLICATION` does
not make much sense in the context of Kernel devices. Note that of the 3
levels just mentioned, only one was actively tested (`APPLICATION`) by
Kernel tests, meaning others were likely never considered in the context
of devices.

This patch leaves `PRE_KERNEL_1`, `PRE_KERNEL_2` and `POST_KERNEL`
available to devices. Others have been deprecated, and will generate a
compiler warning if used.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2023-09-21 15:02:45 +02:00
Benjamin Cabé 4f1cd0e428 doc: Migrate subsys/ code samples to new Sphinx extension
This migrates the subsys code samples to the new Sphinx code-sample
extension, making it easier to find relevant samples when browsing
API reference.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-21 09:28:31 +02:00
Benjamin Cabé 108893304a doc: code-sample: Fix "text" attribute for code sample links.
A link to a code-sample should have its "text" attribute set to the text
description of the sample, not the description _node_.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-20 20:23:56 +01:00
Benjamin Cabé c82d023248 doc: Issue warning for dangling code-sample references
Sphinx will now issue a warning when a code-sample role points to a
sample that does not exist.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-20 11:36:12 +01:00
Benjamin Cabé 430e009a5f samples: net: mqtt-sn: fix bad code-sample id
The MQTT-SN publisher sample is referred to as mqtt-sn-publisher, not
mqtt-sn-publisher-sample.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-20 11:36:12 +01:00
Ryan Erickson 452fadcd0e doc: migration-guide: inform about MODEM_GSM_PPP deprecation
MODEM_GSM_PPP is deprecated in favor of using the new
MODEM_CELLULAR driver.
Directly related to this are UART_MUX and GSM_MUX. These are also
being deprecated.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
2023-09-19 15:25:47 +01:00
Benjamin Cabé 994558ef8e samples: net: doc: Use new Sphinx extension to document networking samples
Use the new code-sample directive and roles to document the networking
samples so that they show up as "Related samples" when browsing the
various relevant networking APIs.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-19 15:22:59 +01:00
Jukka Rissanen ccc2a7a90d doc: release: Migration guide for CONFIG_NET_INTERFACE_NAME option
Clarified the impact of CONFIG_NET_INTERFACE_NAME Kconfig option
as it can change how SO_BINDTODEVICE BSD socket option behaves.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2023-09-19 15:22:19 +01:00
Kuno Heltborg 2d02cae964 MGMT: Add user data to mgmt_handler
RFC: #60616

Signed-off-by: Kuno Heltborg <kunoh@live.dk>
2023-09-19 15:20:58 +01:00
Tom Burdick cbc6af0d09 spi: Cleanup and fix SPI docs build
Use the defined(__DOXYGEN__) more specifically in the header to better
match i2c.h and make things more explicit. Removes the define being
setup in zephyr.doxyfile.in.

Fixes some of the deprecation notes and what to look for instead. Fixes
some typos.

The async, signal, and rtio APIs for SPI are now shown in the built docs
as would be expected.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2023-09-19 08:46:16 -05:00
Johann Fischer f67dd39bb2 drivers: ramdisk: use devicetree to instantiate RAM disk
Rework RAM disk driver to be configured using devicetree and
support multiple instances.

This patch also removes a copy of the RAM disk driver,
tests/subsys/fs/fat_fs_dual_drive/src/disk_access_test_drv.c,
that was there for testing multiple disk drivers support.

Bonus: one SYS_INIT() less and a memory region can be exported to the
host.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-09-18 17:36:50 +02:00
Gerard Marull-Paretas 9019e46839 doc: migration-guide: inform about GPIO_AS_PINRESET deprecation
In favor of the new devicetree 'gpio-as-nreset' property.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2023-09-18 13:14:08 +02:00
Hein Wessels 8219c7ccda doc: release process: link to milestone dates on wiki
This adds a link for convenience. Many times before I struggled to
find the date for the next feature freeze. This is to help others,
and myself, to find it easier in the future.

Signed-off-by: Hein Wessels <heinwessels93@gmail.com>
2023-09-18 11:16:27 +01:00
Grzegorz Chwierut 033afe1c0c twister: doc: Update pytest and twister docs
Document how to use pytest_root keyword. Update docs
with changes in pytest-twister-harness plugin.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2023-09-18 05:59:35 -04:00
Ludvig Samuelsen Jordet b990a74f8b Bluetooth: Mesh: Add support for Upload OOB Start
This adds support for the Upload OOB Start message to the DFD server, by
providing callbacks that the application can use to hook any OOB scheme
into the model behavior.

There are also extensive changes to the dfu_slot module, to accomodate
the new needs that appeared with the support for OOB transfer (mainly,
fwid, size and metadata are no longer available when the slot is
allocated, they appear later in the handling).

Signed-off-by: Ludvig Samuelsen Jordet <ludvig.jordet@nordicsemi.no>
2023-09-18 10:55:20 +01:00
Aaron Massey a7b25d599b fuel_gauge: Join get/set prop structs
The fuel gauge API uses separate get/set property structs to indicate what
properties are readable or writable. This lead to duplication in property
names and potential confusion for new users of the API. See issue #61818.
In addition to above, drivers already determine at runtime if a property is
supported for read or write actions.

Join the get/set fuel gauge property structs as a single struct.

Signed-off-by: Aaron Massey <aaronmassey@google.com>
2023-09-18 10:38:59 +01:00
Gerard Marull-Paretas c0bf310ac8 doc: migration-guide: add notes on CONFIG_NFCT_PINS_AS_GPIOS changes
So that users know how to migrate to the new option.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2023-09-15 16:05:28 +02:00
Benjamin Cabé b5a50e9ae1 doc: Revert "doc: Add more known-warnings"
This reverts commit 3127d7b54c which
was forgotten when switching back to breathe from docleaf and  causing
unecessary "here's a warning about something that's not actually
a warning" :)

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-15 15:05:23 +02:00
Fabio Baltieri 8bd49da316 doc: doxygen: define XEN_GUEST_HANDLE_64 as no-op
Doxygen gets confused by the macro expansion in
include/zephyr/xen/public/domctl.h as that is only defined if
CONFIG_ARM64=y, add a no-op expansion of that macro when building the
documention so it has something to work on.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-09-15 13:51:19 +01:00
Carlo Caione e4a125b6a4 dt: Make zephyr,memory-attr a capabilities bitmask
This is the final step in making the `zephyr,memory-attr` property
actually useful.

The problem with the current implementation is that `zephyr,memory-attr`
is an enum type, this is making very difficult to use that to actually
describe the memory capabilities. The solution proposed in this PR is to
use the `zephyr,memory-attr` property as an OR-ed bitmask of memory
attributes.

With the change proposed in this PR it is possible in the DeviceTree to
mark the memory regions with a bitmask of attributes by using the
`zephyr,memory-attr` property. This property and the related memory
region can then be retrieved at run-time by leveraging a provided helper
library or the usual DT helpers.

The set of general attributes that can be specified in the property are
defined and explained in
`include/zephyr/dt-bindings/memory-attr/memory-attr.h` (the list can be
extended when needed).

For example, to mark a memory region in the DeviceTree as volatile,
non-cacheable, out-of-order:

   mem: memory@10000000 {
       compatible = "mmio-sram";
       reg = <0x10000000 0x1000>;
       zephyr,memory-attr = <( DT_MEM_VOLATILE |
			       DT_MEM_NON_CACHEABLE |
			       DT_MEM_OOO )>;
   };

The `zephyr,memory-attr` property can also be used to set
architecture-specific custom attributes that can be interpreted at run
time. This is leveraged, among other things, to create MPU regions out
of DeviceTree defined memory regions on ARM, for example:

   mem: memory@10000000 {
       compatible = "mmio-sram";
       reg = <0x10000000 0x1000>;
       zephyr,memory-region = "NOCACHE_REGION";
       zephyr,memory-attr = <( DT_ARM_MPU(ATTR_MPU_RAM_NOCACHE) )>;
   };

See `include/zephyr/dt-bindings/memory-attr/memory-attr-mpu.h` to see
how an architecture can define its own special memory attributes (in
this case ARM MPU).

The property can also be used to set custom software-specific
attributes. For example we can think of marking a memory region as
available to be used for memory allocation (not yet implemented):

   mem: memory@10000000 {
       compatible = "mmio-sram";
       reg = <0x10000000 0x1000>;
       zephyr,memory-attr = <( DT_MEM_NON_CACHEABLE |
			       DT_MEM_SW_ALLOCATABLE )>;
   };

Or maybe we can leverage the property to specify some alignment
requirements for the region:

   mem: memory@10000000 {
       compatible = "mmio-sram";
       reg = <0x10000000 0x1000>;
       zephyr,memory-attr = <( DT_MEM_CACHEABLE |
			       DT_MEM_SW_ALIGN(32) )>;
   };

The conventional and recommended way to deal and manage with memory
regions marked with attributes is by using the provided `mem-attr`
helper library by enabling `CONFIG_MEM_ATTR` (or by using the usual DT
helpers).

When this option is enabled the list of memory regions and their
attributes are compiled in a user-accessible array and a set of
functions is made available that can be used to query, probe and act on
regions and attributes, see `include/zephyr/mem_mgmt/mem_attr.h`

Note that the `zephyr,memory-attr` property is only a descriptive
property of the capabilities of the associated memory  region, but it
does not result in any actual setting for the memory to be set. The
user, code or subsystem willing to use this information to do some work
(for example creating an MPU region out of the property) must use either
the provided `mem-attr` library or the usual DeviceTree helpers to
perform the required work / setting.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2023-09-15 12:46:54 +02:00
Laurentiu Mihalcea ff1bb65793 doc: release: 3.5: Add note about shared interrupt support
Add a note that shared interrupts are now supported.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2023-09-14 08:35:12 +02:00
Laurentiu Mihalcea b1111d9de4 doc: interrupts: Document support for shared interrupts
This commit adds the documentation for shared interrupts.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2023-09-14 08:35:12 +02:00
Pavel Vasilyev 422cfeeb1a doc: Bluetooth: Mesh: Align wording for models instantiation req
According to https://github.com/zephyrproject-rtos/zephyr/pull/61886#issuecomment-1713302331
we need to use "must only" for models that spec states:
`If supported, ... shall be supported by the primary element and shall
not be supported by any secondary element`.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2023-09-14 08:33:46 +02:00
Daniel Leung 26ffa9f59a doc: picolibc: a few words about building without native support
This adds a few words about using Picolibc without native support
from toolchain, and how to enable this behavior for toolchain.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-09-13 17:36:46 -04:00
Andrei Emeltchenko 8ac4b248c1 doc: west: Remove empty Footnotes rubric
Remove empty rubric. Cross-linking markups are not included in
Footnotes.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-09-13 17:32:52 -04:00
Benjamin Cabé 4d53ae8a42 doc: shell: fix incorrect use of :kbd: role
Key combinations described using the sphinx :kbd: role should not have
a white space around + sign
i.e. should be :kbd:`Ctrl+d` not :kbd:`Ctrl + d`

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-13 11:35:44 +02:00
Huifeng Zhang 80e1b37fdb doc: release-notes: Add Aarch32 v3.5.0 notes
Adds release notes for Aarch32 for Zephyr 3.5.0.

Signed-off-by: Huifeng Zhang <Huifeng.Zhang@arm.com>
2023-09-13 10:08:05 +01:00