Commit Graph

74974 Commits

Author SHA1 Message Date
Kumar Gala
2e94de0401 boards: arm: nuvoton npcx: Update docs to say Nuvoton
Add Nuvoton vendor name so this shows up in the full supported
board list.

Signed-off-by: Kumar Gala <kumar.gala@intel.com>
2023-02-15 19:21:33 +09:00
Jakub Rzeszutko
44488f1cf6 shell: fix documentation link
Correcting the reference to the commands execution drawing.

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
2023-02-15 01:26:47 +09:00
Andrzej Głąbek
81aaf4a365 doc: release: Add v3.3.0 notes for ADC, I2S, PWM, and Nordic HAL/boards
Add release notes related to ADC and PWM drivers, Nordic HAL, and
boards featuring nRF SoCs. Nothing relevant to be added for I2S.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2023-02-15 00:10:09 +09:00
Benjamin Cabé
9acb6e6049 MAINTAINERS: Add B. Cabé as doc maintainer & doc infra collaborator
Adding myself, kartben, as a doc maintainer & doc infra collaborator

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-02-14 23:55:09 +09:00
Filip Kokosinski
599eddcfaf doc: release-notes: fix RISC-V release notes for v3.3.0
This commit fixes one RISC-V release notes entry for Zephyr v3.3.0.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2023-02-14 23:49:49 +09:00
Gerard Marull-Paretas
38a9833958 doc: redirects: add old sockets page to redirects
The BSD sockets page was moved a while ago when documentation was
reorganized (reported by Nordic technical support). This patch adds a
redirect so that old links keep working just fine.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-02-14 23:49:40 +09:00
Benjamin Cabé
0eb9c51f5a doc: Improve navigation towards LTS documentation.
Fixed the version selector so that it links to latest version of the LTS
release instead of 2.7.0.
Fixes #54786

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-02-14 14:02:12 +01:00
Sylvio Alves
839050b994 boards: esp32: add default HEAP for all ESP32 boards
In order to avoid missing k_malloc options, add default
HEAP value for all boards.

Fixes #54428

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2023-02-14 20:53:22 +09:00
Kevin Townsend
511eab6a3d doc: release-notes: Add Aarch32, TF-M v3.3.0 notes
Add release notes for Aarch32 and TF-M for the 3.3.0 release.

Signed-off-by: Kevin Townsend <kevin.townsend@linaro.org>
2023-02-14 20:45:54 +09:00
Martin Jäger
da81d65ad3 doc: release-notes: add DAC release notes for v3.3
Add DAC related release notes for Zephyr v3.3.0.

Signed-off-by: Martin Jäger <martin@libre.solar>
2023-02-14 20:43:45 +09:00
Alexander Wachter
89efc7099a hwinfo: add release-notes for 3.3.0
Release-notes for 3.3.0 release

Signed-off-by: Alexander Wachter <alexander@wachter.cloud>
2023-02-14 20:43:17 +09:00
Andy Ross
bf3f9f011b doc: release-notes: v3.3: Kernel and Timer subsystem changes
Notes for user-visible API and behavior changes

Signed-off-by: Andy Ross <andyross@google.com>
2023-02-14 20:43:05 +09:00
Sylvio Alves
918cd78f8f doc: release: 3.3: add notes about hal_espressif
Add 3.3.0 release notes for HAL updates.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2023-02-14 20:42:56 +09:00
Krzysztof Chruscinski
f69c880855 doc: release notes: Add entries for the logging subsystem
Updated release notes with the logging section.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
2023-02-14 20:42:31 +09:00
Gerson Fernando Budke
b7fde5359f doc: release: 3.3: Add notes about Management: UpdateHub
Added release notes related to UpdateHub.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2023-02-14 20:41:55 +09:00
Gerson Fernando Budke
7f47828190 doc: release: 3.3: Add notes about Atmel
Add 3.3.0 release notes for Atmel.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2023-02-14 20:41:55 +09:00
Andrzej Głąbek
31c11a5dc0 drivers: nrf_rtc_timer: Fix handling of COMPARE events in set_alarm()
This is a follow-up to commits cf871aec64
and 205e684958.

It turns out that the current implementation of the nrf_rtc_timer may
still fail to properly handle a timeout if that timeout is set in very
specific conditions - when a previously set timeout is about to expire.
When that happens, the new timeout is handled 512 seconds later (when
the system timer overflows) than it should be.

