Commit graph

80285 commits

Author SHA1 Message Date
Jaska Uimonen 09085ef63c dts: xtensa: intel: update cavs25 sram size
Cavs25 sram size should be 3MB instead of 2MB, thus update the correct
value.

Signed-off-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
2023-06-16 05:46:37 -04:00
Mingjie Shen b2c00ec032 net: utils: fix offset used before range check
This use of offset 'i' should follow the range check.

Signed-off-by: Mingjie Shen <shen497@purdue.edu>
2023-06-16 05:46:05 -04:00
Divin Raj 733a35864a drivers: ethernet: Fix typo in comment
Update typo in the code comments.

Signed-off-by: Divin Raj <divin.raj@arm.com>
2023-06-16 05:43:17 -04:00
Thomas Stranger 3822870d28 drivers: mdio: adin2111: correct prompt
The prompt is referring to another existing driver(NXP S32),
now the correct name is displayed.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2023-06-16 05:42:36 -04:00
Flavio Ceolin 68dc53b077 doc: release-notes: PM related release notes
Add PM release notes.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-06-15 13:55:31 -04:00
Flavio Ceolin b7f35a8f29 doc: vulnerabilities: Add information about new vulnerabilities
Add a placeholder for CVE-2023-1901 and CVE-2023-1902.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-06-15 13:55:07 -04:00
Flavio Ceolin f683b0f35e doc: release-notes: Security related release-notes-3
Added information about CVEs fixed during 3.4 release.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-06-15 13:55:07 -04:00
Aedan Cullen 785d9bdc67 drivers: display: fix zero-buffers-in-SRAM case in DCNANO LCDIF
If CONFIG_MCUX_DCNANO_LCDIF_EXTERNAL_FB_MEM is not set and
CONFIG_MCUX_DCNANO_LCDIF_FB_NUM is zero, a division by zero occurs.
Use the same framebuffer size definition as in the external-framebuffer
case to resolve this.

Fixes #58908.

Signed-off-by: Aedan Cullen <aedan@aedancullen.com>
2023-06-15 10:10:03 -04:00
Gerard Marull-Paretas c59b57c0be soc: esp32*: do not enable HAS_DYNAMIC_DEVICE_HANDLES
It doesn't make sense to select this option at SoC level. This feature
is meant for subsystems/modules that need device handles to be
modifiable at runtime.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-06-15 10:09:26 -04:00
Anas Nashif 721e4aa8b3 release: fix layout/typos in release notes
Fixed layout and a few typos.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-15 10:08:38 -04:00
Johann Fischer 644d02480e doc: release-notes-3.4: add release notes for USB and display
Add release notes for USB support and display controller drivers.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-06-15 10:07:59 -04:00
Thomas Stranger c9f8b8b78a drivers: sensor: shtcx: fix val2 calculation
The calculation of the sensor val2 did not correctly take the sign into
account.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2023-06-15 08:47:30 -04:00
Maxim Adelman ecf2cb5932 kernel shell, stacks shell commands: iterate unlocked on SMP
call k_thread_foreach_unlocked to avoid assertions caused
by calling shell_print while holding a global lock

Signed-off-by: Maxim Adelman <imax@meta.com>
2023-06-15 05:55:56 -04:00
Johann Fischer fbb6cd1a39 doc: connectivity: move USB-C device stack to USB chapter
This looks a bit lost in its own USB-C chapter,
move it to USB under the Power Delivery heading.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-06-15 05:53:44 -04:00
Johann Fischer b335c19bcb doc: move USB documentation to connectivity
Mostly moved and reorganised content to the Connectivity chapter,
separated API references. Fill in some gaps in the USB device
documentation.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-06-15 05:53:44 -04:00
Benjamin Cabé 09a9a7edf4 doc: release-notes: fix typo with i.MX93 board
NXP i.MX93 is A55 not A53.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-15 05:52:22 -04:00
Benjamin Cabé 4bc46e4e3a doc: release-notes: sort ARM boards alphabetically
Sort ARM boards alphabetically.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-15 05:52:22 -04:00
Benjamin Cabé 8963b50716 doc: release-notes: add missing boards
Added a bunch of missing boards that were added since v3.3.0

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-06-15 05:52:22 -04:00
Jamie McCrae 83b074c418 doc: release: 3.4: Add build system relative path fixes
Adds a note that some relative path issues in the build system
have been fixed.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-06-15 05:10:42 -04:00
Jamie McCrae 9642c48a29 cmake: boards: Fix issue with relative paths
Fixes an issue with relative paths both with and without using
sysbuild where they would not be updated properly or a warning
would previously be emitted.

