Commit graph

99,250 commits

Author SHA1 Message Date
Emil Gydesen
41a589c5fa Bluetooth: CSIP: Add support for dynamic SIRKs
Add support for dynamically change the SIRK in a CSIS.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:28:26 -05:00
Gustavo Silva
3850f4ca64 drivers: sensor: add ScioSense ENS160 driver
Add driver for ScioSense ENS160 multi-gas sensor. The driver includes
support for I2C and SPI, attributes for setting temperature and
humidity compensation and data ready trigger.
Also add ScioSense to the list of vendor prefixes.

Signed-off-by: Gustavo Silva <gustavograzs@gmail.com>
2024-02-25 22:27:22 -05:00
Emil Gydesen
05f9440347 Bluetooth: BAP: use BT_AUDIO_CODEC_QOS_FRAMED for framed presets
The presets used BT_AUDIO_CODEC_QOS directly, but since all the
unframed presets use BT_AUDIO_CODEC_QOS_UNFRAMED, it makes sense
that the framed ones used the corresponding macro.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:26:57 -05:00
Emil Gydesen
f4d82cedb9 Bluetooth: Audio: Remove the BT_AUDIO_CODEC_LC3_QOS macros
The LC3 framed macros were unused.
The LC3 unframe macros only added the 7500/10000
parameter, but since the the 7500/10000 requirement is also
defined by BAP, it makes equally much sense to simply use the BAP
presets.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:26:57 -05:00
Emil Gydesen
d78604e690 Bluetooth: Audio: Remove the BT_AUDIO_CODEC_LC3_CONFIG_X_Y
LC3 does not define any such configurations, and they are in
fact defined by the BAP. The LC3 header file should thus not
pretend that there are these specific configurations for LC3.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:26:57 -05:00
Mahesh Mahadevan
94540a9dee drivers: gpio: Update NXP LPC GPIO driver to enable wakeup
Process the GPIO_INT_WAKEUP flag and set appropraite bits
in the SoC to wakeup the system from deep sleep mode.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-02-25 22:26:00 -05:00
Mahesh Mahadevan
21e9918260 include: gpio: Add GPIO_INT_WAKEUP flag
Add a flag to configure the GPIO pin interrupt as a
wakeup source for the system.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-02-25 22:26:00 -05:00
Mahesh Mahadevan
e17045a02d drivers: gpio: Add default for switch statement
This causes a warning when making changes to add
support for GPIO_INT_WAKEUP flag.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-02-25 22:26:00 -05:00
Emil Gydesen
e0dbd3fd39 Bluetooth: Audio: Shell: CAP change volume mute command
Adds the change volume mute command to the CAP commander shell.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:25:26 -05:00
Emil Gydesen
ede68ad5c0 tests: Bluetooth: CAP Commander Change Volume mute unittests
Adds unittests for the CAP COmmander Change Volume mute
procedure.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:25:26 -05:00
Emil Gydesen
341906a0fd tests: bsim: Bluetooth: CAP Commander Change Volume mute
Adds bsim test of the CAP Commander Change Volume mute
procedure.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:25:26 -05:00
Emil Gydesen
b9360488f7 Bluetooth: CAP: Commander change volume mute procedure
Adds the CAP Commander Change Volume mute procedure.
This procedure changes the volume mute on one or more
CAP Acceptors.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:25:26 -05:00
Benjamin Cabé
074152a03d doc: Bump to Sphinx 7.1 and RTD theme 2.0
This moves to more recent versions of Sphinx and Read the Docs theme.
FWIW Sphinx 7.2.0 dropped support for Python 3.8 so we're stuck with 7.1
for now.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-02-25 20:56:40 -05:00
Pavel Vasilyev
e30b7a84bc Bluetooth: Mesh: Enable CDP1 by default
CDP1 is mandatory to qualify a mesh device for mesh protocol v1.1.
The dependency on BT_MESH_MODEL_EXTENSIONS is removed because if a node
contains only base models (for example Generic OnOff Server), this API
will consume extra RAM bytes which won't be used.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2024-02-25 20:54:11 -05:00
Nguyen Minh Thien
8188be57d3 kernel: fix spelling errors
Fix spelling errors found in comment of the kernel source code.

