Commit graph

126,787 commits

Author SHA1 Message Date
Sylvio Alves
1bc2378085 samples: driver: crypto: add ESP32 AES compat
Allow ESP32 SoCs to run AES sample.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-10-24 13:21:24 -04:00
Sylvio Alves
d6227d4fb8 boards: espressif: add crypto tag
Add support crypto tag into espressif boards.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-10-24 13:21:24 -04:00
Sylvio Alves
9b3bb86855 drivers: crypto: add Espressif HW AES support
Add hardware-accelerated AES driver for Espressif SoCs supporting
ECB, CBC, and CTR cipher modes with AES-128, AES-192, and AES-256
key lengths.

Supported modes:
- ECB (Electronic Codebook)
- CBC (Cipher Block Chaining)
- CTR (Counter)

Supported SoCs:
- ESP32: All modes, all key sizes
- ESP32-S2/S3: All modes, AES-128/256 only
- ESP32-C2/C3/C6/H2: All modes, all key sizes

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-10-24 13:21:24 -04:00
Sylvio Alves
391ffabd66 drivers: crypto: add Espressif HW SHA support
Add hardware-accelerated SHA driver for Espressif SoCs supporting
SHA-224, SHA-256, SHA-384, and SHA-512 algorithms.

Supported SoCs:
- ESP32: SHA-224/256/384/512 (single-shot operations)
- ESP32-S2/S3: SHA-224/256/384/512 (with multi-part support)
- ESP32-C2/C3/C6/H2: SHA-224/256 (with multi-part support)

Tested with Zephyr crypto subsystem hash_compute() API.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-10-24 13:21:24 -04:00
Sylvio Alves
ae11a8b40a dtsi: espressif: add AES and SHA entries
Add into device tree SHA and AES peripherals.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-10-24 13:21:24 -04:00
Erwan Gouriou
e532f6a8c4 boards: st: stm32h7s78_dk: Fix ram size in board yaml file
Actual available internal RAM size was wrong, fix it.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-10-24 13:21:10 -04:00
Erwan Gouriou
508162e733 boards: st: stm32h7s78_dk: Add debug using stlink gdbserver
Add debug using stlink gdbserver as an alternative to pyocd.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-10-24 13:21:10 -04:00
Erwan Gouriou
fc15b749ab samples: sysbuild: with_mcuboot: stm32h7s78_dk: Use ext_flash_app variant
Now that ext_flash_app variant is available, it should be used for
mcuboot related apps on this board.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-10-24 13:21:10 -04:00
Erwan Gouriou
e805518b71 boards: st: stm32h7s78_dk: Add ext_flash_app variant
Add ext_flash_app variant to stm32h7s78_dk to allow building
application running on ext flash.

Largely based on A.Jarmouni's work to enable the same on stm32h750_dk
in PR 97037.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-10-24 13:21:10 -04:00
Jamie McCrae
cd2079f23c west.yml: MCUboot synchronization from upstream
Update Zephyr fork of MCUboot to revision:
  96576b341ee19f1c3af6622256b0d4f3d408e1e3

Brings following Zephyr relevant fixes:

  - 96576b34 boot: zephyr: socs: stm32h7s7xx: Add support for
    ext_flash_app variant
  - 56538cf6 bootutil: Move update-independent code
  - fccd8905 loader: Move boot_get_max_app_size(..) API
  - 0248a023 bootutil: Move state-independent area APIs
  - f2d3f00a loader: Unify image check API.
  - dcc66e51 loader: Unify header_valid(..) API
  - 257265c8 loader: Optimize boot_check_header_erased(..)
  - 76e56e4f loader: Rename boot_version_cmp
  - 5311589b loader: Fix compile-time issues in loader.c
  - 606a1934 boot: zephyr: socs: add overlay & conf for
    stm32h573xx_ext_flash_app
  - 521fc0bf bootutil: Conditionally include mbedtls/ oid.h,
    asn1.h
  - 71b41e38 boot: zephyr: boards: remove nrf54h20dk overlay
  - 2fc1bd84 bootutil: Drop slot number and boot_state from most
    boot_enc functions
  - 1dd8ae60 boot: zephyr: rework stm32h750b_dk board overlay &
    conf

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-10-24 13:21:10 -04:00
Erdem Simsek
aec9da060b tests: drivers: Trigger drop event for proper clean-up
Add I2S_TRIGGER_DROP call in the error test to ensure proper cleanup
after stopping the I2S device. This validates that the drop trigger
is properly handled in error conditions and resources are released.