Signed-off-by: Torsten Rasmussen <torsten.rasmussen@nordicsemi.no>
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-06-15 05:10:42 -04:00
Evgeniy Paltsev e1efafa31d ARC: don't align ROM region end if not required
This extra MPU alignment of RAMABLE_REGION is only required
if we put ROMABLE_REGION and RAMABLE_REGION into the same
(continuous) memory (i.e. SRAM) - so we won't get beginning of the
RAMABLE_REGION in the end of ROMABLE_REGION MPU aperture.

If we use different regions (ICCM & DCCM, FLASH & SRAM, etc...)
we don't need this extra MPU alignment.

Let's drop it to decrease ROM memory usage.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
2023-06-14 17:42:54 -04:00
Kevin Townsend 79433b0ee3 release-notes: 3.4: Add Aarch32 and TF-M notes
Adds release notes for Aarch32 and TF-M for Zephyr 3.4.0.

Signed-off-by: Kevin Townsend <kevin.townsend@linaro.org>
2023-06-14 13:52:55 -04:00
Daniel DeGrasse bc13ce12a1 doc: releases: updates for SDHC and Disk driver release notes
Add release notes for SDHC and Disk drivers, highlighting addition
of NVME support in the disk driver layer as well as CPOL/CPHA clock
modes within the SDHC SPI driver.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-06-14 13:52:21 -04:00
Robert Lubos 4dd3d8679e doc: release-notes: Fix typo in networking part
Fix typo in networking part of the release notes.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-06-14 13:52:00 -04:00
Alberto Escolar Piedras 3ebdc1e330 doc: nrf52_bsim: Update instructions on how to get BabbleSim
As now we point to babblesim with the zephyr manifest,
we can tell users to get it that way.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-06-14 13:50:44 -04:00
Gerard Marull-Paretas e5335f345a device: dynamic device handles were declared as const
When CONFIG_HAS_DYNAMIC_DEVICE_HANDLES is selected, devices handles are
placed in RAM region so that they can be modified at runtime. However,
the gen_handles.py script added the `const` attribute to the device
handle arrays regardless of this setting, leading to faults when running
the application. This may be an indicator that this feature is not
actively used.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-06-14 13:48:02 -04:00
Gerard Marull-Paretas 9f25fa20ce device: set number_of_dynamic_devices only if needed
This variable is only needed when gen_handles.py is called, so define it
under the if() above.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-06-14 13:48:02 -04:00
Jamie McCrae f6512920ca doc: release: 3.4: Add MCUmgr signed type change
Adds a note that slot and image have changed from signed to
unsigned integer types.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-06-14 13:47:08 -04:00
Jamie McCrae 3f8156d0a4 doc: mgmt: smp: Fix slot and image to be unsigned
Fixes the documentation to show image and slot number for get
state of image response being unsigned, not signed.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-06-14 13:47:08 -04:00
Jamie McCrae 1edc8cc762 mgmt: mcumgr: grp: img_mgmt: Fix using signed values
Fixes wrongly using signed values for slot and image number when
listing images.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-06-14 13:47:08 -04:00
Anas Nashif 0773cc88c8 release: document major changes
added highlights to the 3.4 release notes.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-14 09:20:38 -04:00
Andrei Hutanu be04e30a88 samples: net: mqtt_azure: hotfix stack overflow
running samples/net/cloud/mqtt_azure in QEMU with default
configuration crashes with exception. This PR change doubles
the default workqueue stack size in a attempt to fix the issue
reported in: GH#58930.

Signed-off-by: Andrei Hutanu <andrei.hutanu.i@gmail.com>
2023-06-14 09:12:08 -04:00
Robert Lubos a44f6bbb36 doc: release-notes: Add 3.4.0 release notes for networking
Add Zephyr 3.4.0 release notes for the networking area.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-06-14 09:07:23 -04:00
Peter McGaughey 3104ad0e39 drivers: serial: uart_sam0: fix uart_sam0_irq_update TXC reset
drivers: serial: uart_sam0: fix uart_sam0_irq_update TXC reset bug

uart_sam0_irq_update function resets flags that will cause int. re-entry
existing implementation also clears the TXC flag if it is set
this breaks transmit complete detection

