Commit graph

115930 commits

Author SHA1 Message Date
Sadik Ozer
9b7927f2a3 soc: arm: adi: max32: Add power management feature
This commit add power.c file that provides device goes to low power modes

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2025-05-28 01:46:50 +02:00
Sadik Ozer
2415dcc5ea dts: arm: adi: Add power management states in devicetree
This commits added power management states in max32xxx MCUs
Common states added in max32xxx.dtsi file and additional ones
added in max32655.dtsi

Exit-latency-us value set as per of device datasheet spec.
The typical value is mentioned in DS is multiplied with 2.
For more information please take a look:
https://www.analog.com/en/products/max32655.html

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2025-05-28 01:46:50 +02:00
Sadik Ozer
497f2ce835 dts: adi: Enable low-power pin modes
low-power pins can be used while device power management enabled.
Usage

...
&uart0a_rx_p0_0 {
  pinmux = <MAX32_PINMUX(0, 0, AF1)>;
  low-power-enable;
  /* Add low power mode flags, like: */
  output-high;
  bias-disable;
  ...
};
...

Default gpio sleep states are defined, user shall update sleep_pins
configuration as per of their needs

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2025-05-28 01:46:50 +02:00
Phi Bang Nguyen
66e8a6f873 drivers: video: Combine some API function pointer types
Some API function pointer types such as set/get_format(),
set/get_frmival() are indentical. Combine them to save some spaces.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-05-28 01:46:32 +02:00
Nathan Olff
2ac316465f tests: drivers: sensor: add ad2s1210 to build_all test
add ad2s1210 to build_all test in spi.dtsi

Signed-off-by: Nathan Olff <nathan@kickmaker.net>
2025-05-27 23:43:56 +02:00
Nathan Olff
b88a27a3e8 drivers: sensor: adi: add ad2s1210 resolver support
implement driver for ad2s1210 resolver

Signed-off-by: Nathan Olff <nathan@kickmaker.net>
2025-05-27 23:43:56 +02:00
Magpie Embedded
bf664b88cd samples: sensor: Modify MAX30101 sample to generic heart rate sensor sample
This commit modifies the MAX30101 sample to produce a generic heart rate
sensor sample.
Support for the BH1790 sensor is added.

Signed-off-by: Magpie Embedded <magpieembedded@gmail.com>
2025-05-27 23:43:43 +02:00
Magpie Embedded
74ef345dc1 drivers: sensor: Add sensor driver for BH1790
This commit adds a driver for the BH1790 Heart Rate Monitor IC.

Based on the approach used by the MAX30101 driver, an existing optical
heart rate sensor with a sample in Zephyr.

Signed-off-by: Magpie Embedded <magpieembedded@gmail.com>
2025-05-27 23:43:43 +02:00
Phi Bang Nguyen
fadb9c7ccb MAINTAINERS: Add video maintainer
Add Josuah Demangeon "josuah" and Phi Bang Nguyen "ngphibang"
as maintainers for video drivers.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-05-27 21:41:18 +02:00
David Leach
88c34b06dd doc: binary blobs: remove TSC approval requirement
Remove the TSC approval requirements for binary blobs. Clarify
in the language that the submitter and reviewers shall ensure
that all binary blob requirements are being met before approval
and integration into Zephyr.

Signed-off-by: David Leach <david.leach@nxp.com>
2025-05-27 21:40:06 +02:00
Benjamin Cabé
464a49d1af dts: riscv: aesc: Add reg-names to machine timer node
Commit 42fb9067e4 makes it mandatory to
now have reg-names property on the riscv,machine-timer node. This DTS
file was somehow missed as part of the refactoring.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-05-27 21:39:55 +02:00
Chen Xingyu
2752814eab doc: migration: 4.2: Clarify machine timer DTS changes
Clarify the changes introduced in machine timer bindings:

* Several legacy compatibles (e.g. andestech,machine-timer,
  neorv32-machine-timer, etc.) have been unified under riscv,machine-timer.
* MTIME and MTIMECMP addresses must now be specified explicitly using the
  reg and reg-names properties.
* The reg-names property is now required and must match the reg entries
  one-to-one.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2025-05-27 19:04:22 +02:00
