Commit graph

126,787 commits

Author SHA1 Message Date
Mario Paja
81eba04491 dts: st: u3: enable sai node for stm32u3xx
Define SAI nodes for STM32U3xx series

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-07-30 17:34:19 -04:00
Andrey Dodonov
286362087d net: http: service: extend HTTP service with config
Update the HTTP service API to allow setting per-service configuration,
currently it is only custom socket creation callback,
but in the future it can be extended with other parameter

Signed-off-by: Andrey Dodonov <Andrey.Dodonov@endress.com>
2025-07-30 17:32:43 -04:00
Tobias Meyer
ceadedf3ae drivers: sensor: tmp11x: add trigger for alert and pm
Allows to configure the alert or therm mode for triggers
based on the low/high temperature treshholds
Also adding simple PM

Signed-off-by: Tobias Meyer <tobiuhg@gmail.com>
2025-07-30 17:32:27 -04:00
Can Wang
afa529e2dc tests: Bluetooth: BR: Disable LOG in smp_general test suite.
Because the WRN logs from LOG module affect the test script
recognizes the string.

Signed-off-by: Can Wang <can.wang@nxp.com>
2025-07-30 17:32:12 -04:00
Raffael Rostagno
f9260ae2e5 drivers: pwm: ledc: esp32: Fix RC_FAST and REF_TICK
Depending on clock config init, some devices might be initialized
with RC_FAST clock enabled but not calibrated. Logic to detect if
clock is calibrated was fixed for this reason. Also, logic to set
RC_FAST and REF_TICK for devices with timer specific clocks (ESP32
and ESP32-S2) was also fixed.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-07-30 17:30:50 -04:00
Tahsin Mutlugun
ea7f01b172 tests: subsys: pm: Use LPTIMER as idle timer for MAX78002EVKIT board
Replace RTC with LPTIMER as the latter has a better time resolution.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
41339e2dd4 tests: subsys: pm: Use WUT as idle timer for MAX32655 boards
Use Wake-Up Timer which has a higher resolution than RTC as the sleep
timer for MAX32655 boards.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
bc94ca4994 tests: pm: power_mgmt_soc: Enable tests on MAX32657EVKIT boards
Enable SoC power management on MAX32657EVKIT secure and nonsecure
boards.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
ad938267db tests: pm: Enabled deferred logging for max32690evkit
Device goes to deep-sleep after tests finish so bytes in UART FIFO are
not transmitted. As a consequence, twister cannot receive project
success string and misinterprets the test result. Enable deferred
logging so that logs are flushed after tests.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Sadik Ozer
fa8de8b743 tests: subsys: pm: Remove unneeded flag
Not needed to disable MAX32_ON_ENTER_CPU_IDLE_HOOK flag anymore
It is not set if CONFIG_PM been defiend

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
8c33a9b252 boards: adi: max32657evkit: Change wake-up timer clock sources to INRO
Set wake-up timers' clock source to INRO as EVKIT does not have an XTAL
soldered by default.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
2a8997384d dts: arm: adi: max32657: Add Wake-Up Timer instances
Add wut0 and wut1 to max32657_common.dtsi.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
3516059509 dts: bindings: timer: max32: Make clock property optional
Some instances of timers such as wakeup timer are not tied to a clock
bus so make this property optional.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
6cc8b1645f dts: arm: adi: Update MAX32657 low power states and residencies
Set MAX32657 cpu power states as idle, standby and powerdown. Power down
mode is disabled by default and can only be entered by calling
pm_state_force. Note that residency durations may need to be updated
depending on the resolution of chosen sleep timer.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Sadik Ozer
10b3fe8d1c soc: arm: adi: MAX32657 add HAS_PM flag
Add HAS_PM flag to enable power management for MAX32657

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2025-07-30 17:25:03 -04:00
Sadik Ozer
4efec06a81 dts: arm: adi: Add MAX32657 power management states
Add basic power management states of MAX32657.
After UG/DS has been finalized the values and states
might be need to be updated.

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2025-07-30 17:25:03 -04:00
Sadik Ozer
ddf97dde7b dts: arm: adi: Add MAX32657 low power pins
Add low power pin definitions

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
add6eb6726 soc: adi: max32: Use ceiling method to calculate exit latency ticks
The default 'near' mode results in zero exit latency ticks, which
prevents `sys_clock_set_timeout` from being called. This causes
the system to remain stuck in deep sleep modes. Use ceiling method
to obtain a nonzero exit latency tick count.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Alberto Escolar Piedras
f4794f848b doc boards/native: Remove orphan diagram
This diagram was superseded by layering_natsim.svg
When the native_posix related documentation was removed
this diagram stopped being used.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-07-30 17:24:32 -04:00
Piotr Krzyzanowski
1635e06eed tests: drivers: pwm_gpio_loopback: Add more channels
Add more channels testing nrf platforms.