A recently added nrf_rtc_timer test case (test_tight_rescheduling)
exposes this problem and this commit fixes it by adding examination
of COMPARE events that appear during setting of the CC register value
for a given timeout.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2023-02-14 08:28:28 +01:00
Andrzej Głąbek
d6ba49e298 drivers: nrf_rtc_timer: Rename set_absolute_alarm() to set_alarm()
This function name is misleading as the absolute time values handled
by the driver are 64-bit and this function receives a 32-bit parameter,
which is supposed to be a CC register value, not the target time.
Correct the name of this function and its parameter, and remove a now
unnecessary masking from its body.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2023-02-14 08:28:28 +01:00
Andrzej Głąbek
8e8644ba6a tests: drivers: nrf_rtc_timer: Add a test case to check rescheduling
Add a test case that schedules an alarm and then, after a delay that
is changed in every iteration, tries to reschedule it to one cycle
later.
This reveals a problem in the current nrf_rtc_timer implementation
that in certain conditions a scheduled timeout may be missed and
its expiration is handled 512 seconds later (when the system timer
overflows).

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2023-02-14 08:28:28 +01:00
Torsten Rasmussen
5786b63e6c doc: release notes: added entry regarding app controlled image config
Added entry on application specific configurations of sysbuild
controlled images.
Ref: https://github.com/zephyrproject-rtos/zephyr/pull/51166

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2023-02-13 23:58:58 +09:00
Andrei Emeltchenko
fedec33514 doc: usb: Correct include path uhc.h
Fixes broken link to the USB HC API header file.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-02-13 23:58:23 +09:00
Erwan Gouriou
6de61d1ab2 doc: release_notes v3.3: Shields additions
Update for shields related changes during this release.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2023-02-13 23:57:30 +09:00
Erwan Gouriou
fc3405281b doc: release_notes v3.3: STM32 Platform additions
Update for STM32 related changes during this release.
I focused on changes that could have impact for users.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2023-02-13 23:57:30 +09:00
Jonathan Rico
2a15a63509 Bluetooth: host: don't store hash in db_hash_gen()
Move out the storage of the calculated hash from the fn that calculates
it (db_hash_gen).

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-02-13 12:55:02 +01:00
Jonathan Rico
b60b0f3505 Bluetooth: host: don't overwrite GATT DB hash before settings_load
Previously, if the app registered a bunch of services at boot before
calling `settings_load()`, then the hash would be silently overwritten.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-02-13 12:55:02 +01:00
Jonathan Rico
e8f3ef29a4 Bluetooth: host: store GATT change-aware status in settings
The spec says we have to persist the change-aware status of bonded peers
between resets.
This stores it at the end of the CF storage that we currently have.

Fixes #54173

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-02-13 12:55:02 +01:00
Jonathan Rico
4772e5695f Bluetooth: host: Store Client Supported Features on write
Store the Client supported features value when it is written to, instead of
only on disconnection/identity resolved.

Works around the situation where a user bonds, CF is written and the device
is abruptly powered off, discarding the CF value, but keeping the bond.

Fixes #54172.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-02-13 12:55:02 +01:00
Jonathan Rico
67236de058 Bluetooth: host: add test for some GATT settings bugs
This test is designed to check the soundness of GATT caching across
reboots.

It will fail if the fixes for #54173 and #54172 are not present.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-02-13 12:55:02 +01:00
Filip Kokosinski
76f23d60a0 doc: release-notes: add RISC-V release notes for v3.3.0
This commit adds RISC-V release notes for Zephyr v3.3.0.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2023-02-13 20:19:09 +09:00
Benjamin Cabé
a7dee148c3 doc: Update copyright notice in the documentation
Update copyright notice to reflect current year.
Fixes #54763.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-02-13 19:39:14 +09:00
Yonatan Schachter
56ac1ac0d6 doc: Added Raspberry Pi Pico changes to v3.3.0 release notes
Added the new features that were added since the last release to
the release notes.