Chen Xingyu
e40315eb27 dts: riscv: Add reg-names to machine timer nodes
This commit updates all relevant device tree source files using the
riscv,machine-timer binding to explicitly define `reg-names` for the MTIME
and MTIMECMP registers.

This change ensures compatibility with the updated riscv_machine_timer
driver, which now relies on `reg-names` to resolve register addresses
instead of using fixed index positions.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2025-05-27 19:04:22 +02:00
Chen Xingyu
42fb9067e4 drivers: timer: riscv_machine_timer: Use reg-names to access registers
This commit updates the riscv_machine_timer driver to resolve MTIME and
MTIMECMP register addresses by their `reg-names` instead of relying on
index order.

This improves clarity and robustness in DTS bindings, and is a prerequisite
for handling cases where not both MTIME and MTIMECMP registers are present
or accessible.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2025-05-27 19:04:22 +02:00
Fin Maaß
7db4b5e647 MAINTAINERS.yml: rename NXP Drivers
The set_assignees.py script detects platforms
by checking if the Area title contains the string
"Platform",  this was missing for some NXP
Platforms, so this adds it. This way the platform
maintainers are assigned preferably.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-05-27 19:04:05 +02:00
Anas Nashif
1fbd8d3aa3 templates: use a new bug template based on forms.
Use a form based template instead of freesyle template. This will force
bug reporters to follow the template and provide the needed information
and will make triage easier and bug reports consistent.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-05-27 19:03:56 +02:00
Verena Schweinstetter
9313df9813 drivers: stepper: allegro: Fix missing break statement
Fix missing break statement in a4979.c after line 123

Signed-off-by: Verena Schweinstetter <verena.schweinstetter@zeiss.com>
2025-05-27 17:56:27 +02:00
Jilay Pandya
2ef1558896 drivers: stepper: add missing include guard
Add missing include guard in drv84xx pubic header

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-05-27 17:56:13 +02:00
Abderrahmane JARMOUNI
d2f857f000 samples: lvgl: multi_display: fix typo in sample yaml
fix typo that prevents sample from being built in CI

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-05-27 17:56:02 +02:00
Grzegorz Chwierut
632d006260 twister: Convert platform names before printing
Just move a code with workaroud to convert platform names
to the full name with variants.
It fixes an issue, that not every platforms are printed
before running tests.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2025-05-27 17:55:46 +02:00
Wouter Horré
5052919a2b drivers: i2c: stm32: Fix size calculation of n_timings
`timings` is an array of `struct i2c_config_timing` (3 x `uint32_t`).
`i2c_timings_##index` is an array of `uint32_t` (hence the cast when it
is assigned to `timings`). Therefore `ARRAY_SIZE(i2c_timings_##index)` is
off by a factor 3 when used for `n_timings`.

Parentheses around the second `sizeof` are there to silence the gcc warning
(-Wsizeof-array-div) that warns about not computing the size of
`i2c_timings_##index`.

Signed-off-by: Wouter Horré <wouter@versasense.com>
2025-05-27 17:55:36 +02:00
Robert Lubos
17c00ce868 tests: net: http_client: Increase ztest stack size
The ztest stack was too small on some platforms (e.g. nRF52840), so
increase the stack size.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-05-27 16:49:01 +02:00
Fin Maaß
4d7e35be1c mgmt: hawkbit: reset action ID after successful update report
reset action ID after successful update report.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-05-27 16:45:21 +02:00
Valerio Setti
a03b06fd04 tests: modules: uoscore: remove unnecessary dependencies
PSA Crypto dependencies are automatically selected in the uOSCORE's
Kconfig.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-05-27 16:45:13 +02:00
Valerio Setti
9e190f6d92 modules: uoscore-uedhoc: select required PSA Crypto features
Let uOSCORE and uEDHOC Kconfigs select required PSA Crypto features
instead of having them selected in Mbed TLS' Kconfigs. Besides this the
previous configuration was enabling legacy support in Mbed TLS whereas
uOSCORE/uEDHOC use PSA Crypto APIs.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-05-27 16:45:13 +02:00
Valerio Setti
df3485360a modules: mbedtls: don't enable RSA support for UOSCORE or UEDHOC
uOSCORE and uEDHOC only use ECDSA and ECDH for signatures and key
agreement respectively, so the support for RSA is not required.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-05-27 16:45:13 +02:00
Benjamin Cabé
3534a23c61 doc: introduction: replace NIOS II mention by Renesas RX
Remove one last (?) mention of NIOS II in the docs ; use it as an
opportunity to mention recently added support for Renesas RX.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-05-27 16:45:09 +02:00
Benjamin Cabé
54945f7979 boards: sparkfun: adopt zephyr:board directive
updates a couple boards to make the most of Sphinx board extensions.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-05-27 16:44:56 +02:00
Mark Wang
38fce64e6a bluetooth: shell: the setting is forced as disabled for mimxrt1170_evkb
delete the default configs of disabling the setting on mimxrt1170_evkb.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-05-27 16:44:45 +02:00
David Leach
c52bea0a6d soc: imxrt: remove MEMC config selection
MEMC no longer needs to be default y on RT builds.