Signed-off-by: Piotr Krzyzanowski <piotr.krzyzanowski@nordicsemi.no>
2025-07-30 17:23:12 -04:00
Piotr Krzyzanowski
bf017aa949 tests: drivers: pwm_gpio_loopback: Test improvement
Improve corss-channel test by setting different
duty cycle on channels. This modification will enable
detection of inter-channel effects like crosstalk.

Signed-off-by: Piotr Krzyzanowski <piotr.krzyzanowski@nordicsemi.no>
2025-07-30 17:23:12 -04:00
Andrzej Głąbek
7b6ba5c071 drivers: mspi_dw: Prevent RX FIFO overflows in Single IO mode
In Single IO mode, where the clock stretching feature is not available,
the RX FIFO could get overflowed if the TX FIFO was filled with more
dummy bytes than the RX FIFO could receive data items at a given moment.
Such problem could be quite easy hit on nRF54H20, for example for longer
RX transfers (like 8 kB) at 8 MHz.
This commit limits accordingly the number of dummy bytes that can be
enqueued in the TX FIFO.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-07-30 17:22:29 -04:00
Thomas Stranger
e9e7c26f29 docs: update https links
update a couple of links to use https instead of http

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2025-07-30 17:22:12 -04:00
Serhiy Katsyuba
7dbde64738 cmake: llext: Fix llext incremental build
Before this commit, building llext packages with a `POST_BUILD` step added
via `add_llext_command()` only worked for from-scratch builds (tested with
Ninja).

When the client CMake script called `add_llext_command()` to add a custom
`POST_BUILD` step, `has_post_build_cmds` was set to 1, and a `true` (do
nothing) command was executed instead of `copy` for the `llext_pkg_input`
target. Consequently, the timestamp of `llext_pkg_input` was not updated.
Before executing `llext_proc_target`, Ninja seems to check the timestamp
of `llext_pkg_input`. When the custom command added by
`add_llext_command()` generated a new `llext_pkg_input`, Ninja was unaware
that `llext_pkg_input` had been updated, and the dependent
`llext_pkg_output` was not executed. Building only worked if
`llext_pkg_input` was missing, i.e., only for from-scratch builds.

The fix replaces dependencies so the command for `llext_pkg_input` is
executed after `llext_proc_target` (after `llext_proc_target` may generate
a new `llext_pkg_input`).

Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
2025-07-30 17:21:53 -04:00
Jay Vasanth
bb69617abb MAINTAINERS.YML: Add maintainers for hal_microchip
Adding additional mainteners - Scott Worley and Mohamed Azhar
for Microchip Hal repo since mulitple groups in Microchip
are working on this repo

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2025-07-30 17:21:29 -04:00
Maureen Helm
a4c757adc2 drivers: udc: Fix max32 driver high speed support
High speed support has been broken for the max32 driver since commit
faeabc63c9.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2025-07-30 17:21:09 -04:00
Adrian Bieri
5d42408efa cpp: add kconfig option STD_CPP23 for STD_CPP
to be able to choose c++23 dialect
deprecates c++2b, but we should keep the option c++2b for legacy

