Commit graph

136,983 commits

Author SHA1 Message Date
Adam BERLINGER
3522fb9b12 samples: boards: Add stm32n6570_dk board with MCO output
Added example for stm32n6570_dk board activating MCO2
on pin PC9 (STMOD+ connector)

Signed-off-by: Adam BERLINGER <adam.berlinger@st.com>
2026-03-13 14:42:29 +01:00
Adam BERLINGER
fa30a2f8fe drivers: clock: stm32-mco: Add support for STM32N6
STM32N6 requires enable bit in RCC_MISCENR register.

Signed-off-by: Adam BERLINGER <adam.berlinger@st.com>
2026-03-13 14:42:29 +01:00
Adam BERLINGER
dff0f12283 drivers: clock: stm32-mco: Move enable bit for STM32MP1 to DT
Instead of using MCOX specific check with STM32MP1 devices,
the dedicated enable bit is defined in device tree.
This breaks compatibility with old DT overlays for
STM32MP13 devices.

The new overlay should now have 2 clocks, where the 1st one
is the enable bit, e.g. like:
clocks = <&rcc MCO1CFGR_REG BIT(12)>, <&rcc ...>;

Signed-off-by: Adam BERLINGER <adam.berlinger@st.com>
2026-03-13 14:42:29 +01:00
Adam BERLINGER
a0d0d51b26 drivers: clock: stm32-mco: Use named clock-names property
The change introduces clock-names into the MCO device tree.
This shouldn't break compatibility with existing DT overlays.
It clarifies the clock configuration for devices
with dedicated enable bit for MCO.

Signed-off-by: Adam BERLINGER <adam.berlinger@st.com>
2026-03-13 14:42:29 +01:00
Krzysztof Chruściński
cf309829f1 tests: drivers: pwm: gpio_loopback: Fix nrf5340dk configuration
nrf5340dk k_cycle_get_32() returns value for 32kHz RTC clock. It means
that can only be used to relatively slow signals. Increasing PWM period
100x to 16ms so that captured results return accepted deviation.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-03-13 11:40:16 +01:00
Tim Pambor
1d6491e699 drivers: regulator: shell: fix uninitialized variables
Fix warnings due to uninitialized variables in the clist and vlist
commands.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-03-13 11:39:33 +01:00
Rithic Chellaram Hariharan
b187c83578 modules: mbedtls: add ciphersuites and fix CBC entry
Add commonly needed TLS 1.2 and TLS 1.3 ciphersuite options to
mbedTLS Kconfig ciphersuites for cloud and IoT connectivity.

TLS 1.2 additions:
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
- TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
- TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8

TLS 1.3 additions:
- TLS_AES_128_GCM_SHA256
- TLS_AES_128_CCM_SHA256
- TLS_CHACHA20_POLY1305_SHA256

Also fix TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256: replace
PSA_WANT_ALG_RSA_PKCS1V15_CRYPT with PSA_WANT_ALG_RSA_PSS,
as ECDHE-RSA uses RSA for signing, not encryption.

Signed-off-by: Rithic Chellaram Hariharan <gr8rithic@gmail.com>
2026-03-13 11:39:17 +01:00
Sylvio Alves
c64a74e711 espressif: adapt to hal_espressif IDF master sync
Adapt all Espressif SoC and driver code to the updated
hal_espressif module synced with IDF master branch.

Main changes:
- clock control: delegate peripheral clock gating to HAL
  layer using new clock/reset APIs
- SPI/GDMA: adapt to restructured DMA HAL with new channel
  allocation and configuration interfaces
- ethernet: add RMII clock configuration and PHY management
- GPIO: simplify using direct HAL function calls
- flash: adapt to updated SPI flash HAL interfaces
- linker scripts: update IRAM/DRAM mappings for new HAL
  object files
- DTS: fix ESP32-S2 PSRAM dcache1 address to match actual
  MMU mapping region (0x3f800000 DRAM1 instead of 0x3f500000
  DPORT which lacks 8-bit access capability)