Signed-off-by: Yonatan Schachter <yonatan.schachter@gmail.com>
2023-02-13 19:35:24 +09:00
Peter Mitsis
a18357c4f5 tests: fixes logging.add.async build warning
Fixes github issue #54537. Using a variable to point to the desired
format string generates a build warning when the -Wformat-security
compiler flag is used. To resolve this, replace the variable with
a macro to the format string.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2023-02-13 11:22:36 +01:00
Emil Gydesen
86bc8d4dcb doc: release-3-3: Add Bluetooth Audio and ISO API changes
Add changes to the API for Bluetooth audio and ISO.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-02-13 10:14:29 +01:00
Johann Fischer
18a03ced93 tests: drivers: udc: fix udc_ep_try_config() test
Behavior of udc_ep_try_config() is changed by the commit e60a4efbb0
("drivers: udc: do not update MPS for isochronous endpoints"),
update test case accordingly.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-02-13 10:11:52 +01:00
Stephanos Ioannidis
0d9fea87bb ci: Switch to CI image v0.24.11
This commit updates the CI workflows to use the CI image v0.24.11 that
includes BabbleSim v1.1.2, which improves simulation stability and
fixes the intermittent failures currently reported by the Bluetooth
test workflow.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2023-02-11 22:20:03 +09:00
Stephanos Ioannidis
bb8b745020 release: Zephyr 3.3.0-rc3
This commit sets the Zephyr version to v3.3.0-rc3.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2023-02-11 20:01:40 +09:00
Andy Ross
d00f9b594b kernel/work: Fix race under with delayed work item cancellation
The call to unschedule_locked() would return true ("successfully
unscheduled") even in the case where the underlying z_abort_timeout()
failed (because the callback was already unpended and
in-progress/complete/about-to-be-run, remember that timeout callbacks
are unsynchronized), leading to state bugs and races against the
callback behavior.

Correctly detect that case and propagate the error to the caller.

Fixes #51872

Signed-off-by: Andy Ross <andyross@google.com>
2023-02-11 12:14:16 +09:00
Stephanos Ioannidis
bb71ad55aa doc: release-notes: Add C++ library release notes
This commit adds the C++ library release notes for the Zephyr 3.3
release.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2023-02-11 11:26:06 +09:00
Tom Burdick
ff4d9d1df7 doc: release: Add dma release notes for v3.3.0
Added comments about new APIs, drivers, features, and bug fixes.

An impressive number of notes I have to say!

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2023-02-11 11:25:25 +09:00
Tom Burdick
70b0e02afe doc: release: Add i2c release notes for v3.3.0
Adds notes about bug fixes, features, and other noteworthy driver changes
made in the 3.3 release for i2c.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2023-02-11 11:11:32 +09:00
Aastha Grover
5144e78070 xcc-clang: add default C includes when build C++ code
nostdinc_include flag needs to contain path to llvm libraries
and remove other relative paths. Change compiler flag to add
default C includes on building C++ code using xcc-clang compiler.

Fixes #54730

Signed-off-by: Aastha Grover <aastha.grover@intel.com>
2023-02-10 18:05:14 -06:00
Aastha Grover
8f5bcb2e76 intel_adsp: ace: fix linker script for xcc-clang compiler
rodata section for xtensa overrides the .ctors section
containing the constructor info and the _ZEPHYR_CTOR_LIST_.
Removes the ctor related linker script lines from the rodata
section of the ace linker script to ensure that the .ctors is
properly generated and placed when using the xcc-clang compiler.

Fixes #54730

Signed-off-by: Aastha Grover <aastha.grover@intel.com>
2023-02-10 18:05:14 -06:00
Purdea Andrei
158ee9139c drivers: usb_dc_rpi_pico: cleanup incorrect comment and condition
I believe this comment and condition may have found its way into the
rp2040 driver from other drivers where it makes more sense. For
example for the stm32 driver performing a read on the EP0_IN endpoint
turns it silently into a read on the EP0_OUT endpoint. As far as I can
tell, this really was only used to consume 0-length Status-Stages of
to_host control transfer in the other drivers.

Note that usb_dc_ep_start_read() is never called in an IN endpoint
in the rp2040 driver, and furthermore, even if it would have been
called like that, the current implementation would not do the silent
change into actually performing a read on the EP0_OUT endpoint instead,
so the condition and comment is just wrong.

Note that 0-length Status-Stage of to_host control transfers is
currently consumed in this driver by usb_dc_ep_read_continue().

Signed-off-by: Purdea Andrei <andrei@purdea.ro>
2023-02-11 08:23:03 +09:00
Magdalena Kasenberg
3c00629bb6 LE Audio: Map EALREADY error of ase_stream_qos()
to send response with code 0x09 = Invalid Configuration Parameter
Value and reason 0x0a = Invalid_ASE_CIS_Mapping.

Previous response code was BT_ASCS_RSP_UNSPECIFIED (0x0e) and
reason BT_ASCS_REASON_NONE (0x00).

Fixes ASCS/SR/SPE/BI-15-C and ASCS/SR/SPE/BI-16-C PTS test cases.

Signed-off-by: Magdalena Kasenberg <magdalena.kasenberg@codecoup.pl>
2023-02-11 08:21:13 +09:00
Dino Li
e442a15c32 gpio/it8xxx2: do not set flag if register does not exist
Since not all GPIOs support voltage selection, voltage flag
is only set if voltage selection register is present.

fixes: #54366

Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
2023-02-11 08:20:40 +09:00
Georgij Cernysiov
d7cf297d98 usb: device: class: rndis: remove CDC descriptors
RNDIS is not a CDC class.

Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-02-11 08:19:32 +09:00
Georgij Cernysiov
3055a8326d usb: device: class: rndis: correct IAD and IF0 descriptors
Use descriptors as dictated by Microsoft and USB-IF.
That allows the RNDIS device to be correctly detected on Windows.

* Microsoft: https://learn.microsoft.com/en-us/windows-hardware/drivers/usbcon/supported-usb-classes
* USB-IF Defined Class Codes: https://www.usb.org/defined-class-codes

Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
2023-02-11 08:19:32 +09:00
Yonatan Schachter
d18f6e3acf Maintainers.yml: Add maintainer for Raspberry Pi Pico
Add a maintainer for the Raspberry Pi Pico platform, including
the RP2040 SoC, boards using it, and drivers.

Signed-off-by: Yonatan Schachter <yonatan.schachter@gmail.com>
2023-02-11 08:18:56 +09:00
Anas Nashif
52f6a5980c MAINTAINERS: add esp32 wifi driver to Espressif area
Add missing file to Espressif area.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-02-11 08:16:42 +09:00
Johann Fischer
ced13ae1fa board: decawave_dwm1001_dev: reset core after load
Reset core after load.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-02-11 08:16:30 +09:00