Fixes #89782

Signed-off-by: David Leach <david.leach@nxp.com>
2025-05-27 16:44:37 +02:00
Mark Wang
18c18c6905 bluetooth: shell: pairing_accept callback access NULL pointer
pairing_accept callback is called with feat as NULL in
the bt_hci_io_capa_req.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-05-27 16:44:28 +02:00
Szymon Janc
5e0d3cce8b Bluetooth: Host: L2CAP: Fix checking signaling packets size
Recent test specification added additional test for validating
invalid packet sizes on L2CAP signaling channel. IUT is allowed
to either disconnect link, ignore packet, reject packet or
issue a warning to upper tester if other action is taken.

To keep things in line with previous check for too small size
simply ignore fixed size packets of invalid length.

This was affecting L2CAP/COS/CED/BI-11-C qualification test.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2025-05-27 16:44:17 +02:00
Tomi Fontanilles
18b14e7a2c secure_storage: its: transform: improve expandability
Instead of checking whether a custom implementation is present, check
whether the AEAD one is used.
This allows downstream users to expand the implementation choice with
more options.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-05-27 15:46:37 +02:00
Tomi Fontanilles
001d054bc3 secure_storage: its: make definitions available outside of transform.h
Some ITS store module implementations may make use of them.
This is the case of the custom one in the
secure_storage.psa.its.secure_storage.custom.store test.

Instead of making transform.h conditionally available, move the definitions
to common.h and simply make them available whenever the ITS transform
module is enabled.

At the same time, remove unneeded/redundant includes/build asserts.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-05-27 15:46:37 +02:00
Tomi Fontanilles
9379678fcf secure_storage: its: transform: aead: improve expandability
Instead of checking for CONFIG_SECURE_STORAGE_ITS_TRANSFORM_AEAD_*_CUSTOM,
check for any of the existing providers.
This allows downstream users to expand the choices with more options

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-05-27 15:46:37 +02:00
Tomi Fontanilles
b87befb36b secure_storage: its: improve return codes
Some minor improvements.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-05-27 15:46:37 +02:00
Sudarsan N
8cf71d091e samples: adc_dt: add overlay for STM32F0-DISCO
Add board-specific overlay file for the adc_dt sample
on the STM32F0-DISCO board to enable ADC channel support.

Signed-off-by: Sudarsan N <sudarsansamy2002@gmail.com>
2025-05-27 15:46:19 +02:00
Marek Matej
c203760784 drivers: wifi: esp32: Add option for WiFi SPIRAM
Update kconfig to support SPIRAM.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-05-27 15:46:08 +02:00
Marek Matej
937ed1fca7 manifest: hal_espressif
Update HAL to support Wi-Fi buffers in PSRAM.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-05-27 15:46:08 +02:00
Emil Gydesen
52f089af23 Bluetooth: CSIP: Set member: Fix issue with re-registration
The bt_csip_set_member_register kept a counter that was not
decreased when bt_csip_set_member_unregister was called.
This meant that we could register and unregister CSIS,
but we could not re-register once it had been unregistered.