- west.yml: update hal_espressif revision

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-13 11:38:18 +01:00
Yongxu Wang
81f27d13d1 pm: device: clarify TURN_ON/TURN_OFF action semantics
Improve documentation for PM_DEVICE_ACTION_TURN_ON and
PM_DEVICE_ACTION_TURN_OFF to clarify

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2026-03-13 09:13:58 +01:00
Raul Hernandez
4bfba93475 drivers: flash: rpi_pico: add optional untranslated read support
Add an opt-in Kconfig option to use the RP2350 untranslated XIP alias
for flash reads. This ensures the flash API can still access physical
partitions when Address Translation has remapped the primary window.
It otherwise introduces no changes for existing applications.

Signed-off-by: Raul Hernandez <raul.hernandez@spaceface.dev>
2026-03-13 09:13:37 +01:00
Martin Lampacher
221650a5c9 cmake: sca: codechecker: Cppcheck integration
Prevent cppcheck-preprocessorErrorDirective failures by
passing includes to both autoconf.h and a generated header file
containing compiler-specific definitions to Cppcheck

Signed-off-by: Martin Lampacher <martin.lampacher@gmail.com>
2026-03-13 09:13:09 +01:00
Jordan Yates
5d4e0e65aa doc: migration-guide-4.4: completion script changes
Document the need to regenerate shell completions to get board revision
auto-complete.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-03-13 07:12:41 +01:00
Jordan Yates
5539556415 scripts: west_commands: completion: use --all-targets
Update completion scripts to use `west boards --all-targets` to obtain
the list of targets, instead of using shell black magic to perform
string parsing and modification. As a result, all shells get board
revision support.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-03-13 07:12:41 +01:00
Jordan Yates
4bfb5c7923 scripts: west_commands: completion: add --all-targets
Add completion information for the new `west boards` argument,
`--all-targets`.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-03-13 07:12:41 +01:00
Jordan Yates
d3897b5185 scripts: west_commands: boards: add --all-targets
Add an option to `west boards` that automatically outputs all valid
board targets as a newline separated list without requiring any post
processing.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-03-13 07:12:41 +01:00
Muhammad Waleed Badar
5437848dff drivers: i2c: dw: fix invalid MMIO access
Move the get_regs(dev) call after DEVICE_MMIO_MAP() to ensure the MMIO
region is mapped before retrieving the register base.

This fixes the potential invalid MMIO access.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-03-13 07:12:16 +01:00
The Nguyen
93c27131b6 manifest: update hal_renesas revision
Update hal_renesas to latest to add a patch for UDC HAL

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2026-03-13 07:11:52 +01:00
Chun-Chieh Li
00360c4e65 drivers: usb: udc: numaker: fix compile error with sof for usbd
Add missing dummy macro define HSUSBD_BUSINTEN_SOFIEN_Msk for when
CONFIG_UDC_ENABLE_SOF is enabled to pass compile for USBD

Fixes: #102173

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2026-03-13 07:11:43 +01:00
Lucien Zhao
7b1fb0578b boards: nxp: correct compatible name for dtcm
correct compatible name for dtcm

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-03-13 07:10:41 +01:00
Lucien Zhao
ca9c19a6ab boards: nxp: imxrt118x: Document ELE active timer requirement
Add documentation about the ELE (EdgeLock Enclave) active timer
requirement for RT1180-based boards. This requirement is described
in RT1180 SRM section 3.11 and mandates that the ELE must be pinged
at least once every 24 hours to prevent system reset.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-03-13 07:09:59 +01:00
Lucien Zhao
feec7d80ca soc: nxp: imxrt118x: Add ELE active timer ping support
The RT1180 platform requires periodic communication with the EdgeLock
Enclave (ELE) to prevent system reset. According to RT1180 SRM section
3.11 "ELE active timer", the ELE must be pinged at least once every
24 hours.

