Commit Graph

104357 Commits

Author SHA1 Message Date
Alberto Escolar Piedras 1c7540883f boards nrf_bsim: Add NVIC_GetPendingIRQ() equivalent
Add a substitute for NVIC_GetPendingIRQ()

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-10-24 17:01:50 +01:00
Alberto Escolar Piedras c4e6ec89a7 boards nrf_bsim: Provide IRQ_PRIO_LOWEST
Some apps use it, so let's provide it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-10-24 17:01:50 +01:00
Alberto Escolar Piedras 15a7819a9b manifest: Update nRF hw models to latest
Update the HW models module to:
aca798cf7cf0c5dc1fd89c66cf62670051feb8d0

Including the following:
* aca798c IRQ controller: Add missing prototype
* 4f108bc IRQ controller: Add API to check if int is pending
* a514448 MDK: provide replacement for SystemCoreClock*

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-10-24 17:01:50 +01:00
Alberto Escolar Piedras 6ffbb8c728 native_simulator: Get latest from upstream
Align with native_simulator's upstream main
51b27b67addd0073dc86e3d83f492c5cac5c3361

Which includes:
* 51b27b nsi_utils: Add macro for weak declarations

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-10-24 17:01:50 +01:00
Riadh Ghaddab 3c4fcaa2c0 doc: zms: add documentation for ZMS
This adds the documentation for the Zephyr Memory Storage system.

Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com>
2024-10-24 16:57:12 +01:00
Riadh Ghaddab fb7dae77ef samples: fs: zms: add a sample app for ZMS storage system
This adds a user application that shows the usage of ZMS
The sample app shows three main functions of ZMS:
- read/write/delete key/value pairs
- fill all storage and delete it
- calculate free remaining space

Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com>
2024-10-24 16:57:12 +01:00
Riadh Ghaddab 004d6d6adc tests: fs: zms: add testsuite for ZMS storage
List of added tests :
- zms.test_delete
- zms.test_zms_cache_collission
- zms.test_zms_cache_gc
- zms.test_zms_cache_hash_quality
- zms.test_zms_cache_init
- zms.test_zms_corrupted_sector_close_operation
- zms.test_zms_corrupted_write
- zms.test_zms_full_sector
- zms.test_zms_gc
- zms.test_zms_gc_3sectors
- zms.test_zms_gc_corrupt_ate
- zms.test_zms_gc_corrupt_close_ate
- zms.test_zms_mount
- zms.test_zms_write

Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com>
2024-10-24 16:57:12 +01:00
Riadh Ghaddab d4e246dfa1 fs: introduce ZMS a new Memory storage system
ZMS is the abreviation of Zephyr Memory Storage.
It is a storage developed to target especially the non erasable devices.

The new memory storage system inherit from the NVS storage multiple
features and introduce new ones :
* Inherited features :
 - light key-value based storage
 - cache for entries
 - Wear Leveling of flash memory
 - Resilience to power failures
* New features :
 - cycle counter for non erasable devices (instead of erase emulation)
 - Keys up to 32-bit
 - Built-in support of CRC32 for data
 - Small size data (<= 8 bytes) integrated within entries

Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com>
2024-10-24 16:57:12 +01:00
Grzegorz Swiderski 96f08d53a4 drivers: adc: nrfx_saadc: Use CONFIG_NRF_PLATFORM_HALTIUM
Apply it in a few more locations that were missed in
5a4655f69f.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2024-10-24 16:55:44 +01:00
Grzegorz Swiderski b3b0c63ad9 soc: nordic: Enable VPR launcher on nRF54H20 EngB
Just like on nRF54H20 EngC.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2024-10-24 16:55:44 +01:00
Grzegorz Swiderski bcf6a91689 logging: stmesp: Do not append strings on nRF54H20 EngB VPRs
Just like on nRF54H20 EngC.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2024-10-24 16:55:44 +01:00
Grzegorz Swiderski 0379424b43 modules: hal_nordic: nrfs: Enable DVFS service on nRF54H20 EngB
Just like on nRF54H20 EngC.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2024-10-24 16:55:44 +01:00
Grzegorz Swiderski 3f221f9577 modules: hal_nordic: Disable 802.15.4 temp update on nRF54H20 EngB
Just like on nRF54H20 EngC.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2024-10-24 16:55:44 +01:00
Grzegorz Swiderski 41f53b2091 drivers: cache: Enable LINEADDR workaround on nRF54H20 EngB
Just like on nRF54H20 EngC.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2024-10-24 16:55:44 +01:00
Troels Nilsson e07076df87 tests: Bluetooth: Add BSim tests with BT_CTLR_SCAN_AUX_USE_CHAINS
Add overlay setting CONFIG_BT_CTLR_SCAN_AUX_USE_CHAINS for advx
and bis tests