Signed-off-by: Nguyen Minh Thien <nguyenmthien@live.com>
2024-02-25 20:53:37 -05:00
Marcin Niestroj
6aedc06982 sys: dlist: remove toolchain.h include
This header file is not used anywhere in the implementation, so drop it.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2024-02-25 20:52:45 -05:00
Jukka Rissanen
ea189d5aee net: sockets: Do not start service thread if too little resources
If the CONFIG_NET_SOCKETS_POLL_MAX is smaller than what is needed
for the socket service API to work properly, then we should not
start the service thread as the service API cannot work and might
cause memory overwrite in ctx.events[] array.

Fixes #69233

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-02-25 20:52:18 -05:00
Marcin Niestroj
7c56ad67d4 samples: http_get: increase mbedTLS heap size
40k heap size is not enough and results in handshake errors:

  <err> net_sock_tls: TLS handshake error: -0x2700

Increasing it to 55k already works (when used with native_sim_64 and
offloaded sockets), but use 60k to get a bit more room for future.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2024-02-25 20:51:17 -05:00
Jukka Rissanen
bf31b0985e drivers: ethernet: Disable drivers if tests are enabled
The network tests at tests/net use simulated network interfaces
and set CONFIG_NET_TEST to indicate that. If the config option
is set, then we do not want any extra Ethernet driver to
complicate the testing scenario so all external Ethernet
network interfaces should be disabled.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-02-25 20:50:42 -05:00
Peter Mitsis
51ae993c12 kernel: Update k_wakeup()
This commit does two things to k_wakeup():

1. It locks the scheduler before marking the thread as not suspended.
As the the clearing of the _THREAD_SUSPENDED bit is not atomic, this
helps ensure that neither another thread nor ISR interrupts this
action (resulting in a corrupted thread_state).

2. The call to flag_ipi() has been removed as it is already being
made within ready_thread().

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-02-25 20:50:03 -05:00
Sylvio Alves
a79c54dc43 drivers: dac: esp32: fix clock control subsys argument
Current cfg->clock_subsys is passed as address and is
causing driver assertion.

Fixes #69198

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-02-25 20:49:01 -05:00
Jordan Yates
6510bd248a sensing: document missing parameter
Document a missing parameter on the `sensing_data_event_t` typedef.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2024-02-25 20:48:16 -05:00
Renato Soma
5bec53b73a drivers: sensor: tmag5273: cast value to int64_t
Cast val1 from sensor_value before multiplication in order to avoid
integer overflow, as indicated by Coverity CID 347136.

Signed-off-by: Renato Soma <renatoys08@gmail.com>
2024-02-25 20:47:31 -05:00
Riadh Ghaddab
0fb8506ae4 tests: subsys/fs/nvs: fix nvs-cache-gc test
nvs-cache-gc test is running into infinite loop because of the wrong
stop condition when filling a sector.
Fix this by keeping an empty ATE in the sector for delete operation as
defined in the NVS filesystem write operations.

Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com>
2024-02-25 20:47:06 -05:00
Reto Schneider
7178113a3e ztest: Remove superfluous comment
This is obviously a copy & paste error. It was introduced by
107cb86bb3 (ztest: Add initial zexpect API
for delayed failing).

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-02-25 20:45:52 -05:00
Mathieu Choplain
6ff47b15db drivers: can: add missing argument to LOG_ERR call
PR #64399 introduced checks for out-of-bounds filter IDs
in CAN drivers, along with logging of said IDs; however,
the call to LOG_ERR in the native POSIX/Linux driver is
missing the 'filter_id' argument.

This commit adds the missing argument to ensure proper
data is printed when the LOG_ERR call is performed.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2024-02-25 20:45:29 -05:00
Anas Nashif
ce4022f828 tests: dma: remove wrong license from overlay
Wrongly licensed file, change to APL-2.0.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-02-25 20:44:48 -05:00
Henrik Brix Andersen
e5a42350ae doc: releases: add working draft release notes + guide for v3.7.0
Add working drafts for the release notes and migration guide for v3.7.0.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-25 20:42:35 -05:00
Anas Nashif
3f98312cbe ci: twister status check
Generate one single status for all jobs and also report success when
twister run is being skipped to be able to make this a required check.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-02-24 16:10:02 -05:00
Anas Nashif
a9f77a5126 ci: doc: always report status
Generate status that can be used for enforcing branch checks even if
some jobs get skipped.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-02-24 16:10:02 -05:00
Christopher Friedt
f3709e20b8 posix: convert all error logs to debug logs
In Zephyr, things are often optimized for size first. That's how
we fit into such tight parking spaces.