Signed-off-by: Erdem Simsek <erdem.simsek@nordicsemi.no>
2025-10-24 13:20:31 -04:00
Erdem Simsek
8338097b1d drivers: i2s: Support audio auxpll in TDM driver
Add support for audio_auxpll clock source as an alternative to audiopll
in the i2s_nrf_tdm driver. This enables TDM functionality on platforms
that use the auxiliary PLL for audio clocking.

- Add audio_auxpll node detection and configuration
- Update clock management to support both audiopll and audio_auxpll
- Add build assertions for supported frequency configurations

Signed-off-by: Erdem Simsek <erdem.simsek@nordicsemi.no>
2025-10-24 13:20:31 -04:00
Luca Burelli
ae2dec824c dts: vendor/arduino: fix firmware partition location
The Wi-Fi firmware image in the QSPI flash has always been located in
the last 512kB of the 16MB Flash device. This offset is 0xf80000, not
0xe80000 as it was mistakenly set. Fix.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2025-10-24 13:20:20 -04:00
Luca Burelli
dd50f3f914 dts: vendor/arduino: add missing 'mbr' partition
Add the definition for the Master Boot Record partition at the
beginning of the flash. This is used by existing Arduino 'Storage'
libraries to store partition table information.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2025-10-24 13:20:20 -04:00
Krzysztof Chruściński
9d017467cc drivers: serial: Remove deprecated uart_nrfx_uarte2 driver
Use of uart_nrfx_uarte2 driver was deprecated before 4.1 release
and now can be removed.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-10-24 13:20:07 -04:00
Martin Hoff
15eeb3d40c soc: silabs: siwx91x_nwp: fix coex_mode in nwp initialization
Change the default coex mode when there is neither WiFi or BT activated.
Switch from BLE_ONLY to WLAN_ONLY. It fix a bug where we can't go in
deepsleep if we didn't select CONFIG_WIFI.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-24 13:19:56 -04:00
Filip Kokosinski
67085f1e2a include/zephyr/instrumentation: add missing @return docstrings
This commit add missing `@return` docstrings to the instrumentation
subsystem public header.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2025-10-24 13:19:45 -04:00
Bartosz Miller
219d16e1b8 tests: drivers: flash: Add MSPI single I/O test with 1M bus frequency
Longer transfers and lower frequency to verify proper FIFO handling.

Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
2025-10-24 13:19:35 -04:00
Pieter De Gendt
d43b48daf5 net: l2: wifi: mgmt: Fix auto-connect with multiple saved credentials
Using the Wi-Fi credentials system, we need to stop connecting with stored
credentials once a connection has been successful.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-10-24 13:19:21 -04:00
Jeppe Odgaard
e54093ba9a drivers: sensor: add tach_gpio
Add tachometer sensor driver using GPIO interrupts.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-10-24 13:19:04 -04:00
WenBin Zhang
47855127a0 script: west: completion: add missing west completion for zsh
this path only provides autocompletion for the `west` command
itself, not for its subcommands. (i.e. `west [tab]` rather than
`west packages [tab]`). However, it remains highly userful,
significantly reducing typing time and errors when using longer
commands like `west packages`.

Signed-off-by: WenBin Zhang <freey7955@gmail.com>
2025-10-24 13:18:52 -04:00
WenBin Zhang
84a53e5ecc script: west: completion: add missing west completion for fish
this path only provides autocompletion for the `west` command
itself, not for its subcommands. (i.e. `west [tab]` rather than
`west packages [tab]`). However, it remains highly userful,
significantly reducing typing time and errors when using longer
commands like `west packages`.

Signed-off-by: WenBin Zhang <freey7955@gmail.com>
2025-10-24 13:18:52 -04:00
WenBin Zhang
fe3a02d234 script: west: completion: add missing west completion for bash
this path only provides autocompletion for the `west` command
itself, not for its subcommands. (i.e. `west [tab]` rather than
`west packages [tab]`). However, it remains highly userful,
significantly reducing typing time and errors when using longer
commands like `west packages`.