Signed-off-by: Adrian Bieri <adrian.bieri@loepfe.com>
2025-07-30 07:27:53 -04:00
Pieter De Gendt
57baf7cf72 modules: nrf_wifi: Allow using a regulator for IOVDD
Optionally have a regulator as IOVDD power supply.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-07-30 07:27:43 -04:00
Alberto Escolar Piedras
e7115d04de manifest: Update nRF hw models to latest
Update the HW models module to:
8b6001d6bdd9e2c8bb858fdb26f696f6d5f73db5

Including the following:
8b6001d CLOCK (54): Fix XOTUNE subscription sideeffecting for nrf54L15
9af1ac8 nRF54LM20: Bugfix: Add missing UART configuration
e6af4a7 RADIO: Fix register init for some devices (at least nRF54LM20)
2fe99ab CLOCK (54): Add XO24M/PLL24M/HFCLK24M
ffd578a CLOCK (54): Fixes around XOTUNE

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-07-30 07:27:28 -04:00
Hao Luo
0fac890133 board: ambiq: add config for systick of apollo3 and 4
This commit adds correct configuration for apollo3&4 systick

Signed-off-by: Hao Luo <hluo@ambiq.com>
2025-07-30 07:27:19 -04:00
Swift Tian
814ed6803f tests: fix arm_irq_vector_table fail on Ambiq platforms
Fixed build fail since 4c93fcd35b.
Fixed test run fail on Ambiq platforms.
Added Ambiq section in the test.

Signed-off-by: Swift Tian <swift.tian@ambiq.com>
2025-07-30 07:27:19 -04:00
CHEN Xing
8f5daca5e5 drivers: counter: sam_tc: Big fix for alarm 1
Issue: the alarm 1 do not generate interrupt
There are three compare registers in a SAM TC channel:
RA --> alarm 0
RB --> alarm 1
RC --> top_value
By default the RB/TOIB was configured as an input and no longer
generates interrupt.
Set the direction of TIOB to output for alarm 1 interrupt.

Fixes zephyrproject-rtos/zephyr#85018

Signed-off-by: CHEN Xing <xing.chen@microchip.com>
2025-07-30 06:45:07 -04:00
Fabio Baltieri
2f52a1bcda boards: rts5912_evb: drop few subsystem enable config
Board config are not suppose to enable subsystems beyond the vital ones,
drop ADC and INPUT.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-07-30 06:43:12 -04:00
Fabio Baltieri
2155298ad2 boards: rts5912_evb: set shell-uart
Set a zephyr,shell-uart chosen node so this board can be used with the
shell module.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-07-30 06:43:12 -04:00
Benjamin Cabé
c39930d358 doc: hardware: porting: remove old hwmv1 section
Drop the section describing hwmv1 board extensions since hwmv1 is no
longer supported.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-07-30 06:36:13 -04:00
Bjarki Arge Andreasen
0d9e69887d doc: build: dts: bindings-syntax: clarify compat matching
Clarify the identification and matching of bindings to devicetree
node compats. The previous definition implicitly hinted at two
bindings with the same compat being allowed, but did not state this
clearly. The updated wording should make it clear exactly how
bindings may be defined, and how they are matched.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-07-30 06:29:43 -04:00
Jamie McCrae
7a76a6238d sysbuild: Default to swap using offset for MCUboot
This swapping method is more efficient than swap using move and
has been available for some time, remove experimental flag and
set it as the default except for stm32 devices which have
partition alignment for swap using move

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-07-30 06:19:53 -04:00
Declan Snyder
b45bc0332d scripts: check_init_priorities: Fix file leak
The elf file needs to be closed after done being used, otherwise sys
module will generate resource leak warnings.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-07-30 06:13:21 -04:00
Declan Snyder
0d6b0cebb1 scripts: gen_offset_header: Fix file leak
The files should be closed after done being used, otherwise python
warnings are generated from the sys module

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-07-30 06:13:21 -04:00
Luca Burelli
83b9577f38 west build: display closest matching board names on error
This commit modifies the 'west build' command to display the closest
matching boards when an invalid board is specified, making it easier
for users to find a typo in the used board name.