Per the SAMD5x/E5x Datasheet Sect. 34.8.6, writing '1' to the TXC will
clear the flag and disable TX complete interrupts, this should be
preserved through the irq_update for use in the tx_complete check function

The proper fix will cache the TXC value before conditionally clearing the
flag based on that cached value. If you do not condition this on the
cached value a race condition will periodically occur where
the TXC is cleared but never cached.

Fixes zephyrproject-rtos#55386

Signed-off-by: Peter McGaughey <peter.mcgaughey@daikincomfort.com>
2023-06-13 15:09:28 -04:00
Pierce Lowe 2019c044ba Bluetooth: hci: Add 5.4 HCI error codes
Add new bluetooth hci error codes from Bluetooth 5.4 specification

Signed-off-by: Pierce Lowe <pierce.lowe@nordicsemi.no>
2023-06-13 13:32:17 -04:00
Pieter De Gendt 5cdbd59c67 include: crypto: Remove duplicate assignment line
The crypto hash context has a reference to the crypto device,
but the assignment was duplicated.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2023-06-13 10:43:00 -04:00
Alberto Escolar Piedras d5815d6ad1 doc: 3.4 release notes: Fix doc build
Fix doc build error due to a bad indent

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-06-13 10:42:42 -04:00
Anas Nashif 9f37ae902b tests/samples: set ram/rom limits on some samples/tests
Increase RAM requirements for some test, we have many exotic platforms
failing to link due to the size of the test.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-13 09:38:27 -04:00
Anas Nashif dd43a65540 samples: watchdog: fix twister filter
Fix devicetree filter. dt_has_compat is not a twister support filter.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-13 09:38:27 -04:00
Anas Nashif 8ffb08b10e tests: net: sockets: remove scneario
This scneario does not build and does not fit on hardware, remove.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-13 09:38:27 -04:00
Anas Nashif 5411e7d4a8 tests: synchronization: do not build on all
Do not build on platforms, we have other tests covering this already.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-13 09:38:27 -04:00
Anas Nashif b835b02136 tests: cleanup metadata and filtering
- Add integration_platforms to avoid excessive filtering
- Make sure integration platforms are actually part of the filter
- Fix some tags and test meta data

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-13 09:38:27 -04:00
Anas Nashif c1bb577f28 samples: bluetooth: remove duplicate entry in test
Also remove platforms where we overflow on RAM.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-13 09:38:27 -04:00
Yonatan Schachter cd3e1438ec doc: Added RP2040 related changes to the v3.4.0 release notes
Added RP2040 related changes to the v3.4.0 release notes,
including new boards, new drivers and HAL changes.

Signed-off-by: Yonatan Schachter <yonatan.schachter@gmail.com>
2023-06-13 09:36:56 -04:00
Dominik Ermel 503b3672aa doc: release: 3.4: Bulk of updates
Add release notes on:
 - change in west sign internal logic;
 - additional LittleFS sample configuration for nrf52840dk_nrf52840
   using SPI communication;

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2023-06-13 09:34:01 -04:00
Erwan Gouriou 523ba79d54 release-notes: v3.4: Document shield additions
Document shields added in V3.4 release

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2023-06-13 09:11:19 -04:00
Erwan Gouriou f6d7a6a701 release-notes: v3.4: Document STM32 changes
Document STM32 related changes on V3.4 release.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2023-06-13 09:11:19 -04:00
Carles Cufi e31cea0f71 release: relnotes: Add Bluetooth release notes for 3.4.0
As usual, populate the Bluetooth release notes.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2023-06-13 08:55:02 -04:00
Naveen Saini 0b1dd29799 gcc/target.cmake: fix build with gcc-13
Configuration error:
| -- Configuring done (4.9s)
| CMake Error in CMakeLists.txt:
|   Target "zephyr_interface" contains relative path in its
|   INTERFACE_INCLUDE_DIRECTORIES:
|
|     "include-fixed"

With GCC-13, limits.h and syslimits.h header files
are always being installed to include folder.
https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=be9dd80f933480

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2023-06-13 08:28:57 -04:00
Ajay Parida 6002061efe net: wifi_mgmt: Pass address instead of value as pointer
Fix for not getting expected event information at application.
net_mgmt_event_notify_with_info() expects the address
not the value as pointer.

Signed-off-by: Ajay Parida <ajay.parida@nordicsemi.no>
2023-06-13 08:28:43 -04:00