This commit fixes this by removing the counter and instead
rely on the service instance state, which also requires restoring
the original service definition, as well as adding a test that would
have failed with the previous version.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-27 14:45:15 +02:00
Flavio Ceolin
287984f629 docs: pm: Update runtime PM documentation and release notes
Add new configuration options for runtime PM to the release notes,
including stack size, priority, and system work queue usage. Update
the runtime PM documentation to explain the implications of using the
system work queue and disabling asynchronous operations. Include a new
version of the sequence diagram for asynchronous operations.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-05-27 14:45:07 +02:00
Flavio Ceolin
437b56d22e pm: device_runtime: Make async optional
Async now uses its own work queue, which means it consumes more
resources. Since not all applications need the async API, we can make
it optional without any penalty for those applications.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-05-27 14:45:07 +02:00
Flavio Ceolin
64e38bab55 pm: device_runtime: Allow to use a dedicated wq
Device runtime is using the system workqueue to do operations
that are mostly blockers (suspend a device). This should not happen.

This commit adds an option to use dedicated queue for the device runtime
async operations.

The test for this API was assuming that the system workqueue
priority (which is cooperative) so we need to change the test priority
to be lower than the device runtime workqueue priority.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-05-27 14:45:07 +02:00
Sergei Ovchinnikov
eb811d1753 drivers: mfd: npm2100: fix timer value calculation
A -1 was missing from the timer value calculation. In addition,
DIV_ROUND_CLOSEST was replaced with a custom macro fixing #84782.

Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
2025-05-27 14:44:59 +02:00
Alvis Sun
bcf7717e97 drivers: clock_control: npcx: add NPCXn variant support in clock init
As title.

Signed-off-by: Alvis Sun <yfsun@nuvoton.com>
2025-05-27 12:15:36 +01:00
Emil Gydesen
f24ba75aba Bluetooth: BAP: BA: Add check for mixing NO_PREF with specific BIS
Based on a dicussion on the Bluetooth SIG GAWG reflector, it is
not allowed for a broadcast assistant to request specific BIS
indexes as well as BT_BAP_BIS_SYNC_NO_PREF in the same
request.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-27 12:02:16 +01:00
Emil Gydesen
de4752c393 Bluetooth: BAP: SD: Add check for mixing NO_PREF with specific BIS
Based on a dicussion on the Bluetooth SIG GAWG reflector, it is
not allowed for a broadcast assistant to request specific BIS
indexes as well as BT_BAP_BIS_SYNC_NO_PREF in the same
request.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-27 12:02:16 +01:00
Emil Gydesen
60e9f99582 tests: Bluetooth: Split CAP and GMAP AC tests into separate scripts
This commit splits the CAP and GMAP audio configuration (AC)
tests into separate scripts. The purpose of this is to reduce
the runtime of the individual scripts (some, like the cap_ac_11,
tests takes a long time to run all combinations).
This split also improves support for running them in parallel.

An additional, positive, side effect of this is that the logs will
also be smaller per run.

The new scripts can be run directly, or via the e.g. _cap_ac_X.sh
scripts that run entire audio configuration for all presets.

The design of how the parameters are passed around, are based
on variable instead of function arguments. Effectively they can
be used for the same thing, but variables have the advantage
that it is easier to deal with longer names,
and that any of the test scripts can be called with additional
arguments that can, when using variables, easily be forwarded
to the call to Execute for the PHY in the
_ac_common.sh.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-27 12:01:59 +01:00
Jean Nanchen
2066b8c7b9 drivers: i2c: stm32: add timeout to avoid infinite loop
Fix issue where STM32 I2C LL driver could block forever when SDA and SCL
are shorted and interrupts are disabled (CONFIG_I2C_STM32_INTERRUPT=n).

Added timeouts to all blocking wait loops in the STM32 LL I2C driver to
avoid indefinite blocking.

Fixes #88506

Signed-off-by: Jean Nanchen <jean.nanchen@hevs.ch>
2025-05-27 12:01:31 +01:00
Chen Tao
b513e08271 net: wifi: fix the bug by non-wifi network call
Added network type check to fix the system crash caused by non-wifi
network card calling wifi api interface

Company:BSH Crop
Signed-off-by: Chen Tao <ct05342@163.com>
2025-05-27 11:51:23 +02:00