Signed-off-by: Troels Nilsson <trnn@demant.com>
2024-10-24 16:55:35 +01:00
Troels Nilsson eab3f49247 Bluetooth: Controller: Introduce scan_aux_chain context
Introduces the concept of ll_scan_aux_chain, that allows for
keeping track of several advertising chains with a minimal
overhead. This replaces using several scan aux sets each with
an associated ticker IDs

Only one ticker is used for following chains; This is achieved
by having the scheduled chains in a sorted list and restarting
the ticker when the first in the list expires

EVENT_DONE_EXTRA_TYPE_SCAN_AUX now includes a pointer to the lll
structure to identify which chain to flush (to avoid race
conditions)

New implementation is hidden behind a config for now (defaults
to off): BT_CTLR_SCAN_AUX_USE_CHAINS

Other minor changes:
- rx_incomplete node pointer was moved to ll_sync_set
- data_len removed from ll_sync_set (it uses the chains instead)

Signed-off-by: Troels Nilsson <trnn@demant.com>
2024-10-24 16:55:35 +01:00
Janco Kock 2ed67e9841 drivers: ethernet: enc424j600: change mac addr runtime
Add ability to change mac address at runtime using net mgmt config call

Signed-off-by: Janco Kock <jancokock@gmail.com>
2024-10-24 17:54:08 +02:00
Iuliana Prodan 9f0c618c45 samples: add number crunching using optimized library sample
This sample executes some mathematical functions
that can be used for audio processing like
filtering (Fast Fourier Transform (FFT)) or
echo cancellation (Least Mean Square (LMS) filter algorithm).

This is an example that demonstrates how to include a proprietary
static library into the Zephyr build system.
The library is in an out of tree location.

To use this sample, with an out of tree library, one needs to define
an environment variable LIB_LOCATION.
If that is not defined, a default Zephyr API is used instead.

By default it uses CMSIS-DSP backend for math operations.
In README one can find more information.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2024-10-24 17:52:40 +02:00
Tobias Pisani 66af846010 drivers: ti: bq274xx: Do not wait for device on init when lazy-loading
Before communicating with the device, the driver needs to wait 300ms. This
moves all communication with the device from init to configure, such
that this delay can be avoided on startup by using zephyr,lazy-load.

Signed-off-by: Tobias Pisani <mail@topisani.dev>
2024-10-24 17:52:30 +02:00
Alberto Escolar Piedras b9ab52fc5d MAINTAINERS: Add rugeGerritsen to BT host and ISO as collaborator
Add Rubin Gerritsen as collaborator to the BT host and BT ISO.
He has been very active in these areas.
See for more info:
https://github.com/zephyrproject-rtos/zephyr/issues/80233

List the host collaborators in alphabetical order while at it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-10-24 17:52:19 +02:00
Reto Schneider e399bcc98a samples: drivers: crypto: Support SiM3Uxx
This is needed to allow testing the SiM3U implementation using Twister.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-10-24 17:52:05 +02:00
Reto Schneider 7dc6dd9b8a boards: silabs: sim3u1xx_dk: Enable crypto support
Using the HW acceleration is much faster than either Mbed TLS or
tinycrypt.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-10-24 17:52:05 +02:00
Reto Schneider 1790eda851 drivers: crypto: Add initial SiM3U1xx support
This driver makes use of the hardware AES acceleration, using DMA
transfers.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-10-24 17:52:05 +02:00
Reto Schneider de04a0e7cd dts: arm: silabs: sim3u: Add crypto support node
This is needed for Si32 crypto driver support.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-10-24 17:52:05 +02:00
Reto Schneider 71214ae576 dts: bindings: crypto: Add initial Si32 binding
This is needed for Si32 crypto driver support.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-10-24 17:52:05 +02:00
Yassine El Aissaoui d4ea3010ee west.yml: update hal_nxp to reference MCXW71 blob addition
Reference MCXW71 blob addition.

Signed-off-by: Yassine El Aissaoui <yassine.elaissaoui@nxp.com>
2024-10-24 17:51:58 +02:00
Lingao Meng dc55305116 Samples: Bluetooth: Fix where the TX thread no longer be sent out
When ever `unack_queue_len` changed, should raise signal
`tx_queue_change` to let's tx_thread known queue changed.

Fixed the situation where the TX thread may no longer be sent out

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
2024-10-24 17:51:50 +02:00
Hubert Guan 57723cf405 dts: arm: st: Refactor DTSI files to use macro
Replaces raw hex codes by using STM32_CLOCK macro