Signed-off-by: WenBin Zhang <freey7955@gmail.com>
2025-10-24 13:18:52 -04:00
Jérôme Pouiller
46b498ad16 drivers: adc: siwx91x: Fix clock name
All the clocks names on SiWx91x follow the pattern "SIWX91X_CLK_xxx".
SIWX91X_ADC_CLK was an exception.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-10-24 13:18:42 -04:00
Benjamin Cabé
1cc1e83b3d drivers: usb-c: prevent Kconfigs for logging from bleeding
CONFIG_USBC_LOG_* options should be gated by the higher level USBC
Kconfig.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-24 13:18:28 -04:00
Benjamin Cabé
b48ef99495 drivers: virtio: prevent Kconfigs for logging from bleeding
CONFIG_VIRTIO_LOG_* options shoul be gated by the main VIRTIO Kconfig.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-24 13:18:28 -04:00
Valerio Setti
b43dbf149a doc: release-notes: fix typo in JWT note
It should have been 'CONFIG_', not 'CONIFG_'.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-10-24 13:18:13 -04:00
Julien Racki
4197931643 drivers: ethernet: stm32: add PTP HAL flag for N6
Add depends on SOC_SERIES_STM32N6X to
PTP_CLOCK_STM32_HAL in order to use PTP on the STM32N6 series.

Signed-off-by: Julien Racki <julien.racki-ext@st.com>
2025-10-24 13:18:02 -04:00
Mahesh Mahadevan
b25a218738 west.yml: Update NXP HAL to get fix for Build failure
Add TPM_CONTROLS_COUNT inside the HAL file for MIMX9xxx
SoC's

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-10-24 09:02:31 -07:00
Martin Hoff
40c9653c6d soc: silabs: siwx91x: increase main stack size when nwp is active
Update the default MAIN_STACK_SIZE to 2048 bytes to accommodate
the initialization requirements of the network coprocessor (nwp),
particularly when power management is enabled. It resolves a bug
where we can't boot when PM is enabled with multiple active
peripherals.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-24 09:02:04 -07:00
Khaoula Bidani
ba35b4d076 driver: uart: stm32: Disable UART DMA before shutdown
Use LL_USART_DisableDMAReq_RX to disable UART RX DMA requests.
This should be called before entering shutdown mode.

Force to use UART_STM32U5_ERRATA_DMAT_LOWPOWER
when POWEROFF is selected. This ensure the system to shut down
properly instead of hanging due to DMA staying active.

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
Signed-off-by: Julien Racki <julien.racki-ext@st.com>
2025-10-24 09:01:50 -07:00
Jeremy Dick
0a878179f7 drivers: mipi-dbi-spi: Fix initialization of GPIO CS
Access the correct node to get the SPI device GPIO CS.
It comes from the parent spi-dev node, not the bus

Signed-off-by: Jeremy Dick <jdick@pivotint.com>
2025-10-24 09:01:21 -07:00
Jamie McCrae
298a35b714 modules: tf-m: Remove some download Kconfigs
Removes two Kconfig which seemed to indicate downloading of a
project would happen automatically, which does not abide by how
to get additional module code in Zephyr. Due to TF-M always setting
these to "DOWNLOAD" in the repo, they are set even if the modules
do not exist so that they do not download e.g. in CI. Unfortunately
it seems that the qcbor one cannot be removed at this time due to
being needed in some applications and is not apache licensed,
though instructions should be provided to users instead describing
how to add it to a module manifest instead, in a later task

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-10-24 09:00:59 -07:00
Fengming Ye
514d7e2b5a modules: hostap: fix hostapd_cli cannot find default hostapd iface
Default find soft ap wifi iface in hostapd_cli shell command.

Signed-off-by: Fengming Ye <frank.ye@nxp.com>
2025-10-24 09:00:18 -07:00
Tomasz Moń
35620e20a9 drivers: udc_dwc2: Fix deactivate when hibernated
It is possible for usbd_disable() to be called when the core is
hibernated. When done so, the USB stack will attempt to deactivate all
the endpoints. Because the core is hibernated, register reads are
really undefined. This can lead to udc_dwc2_ep_deactivate() not calling
udc_dwc2_ep_disable() which will leave struct udc_ep_config busy flag
set.

When endpoint 0x00 busy flag is left to true, the driver won't allocate
buffer to receive SETUP data which is mandatory in Buffer DMA mode. This
leads to essentially dead device after reconnect, because the device
will not respond to any control transfers.