The user is also instructed to run 'west boards' if he wants to get
the full list of available boards.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2025-07-30 06:11:09 -04:00
Daniel Kampert
bf3eba1c31 drivers: sensor: APDS9306: Add lux conversion
- Add lux conversion to APDS-9306 driver
- Change settings of gain, resolution and
frequency to index-based settings
- Add Device Tree overlay sample for APDS-9306
- Fix wrong board name in light_polling README
- Add value checks for the attribute set API call
- Remove the reading of the sensor attributes
from the sensor and use buffered values instead
- Rename `frequency` property to `measurement period`

Closes #91104

Signed-off-by: Daniel Kampert <DanielKampert@kampis-elektroecke.de>
2025-07-30 06:10:09 -04:00
Mark Wang
995ae9fde4 tests: bluetooth: add key persistence test cases
add key persistence test cases

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-07-30 06:08:39 -04:00
Sara Touqan
d53f324ca0 tests: sdio: Add write test to SDIO subsystem
This commit expands the SDIO subsystem test
suite by adding support for write test.
Also this commit adds needed conf/overlay
files for arduino portenta h7, nicla vision
and giga r1 for wifi_nm tests

Signed-off-by: Sara Touqan <zephyr@exalt.ps>
2025-07-29 22:56:24 -04:00
Sara Touqan
24caf4337d boards: Enable SDHC SDIO support
This commit enables SDHC support for STM32 on arduino
portenta h7, giga r1 and nicla vision boards.

Signed-off-by: Sara Touqan <zephyr@exalt.ps>
2025-07-29 22:56:24 -04:00
Sara Touqan
e052fd70a0 dts: Add SDHC SDIO configuration for STM32
This commit adds the main DTS configurations required
to enable SDHC support on STM32.

Signed-off-by: Sara Touqan <zephyr@exalt.ps>
2025-07-29 22:56:24 -04:00
Sara Touqan
477d749b39 drivers: sdhc: Support SDHC SDIO driver for STM32
This commit introduces support for the SDHC driver on STM32, enabling
functionality APIs for SDHC host controllers.

Signed-off-by: Sara Touqan <zephyr@exalt.ps>
Signed-off-by: Mohammad Odeh <zephyr@exalt.ps>
2025-07-29 22:56:24 -04:00
Bjarki Arge Andreasen
f27168fe02 doc: releases: 4.3: mention pm_device_driver_deinit()
Mention introduction of pm_device_driver_deinit() in the 4.3 release
notes.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-07-29 22:56:02 -04:00
Bjarki Arge Andreasen
4a827fd632 doc: services: pm: update pm device init/deinit/states
- Specify "Device" Power Management Support in sections covering
  CONFIG_PM_DEVICE=y or n
- Extend the enum pm_device_state docstrings to define and detail
  expectations of devices in each enum pm_device_state state.
- Extend pm device driver code example with more concise comments
  and include pm_device_driver_init, pm_device_driver_deinit, and
  DEVICE_DT_INST_DEINIT_DEFINE() (device deinit feature)
- Describe the device driver PM states used if PM_DEVICE is not
  enabled.
- Note which states a device driver is initialized from and can
  be deinitialized in and why.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-07-29 22:56:02 -04:00
Bjarki Arge Andreasen
f3af362725 tests: pm: device_driver_init: extend to support device_deinit()
Extend test suite to cover pm_device_driver_deinit() resulting
from call to device_deinit().

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-07-29 22:56:02 -04:00
Bjarki Arge Andreasen
cd16d17dca pm: device: introduce pm_device_driver_deinit()
Introduce pm_device_driver_deinit() which is required to fully
support device_deinit(). This function shall be called by drivers
when device_deinit() is called.

If PM_DEVICE is enabled, it will
simply check whether the device is either SUSPENDED or OFF, this
will prevent device_deinit() on a device which is currently in
use, and ensure the device is in the correct state if device_init()
is called later.

If PM_DEVICE is not enabled, it will invoke the SUSPEND action which
mirrors the pm_device_driver_init() behavior. Note that TURN_OFF
action is not called since the device is deinitialized after this
call.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-07-29 22:56:02 -04:00