Signed-off-by: Hubert Guan <hguan@ucsb.edu>
2024-10-24 17:51:42 +02:00
Hubert Guan 79cf84c6f4 dts: arm: st: Add include to stm32mp157
Fixes error where STM32_CLOCK macro isn't recognized.

Signed-off-by: Hubert Guan <hguan@ucsb.edu>
2024-10-24 17:51:42 +02:00
Hubert Guan e382969f3b include: zephyr: dt-bindings: clock: Rename domain clock selection macro
Rename from STM32_CLOCK to STM32_DOMAIN_CLOCK since it conflicts with
new macro name.

Signed-off-by: Hubert Guan <hguan@ucsb.edu>
2024-10-24 17:51:42 +02:00
Hubert Guan d2273c02df include: zephyr: dt-bindings: clock: Define STM32_CLOCK macro
Define new macro for reading and writing convenience.

Signed-off-by: Hubert Guan <hguan@ucsb.edu>
2024-10-24 17:51:42 +02:00
TOKITA Hiroshi 22ad205919 doc: gsg: Add a note about setting udev rules
Added a note that udev rules must be configured in Linux environments.
Reformatted text accordingly.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-10-24 17:51:34 +02:00
TOKITA Hiroshi ae74e87c38 doc: gsg: Host-Tools is only provide for Linux
Host-Tools are only included in the SDK for Linux,
so revised the description.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-10-24 17:51:34 +02:00
TOKITA Hiroshi 492f84d8b0 doc: gsg: Updating SDK installation instructions to using `west sdk`
SDK installation has been simplified by introducing the `west sdk`
command. I updated the documentation to use this.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-10-24 17:51:34 +02:00
Rafael Laya 16218018d7 drivers: regulator: Linter pass to unit test
Linter pass makes CI happy and keeps code compliant
with the stylistic guidelines of the project

Signed-off-by: Rafael Laya <rafael_laya97@hotmail.com.com>
2024-10-24 17:51:25 +02:00
Rafael Laya e542dde890 drivers: regulator: add tests for get_max/min voltage
Adds unit tests to make sure get_max and get_min voltage
remain healthy

Signed-off-by: Rafael Laya <rafael_laya97@hotmail.com.com>
2024-10-24 17:51:25 +02:00
Rafael Laya cda19bdab6 drivers: regulator: API to get max regulator voltage
There is already a get_min_voltage() API, so let us add
an API to also query the max voltage

Signed-off-by: Rafael Laya <rafael_laya97@hotmail.com.com>
2024-10-24 17:51:25 +02:00
Benjamin Cabé a4adfc72d3 boards: sifive: adopt new zephyr:board directive and role
This updates the documentation of all the SiFive boards
to use the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Benjamin Cabé 367f4eb143 boards: element14: adopt new zephyr:board directive and role
This updates the documentation of all the Element14 boards
to use the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Benjamin Cabé 04e259ca98 boards: cdns: adopt new zephyr:board directive and role
This updates the documentation of all the Cadence boards
to use the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Benjamin Cabé 5666e93f60 boards: franzininho: adopt new zephyr:board directive and role
This updates the documentation of all the Franzininho boards
to use the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Benjamin Cabé cf3665eda4 boards: ct: adopt new zephyr:board directive and role
This updates the documentation of all the CThings boards
to use the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Benjamin Cabé bcfbcc00af boards: qemu: adopt new zephyr:board directive and role
This updates the documentation of all the Qemu boards
to use the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Benjamin Cabé f2c2cc334d boards: weact: adopt new zephyr:board directive and role
This updates the documentation of all the WeAct boards
to use the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Benjamin Cabé dc271263d4 boards: others: adopt new zephyr:board directive and role
This updates the documentation of all the "others" boards
to use the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Benjamin Cabé 3e0bf34a94 boards: contextualelectronics: adopt new zephyr:board directive and role
This updates the documentation of all the Contextual Electronics boards
to use the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Benjamin Cabé 834c3878ca boards: raspberrypi: adopt new zephyr:board directive and role
This updates the documentation of all the Rasperry Pi boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Benjamin Cabé 1a56594957 boards: dptechnics: adopt new zephyr:board directive and role
This updates the documentation of all the DPTechnics boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Benjamin Cabé f5e3535759 boards: sc: adopt new zephyr:board directive and role
This updates the documentation of all the Space Cubics boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Benjamin Cabé 41066b5f73 boards: seco: adopt new zephyr:board directive and role
This updates the documentation of all the SECO boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00