Solve the issue by modifying backup register value instead of real one
when endpoint is deactivated while core is hibernated.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-10-24 08:59:47 -07:00
Anas Nashif
6ea5f0abd7 twister: prefer 'fork' on POSIX to maintain pre-3.14 behavior
multiprocessing no longer defaults to fork, so force it to maintain pre
3.14 behavior. We will need to revisit the implementation and at some
point move to forkserver

Fixes #95058

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-10-24 08:59:30 -07:00
Carles Cufi
0679c05712 scripts: runners: nrfutil: Add a new --dry-run parameter
In order to allow for users to invoke "west flash" without actual
hardware connected but still running the logic and pregeneration of
commands, specifically the json file.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-10-24 08:59:13 -07:00
Carles Cufi
146fd2c88e scripts: runners: nrf: Generalize the use of --erase-mode for all ICs
Until now, for historical reasons (see
f42cef9c81 and
58e0e31c7e), the use of the --erase-mode
command-line switch was reserved for the nRF54L family. But in fact this
can be used (instead of --erase) for any of the Nordic ICs. This patch
extends the usage of this switch regardless of family.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-10-24 08:59:13 -07:00
Guillaume Gautier
684779ec23 drivers: usb_c: tcpc: stm32: use dedicated bitops functions
Use dedicated set/clear bits function instead of reading/masking/writing
manually.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-24 08:58:25 -07:00
Guillaume Gautier
9074528435 drivers: i2c: stm32: v2: simplify reg operation
Call stm32_reg_set_bits instead of stm32_reg_read then stm32_reg_write.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-24 08:58:25 -07:00
Guillaume Gautier
004c613e25 drivers: stm32: replace MODIFY_REG HAL macro by stm32_reg_modify_bits
For all STM32 drivers and SoC, replace the MODIFY_REG macro (defined in
the STM32 HAL) by stm32_reg_modify_bits defined in Zephyr.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-24 08:58:25 -07:00
Guillaume Gautier
124448582f drivers: stm32: replace READ_REG HAL macro by stm32_reg_read
For all STM32 drivers and SoC, replace the READ_REG macro and the
LL_xxx_ReadReg functions (defined in the STM32 HAL) by
stm32_reg_read defined in Zephyr.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-24 08:58:25 -07:00
Guillaume Gautier
2a52a2b7ff drivers: stm32: replace WRITE_REG HAL macro by stm32_reg_write
For all STM32 drivers and SoC, replace the WRITE_REG macro and the
LL_xxx_WriteReg functions (defined in the STM32 HAL) by
stm32_reg_write defined in Zephyr.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-24 08:58:25 -07:00
Guillaume Gautier
44415b5af8 drivers: stm32: replace READ_BIT HAL macro by stm32_reg_read_bits
For all STM32 drivers and SoC, replace the READ_BIT macro (defined in
the STM32 HAL) by stm32_reg_read_bits.
Fixes some cases where the return value was tested like a boolean
despite not being one.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-24 08:58:25 -07:00
Guillaume Gautier
a2339c9b91 drivers: stm32: replace CLEAR_BIT HAL macro by stm32_reg_clear_bits
For all STM32 drivers, replace the CLEAR_BIT macro (defined in
the STM32 HAL) by stm32_reg_clear_bits defined in Zephyr.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-24 08:58:25 -07:00
Guillaume Gautier
73e9749c68 drivers: stm32: replace SET_BIT HAL macro by stm32_reg_set_bits
For all STM32 drivers, replace the SET_BIT macro (defined in
the STM32 HAL) by stm32_reg_set_bits defined in Zephyr.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-24 08:58:25 -07:00
Guillaume Gautier
07f19537d1 soc: st: stm32: common: add common bitops functions
Add a set of bitops functions in order to replace the STM32 HAL bitops
macros throughout the drivers.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-24 08:58:25 -07:00
Etienne Carriere
464d929651 drivers: usb: udc: stm32: split variable definition in multi-line
Split variables definition into 2 line as per Zephyr coding style
expectations since they are of different type.

No functional changes.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-24 08:57:55 -07:00
Etienne Carriere
0b297bdbb8 drivers: usb: udc: stm32: remove useless test on buffer length
Remove useless test on buffer length in handle_msg_setup() since the
buffer was allocated few lines above with a known non zero size.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-24 08:57:55 -07:00
Etienne Carriere
f8addbaa28 drivers: usb: udc: stm32: inline comment reference to selected_speed
Clarify inline comment referring to field selected_speed of
struct udc_stm32_config.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-24 08:57:55 -07:00