This commit implements ELE ping functionality using Zephyr's software
timer API (k_timer). The timer is configured to ping the ELE every
23 hours (instead of 24) to account for potential clock inaccuracies.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-03-13 07:09:59 +01:00
Michael Ellerman
5d653fcfd4 net: lib: http_server: Reject over length websocket key header
If CONFIG_HTTP_SERVER_MAX_HEADER_LEN is increased from the default of
32, a compiler warning pops in the HTTP websocket code:

    zephyr/subsys/net/lib/http/http_server_http1.c:
    In function 'on_header_value':
    zephyr/subsys/net/lib/http/http_server_http1.c:898:33:
    warning: 'strncpy' output may be truncated copying between 0 and 32
    bytes from a string of length 47 [-Wstringop-truncation]
      898 |          strncpy(ctx->ws_sec_key, ctx->header_buffer,
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      899 |                  MIN(sizeof(ctx->ws_sec_key), offset));
          |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This comes from:

                if (ctx->websocket_sec_key_next) {
    #if defined(CONFIG_WEBSOCKET)
                         strncpy(ctx->ws_sec_key, ctx->header_buffer,
                                 MIN(sizeof(ctx->ws_sec_key), offset));
    #endif

If eg. header_buffer is 48 bytes and holds a string >= 32 bytes then
ws_sec_key can end up non-nul terminated. That can then lead to buffer
overflow in handle_http1_to_websocket_upgrade().

Add a check to make sure the header value fits in ws_sec_key, if not
reject the request with a HTTP 500. The websocket key is not expected to
be > 31 bytes.

Once the check is in place, it's safe to use memcpy() for the copy, and
then add the terminating nul manually.

Signed-off-by: Michael Ellerman <mpe@oss.tenstorrent.com>
2026-03-13 07:09:44 +01:00
Zhaoxiang Jin
74f6827c32 drivers: adc: mcux_lpadc: Add device PM Action suppport
Add device PM Action suppport for lpadc driver.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-03-13 07:09:22 +01:00
Zhaoxiang Jin
af3bfc6084 drivers: adc: mcux_lpadc: Add support for PM policy device constraints
Add support for PM policy device constraints to the MCUX LPADC driver.
This allows the driver to specify that certain power states should be
disabled when the device is active, which can help ensure proper operation
and reduce power consumption.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-03-13 07:09:22 +01:00
Zhaoxiang Jin
9b0f1e03b3 dts: nxp/mcxn23x: add zephyr,disabling-power-states for lpadc
add zephyr,disabling-power-states for lpadc

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-03-13 07:09:22 +01:00
Jordan Yates
bdc5ab30a1 debug: thread_analyzer: default THREAD_RUNTIME_STATS
`THREAD_RUNTIME_STATS` is not a requirement for the thread analyzer to
operate, merely useful. Switch the control to `configdefault` to leave
it enabled by default, while allowing both applications to disable the
option with `CONFIG_THREAD_RUNTIME_STATS=n` and for alternate defaults
to be specified elsewhere.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-03-13 07:09:04 +01:00
Seppo Takalo
1e72d1c874 drivers: modem: cellular: Attach chat module only after UART opened
This might be just a cosmetic change, but caused me to study logs
a bit longer to understand.

When in the AWAIT_POWER_ON state, we do open an UART, but we
immediately attach the chat module into the UART, so we don't see the
log message "event bus opened".

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2026-03-13 07:08:48 +01:00
Henrik Brix Andersen
bd186d4a94 boards: others: canbardo: list usbd as supported feature
List USB device controller as a supported feature in order to increase test
coverage.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2026-03-13 07:08:28 +01:00
Gerson Fernando Budke
50bb93b07e boards: sam_e70_xplained: Add usbd support for samv71q21x
Add USB device next (usbd) feature support for the SAM E70 Xplained
board.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2026-03-13 07:08:28 +01:00
Gerson Fernando Budke
bb86a94fbd boards: sam_v71_xult: Add usbd support for samv71q21x
Add USB device next (usbd) feature support for the SAM V71
Xplained Ultra board. Add the revison B board to USB sample
integration platforms.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2026-03-13 07:08:28 +01:00
Gerson Fernando Budke
67699eb616 drivers: usb: udc: add SAM USBHS driver
Add Atmel SAM USBHS driver for SAM E70/S70/V70/V71 family. The driver
was tested using CDC-ACM and testusb samples.

Fixes: #74663

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2026-03-13 07:08:28 +01:00
Gerson Fernando Budke
cb6d654659 west.yml: Bump hal_atmel to fix USBHS same70 registers
Add missing macros to allow same70 usbhs driver build.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2026-03-13 07:08:28 +01:00
Tomi Fontanilles
92f3389bd1 modules: mbedtls: guard MBEDTLS_LOG_LEVEL_* behind MBEDTLS_DEBUG
`CONFIG_MBEDTLS_LOG_LEVEL_*` is only used when `CONFIG_MBEDTLS_DEBUG`
is `y`.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-12 21:26:15 +01:00
Chaitanya Tata
c3420d9884 boards: nordic: nrf7120: Fix Wi-Fi GRTC channel allocation
Wi-Fi users (14, 15) channels of GRTC, exclude them from the common
allocation.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-03-12 21:26:05 +01:00
Firas Sammoura
4e74254c6e drivers: flash: npcx: fix parameter name in qspi_npcx_fiu_uma_block docs
Update the @param documentation for qspi_npcx_fiu_uma_block to match the
actual function signature, changing lock to lock_en.

Signed-off-by: Firas Sammoura <fsammoura@google.com>
2026-03-12 21:25:51 +01:00
Fabio Baltieri
a52e763de9 bindings: rename microchip,aes-g1 binding file
Rename microchip,aes-g1 binding file to match compatible, fixes a:

 dts/bindings/crypto/microchip,aes-g1-crypto.yaml: bad file name for
compatible 'microchip,aes-g1'; this should be named
'microchip,aes-g1.yaml' instead

error on unrelated PRs.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-03-12 21:25:32 +01:00
Pieter De Gendt
aad056a7bc net: lib: coap: observer: Use struct net_sockaddr_storage
Replace the incomplete struct net_sockaddr with net_sockaddr_storage for
CoAP observers.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-03-12 14:06:27 -05:00
Pieter De Gendt
134e06c7d9 net: lib: coap: server: Use struct net_sockaddr_storage
Replace the net_sockaddr struct with a net_sockaddr_storage struct.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-03-12 14:06:27 -05:00
Li Long
bf31fab429 net: wifi: shell: Add check for iface type when get iface
When we start uAP by specifying the network interface "-i" like this:
    wifi ap enable … -i 1
(here: 1 is STA iface, 2 is uAP iface)

Currently, get_iface() uses interface index to choose the network
interface, but we do not check if the selected interface is correct
type.

So if the user specified interface is valid interface, we then verify
that it matches the given type. If there is no match, we return an
error and do not select a default type interface.

Signed-off-by: Li Long <li.long@nxp.com>
2026-03-12 14:06:05 -05:00
Jamie McCrae
fdb9ca16a5 samples: mgmt: mcumgr: smp_svr: Reduce RAM in nrf52840 RAM load
Reduces the amount of RAM available here, as MCUboot is set to use
30KiB of RAM which conflicts

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-03-12 14:05:36 -05:00
Jamie McCrae
b7587b2537 samples: mgmt: mcumgr: smp_svr: Remove build with shell and UART
Removes an invalid build configuration for RAM load which uses
shell and UART transports, because they conflict

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-03-12 14:05:36 -05:00
Marc Herbert
b001dee329 scripts: empty unused .help duplicates in west extensions
Stop requesting west extension authors to "keep in sync" an unused .help
duplicate. Empty such duplicates from existing extensions. They cannot
be `None` yet because current west versions unfortunately require them.

Since the beginning of west extensions (2019 commit d3bb3cfd7a)
extension authors have been requested to provide not just a "help" field
in west-commands.yml, but also a duplicate in their WestCommmand
constructor than they should carefully "keep in sync".
While doing some unrelated extension work, I discovered by chance
that this duplicate has never been used. See detailed analysis in
https://github.com/zephyrproject-rtos/west/issues/927, shorter analysis
in https://github.com/zephyrproject-rtos/west/pull/933 and smoking gun
in the "TODO" comment added by west commit
0d39b6b77a

Signed-off-by: Marc Herbert <Marc.Herbert@gmail.com>
2026-03-12 14:05:03 -05:00
Seyoung Jeong
fa0ed03c5b drivers: flash: simulator: fix buggy per-instance erase capability
The simulated flash driver incorrectly applied the no_explicit_erase
capability. It was overriding Kconfig settings with a missing Devicetree
property, which caused RAM-like configurations to wrongly report needing
explicit erases before writes.

This commit fixes the initialization macro to correctly check the DT
instance property no-explicit-erase, while properly falling back to the
global CONFIG_FLASH_SIMULATOR_EXPLICIT_ERASE Kconfig.

A new runtime test is also added to properly verify this capability.

Fixes #100352
Fixes #100400

Signed-off-by: Seyoung Jeong <seyoungjeong@gmail.com>
2026-03-12 14:04:38 -05:00
Ilia Kharin
da7d31eda1 west: rtt: Retry when socket connection fails with invalid argument
On macOS, calling socket.connect() may fail with
OSError(22, 'Invalid argument') if it occurs at a certain point after
JLinkGDBServer has started. This leaves the socket in an unrecoverable
state, meaning that all subsequent connection attempts using the same
socket fail with the same error.

The fix is to close the socket on known errors, wait, create a new
socket and try to connect again.

Signed-off-by: Ilia Kharin <akscram@gmail.com>
2026-03-12 14:04:13 -05:00
Scott Worley
a01024ab54 tests: drivers: i2c: i2c_target_api: Add MEC1753 to the test
We added MEC1753 evaluation board to the I2C target API test.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-03-12 14:03:48 -05:00
Scott Worley
3bd52d2b44 boards: microchip: mec172x: Update I2C nodes to match V2 driver
The Microchip MEC172x board DTS files enable I2C controllers.
We updated these nodes based on the changes to the V2 I2C
driver device tree. GIRQ and PCR properties are being
standardized as encoded integers. The I2C V2 driver now requires
phandes to the GPIO's for SCL and SDA pins for reading pin
states.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-03-12 14:03:48 -05:00
Scott Worley
6b6dd22198 dts: arm: microchip: mec: Update I2C V2 driver node properties
We update MEC172x and MEC174x/5x/165x device tree I2C hardware
nodes with properties used by the updated I2C V2 driver. GIRQs
are an array of integers where each integer encodes the GIRQ
number and bit position of each interrupt source. The PCR property
is a single integer encoding the PCR register index and bit position.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-03-12 14:03:48 -05:00
Scott Worley
e0e7d6c44d soc: microchip: mec: common: Remove I2C get lines and cleanup
We will standardize how the I2C driver supporting MEC172x/4x/5x
and onwards gets the states of the SCL and SDA lines. For MEC172x we
use the Zephyr GPIO driver to get the pin states. For MEC174x/5x and
future parts based on v3.8 I2C hardware we can use a new feature
of the bit-bang control register allowing live reading of the pin
states without switching the internal MUX. The SoC common code
for MEC172x to read GPIO's using direct register access is
removed by this commit.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-03-12 14:03:48 -05:00
Scott Worley
4ada22932d drivers: i2c: microchip: xec: Port I2C v2 driver to MEC174x/5x
We modified the Microchip XEC/MEC version 2 I2C byte mode driver
to work on v3.8 I2C hardware in MEC174x/5x/165x SoCs. The changes
are as follows:
1. Add a local header file containing register and bit field definitions
2. Use Zephyr inline register access functions (sys_read/write)
   instead of CMSIS register structures.
3. Change DT bindings to require GPIO references for the SCL and SDA
   pins. MEC172x will use GPIO driver to get line states. MEC174x/5x
   have v3.8 I2C hardware with read-only live values of SCL/SDA pin
   states in the bit-bang control register. The MEC172x SoC code to
   read I2C GPIO's is no longer needed and is removed in a later
   commit in this series.
4. Use WAIT_FOR macro in place of custom spin loops.
5. SonarQube code check recommendations except WAIT_FOR macro which is
   based on a GNU compiler extension.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-03-12 14:03:48 -05:00
Yassine El Aissaoui
91505dd377 doc: frdm_mcxw7x: update documentation
Document flashing limitation when CONFIG_PM is enabled.
Refactor ISP mode instructions.
Fix ISP mode instructions on frdm_mcxw72.

Signed-off-by: Yassine El Aissaoui <yassine.elaissaoui@nxp.com>
2026-03-12 14:02:50 -05:00