This change gives more control to the user about whether the
POSIX API does any logging at all, simultaneously shrinking binary
size while improving speed.

No bytes / cycles left behind!

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2024-02-24 10:34:05 -05:00
Maureen Helm
b68294a6cb github: Update security page for v3.6.0 release
Updates the GitHub security page with the current supported versions
after the v3.6.0 release.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 22:28:57 -06:00
Maureen Helm
6f8d85aac5 MAINTAINERS: Update release notes area for v3.7
Hands over the release notes area to the v3.7 release managers.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 22:28:57 -06:00
Maureen Helm
9796ee7593 release: Zephyr v3.6.99
Sets the version to v3.6.99.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 22:28:57 -06:00
Maureen Helm
468eb56cf2 release: Zephyr v3.6.0 v3.6.0
Sets the version to v3.6.0.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 18:30:32 -06:00
Maureen Helm
c25ed15706 doc: release: Finalize v3.6.0 release notes and migration guide
Removes working draft status from the v3.6.0 release notes and migration
guide.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 18:30:32 -06:00
Maureen Helm
ce38e4ba6f doc: release: Remove v3.4.0 from the list of supported releases
Only the two most recent mainline releases are supported.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 18:30:32 -06:00
Maureen Helm
7c7b5fbf8b doc: release: Add v3.6.0 to the list of supported releases
Adds v3.6.0 to the list of supported releases. The EOL date corresponds
to the expected release date for v4.0.0.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 18:30:32 -06:00
Henrik Brix Andersen
1d7aab0016 docs: licensing: update list of 3rd party code licensed under GPL
Update the list of 3rd party code licensed under the GPL.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-23 18:27:32 +01:00
Maureen Helm
ff80920928 doc: release: Remove empty sections from v3.6.0 release notes
Removes empty sections from the v3.6.0 release notes.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 18:26:26 +01:00
Maureen Helm
da2412e74f doc: release: Fix list syntax in v3.6.0 release notes
The first item in a list or sublist must have a blank line before it.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 18:26:26 +01:00
Maureen Helm
6433770c42 doc: release: Edit release notes content for v3.6.0
Fixes grammar, punctuation, and spelling errors in the v3.6.0 release
notes.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-02-23 18:26:26 +01:00
Nikolay Agishev
f5d8fe0bc5 doc: ARC: add release notes for ARC
Add ARC release notes for 3.6 Zephyr release

Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
2024-02-23 10:09:14 -06:00
Henrik Brix Andersen
8df15a2e1b docs: releases: migration guide: 3.6.0: fix backtics usage
Fix use of backticks.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-23 08:19:03 -06:00
Henrik Brix Andersen
664b8d4d39 docs: release: migration guide: 3.6.0: reorganize driver/dts section
Divide the "Device Drivers and Devicetree" section into subsections for the
various driver classes.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-23 08:19:03 -06:00
Henrik Brix Andersen
94672ac77d docs: release: migration guide: 3.6.0: add local ToC
Group related entries under subheadings and add a local table of contents
to improve readability.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-23 08:19:03 -06:00
Rodrigo Peixoto
dc8dff0fce doc: migration-guide-3.6: zbus related migrations
The zbus related migrations.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2024-02-22 14:11:41 -06:00
Rodrigo Peixoto
7ce0d6dae5 doc: release-notes-3.6: zbus related changes
ZBus release notes for Zephyr 3.6.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2024-02-22 14:11:41 -06:00
Benjamin Cabé
f31b52700e doc: release: Add Zephyr 3.6 highlights
This adds a high-level summary of the most notable highlights of
Zephyr 3.6.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-02-22 14:01:23 -06:00
Henrik Brix Andersen
a48c958c8f docs: releases: 3.6.0: move recommended changes to release notes
Remove the Recommended Changes section from the migration guide so that it
only contains required changes. This aligns with the decision made in the
Architechture WG on 2023-10-24.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-21 19:32:03 +01:00