Commit graph

136,983 commits

Author SHA1 Message Date
farsin NASAR V A
030ca7c168 tests: drivers: entropy: Added sam_e54 test support files
Added sam_e54_xpro.overlay file for entropy api test project.

Signed-off-by: farsin NASAR V A <farsin.nasarva@microchip.com>
2026-01-27 08:07:00 +01:00
Thomas Hebb
477568a2ae drivers: sdhc: imx_usdhc: Automatically mask SDIO interrupt
There are currently two other sdhc drivers that support this interrupt:
Infineon and Ambiq. Both those vendor HALs automatically mask the
interrupt after invoking the callback[1][2], expecting the user to
unmask it asynchronously once they've cleared the card's interrupt
condition.

The NXP usdhc driver doesn't do this and so is inconsistent with the
other two. This has caused bugs with higher-level drivers, such as the
AIROC Wi-Fi driver (#101100). Fix the issue by masking the interrupt
ourselves.

[1] 470f874ce4/mtb-hal-cat1/source/cyhal_sdhc.c (L1251-L1260)
[2] 5efc022852/mcu/apollo510/hal/mcu/am_hal_sdhc.c (L2256)

Fixes #101100

Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
2026-01-27 08:06:52 +01:00
Pieter De Gendt
c1e2b83180 scripts: dts: gen_driver_kconfig_dts.py: Format and fix linter issue
Run ruff formatter and linter on the script file and remove exclusions.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-27 08:06:39 +01:00
John Batch
92a76c175a tests: drivers: infineon pwm and gpio loopback test updates
* Adds overlay to support pwm_gpio_loopback on kit_psc3m5_evk board.
* Updates pwm_gpio_loopback timing on kit_psc3m5_evk to better align
  with system timer for better measurement accuracy.
* Updates gpio_loopback test on kit_psc3m5_evk to share connections with
  pwm_gpio_loopback test.

Signed-off-by: John Batch <john.batch@infineon.com>
2026-01-27 08:06:28 +01:00
John Batch
bc90fb959a samples: fade_led: add support for Infineon kit_psc3m5_evk board.
Adds support for the Infineon kit_psc3m5_evk evaulation board.

Note: The current implementation of PWM does not support output to a pin
with an on-board LED.  Output can be observed using an oscilloscope on
pins P1.4 and P2.6.

Signed-off-by: John Batch <john.batch@infineon.com>
2026-01-27 08:06:28 +01:00
John Batch
6289dbdc46 drivers: infineon: clock control: move clock selection to peripherals
Moves clock selection/assignment from the clock driver to the
peripherals that subscribe to the clock.  This allows multiple
devices such as PWM/Counters to share a peripheral clock.

Signed-off-by: John Batch <john.batch@infineon.com>
2026-01-27 08:06:28 +01:00
John Batch
594dc62f8e drivers: infineon: sdhc: adds clock assignment to sdhc device init
Adds making a peripheral clock connection to the initialization for
SDHC.  Other updates to use the clk_dst field from the binding.

Signed-off-by: John Batch <john.batch@infineon.com>
2026-01-27 08:06:28 +01:00
John Batch
9d4ae9b399 drivers: infineon: tcpwm: counter and pwm clock updates
Updates the Infineon Counter and PWM drivers based on the TCPWM device
to connect with a clock.  This update allows multiple devices to connect
to the same peripheral clock, and supports the TCPWM architecture of the
PSC3 device family.

Corrects initialization of the PWM on the PSC3 family to select the
correct output type.

Signed-off-by: John Batch <john.batch@infineon.com>
2026-01-27 08:06:28 +01:00
John Batch
9fe2e4f596 drivers: infineon: adds clock assignment to serial device init.
Adds making a peripheral clock connection to the initialiazation for SCB
based drivers.  These drivers are the UART/Serial driver, I2C driver, and
SPI driver.

Signed-off-by: John Batch <john.batch@infineon.com>
2026-01-27 08:06:28 +01:00
John Batch
58fea2a406 dts: infineon: adding new clk_dst binding for scb, timer, sdhc
Adds a new clock destination binding to the Infineon scb and tcpwm
peripherals.  This field is used to connect the peripheral to a
peripheral clock.

Signed-off-by: John Batch <john.batch@infineon.com>
2026-01-27 08:06:28 +01:00
Jacob Schloss
2b1ed4e1e3 dts: arm: st: h7: Add cryp to STM32H750
Add cryp block to H750.

Signed-off-by: Jacob Schloss <jacob.schloss@suburbanmarine.io>
2026-01-27 08:06:10 +01:00
Jacob Schloss
fc4e8cb476 tests: crypto: crypto_hash: enable nucleo_h753zi platform
Enable nucleo_h753zi platform for crypto_hash tests.

Signed-off-by: Jacob Schloss <jacob.schloss@suburbanmarine.io>
2026-01-27 08:06:10 +01:00
Jacob Schloss
60dbd75932 boards: st: nucleo_h753zi: enable hash node
Enable hash on board nucleo_h753zi.

Signed-off-by: Jacob Schloss <jacob.schloss@suburbanmarine.io>
2026-01-27 08:06:10 +01:00
Jacob Schloss
d98068116c dts: arm: st: h7: Add hash to STM32H7XX
Add hash block to all H7xx SoCs that embed such an instance.

Signed-off-by: Jacob Schloss <jacob.schloss@suburbanmarine.io>
2026-01-27 08:06:10 +01:00
Valerio Setti
2c8689aed4 doc: migration-guide: add notes for changes in socket TLS and HostAP
* Socket TLS: crypto features are no more automatically selected and this
  must be explicitly done for each application.
* HostAP: usage of PSA Crypto API is enabled by default.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-27 08:05:59 +01:00
Valerio Setti
08783161ab test: net: coap_server: adjust main stack size
Increase stack size to prevent runtime crashes on testing.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-27 08:05:59 +01:00
Valerio Setti
8af9ac4b92 tests: net|thrift: fix crypto and TLS Kconfigs
Use the TLS ciphersuite Kconfigs to select the desired TLS connection mode
instead of manually selecting all the crypto/key-exchanges Kconfigs.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-27 08:05:59 +01:00
Valerio Setti
7cad178a78 tests: net: lib: coap_server: simplify test cases
'net.coap.server.common' and 'net.coap.server.secure' test the very same
thing. Both include 'prj.conf' file which configure the TLS connection,
but then 'net.coap.server.secure' re-add these TLS Kconfigs also in the
yaml file which is pointless.

Since we're talking about a secure connection in both cases, remove
'net.coap.server.common' and keep only 'net.coap.server.secure'. Then
for the latter use only 'prj.conf' to hold the configuration.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-27 08:05:59 +01:00
Valerio Setti
1eeab7ac74 tests: net: socket: tls_configurations: remove unnecessary Kconfigs
Now that CONFIG_NET_SOCKETS_SOCKOPT_TLS doesn't select unnecessary crypto
features there is no need to re-disable them in the main configuration
file of this test code.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-27 08:05:59 +01:00
Valerio Setti
c879937755 samples: net|mgmt|thrift: sockets: fix crypto and TLS Kconfigs
Use the TLS ciphersuite Kconfigs to select the desired TLS connection mode
instead of manually selecting all the crypto/key-exchanges Kconfigs.

For 'samples/subsys/mgmt/hawkbit' use the 'overlay-tls.conf' file for
testing 'sample.net.hawkbit.tls' instead of repeating the Kconfigs in the
yaml file.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-27 08:05:59 +01:00
Valerio Setti
92c9ce8333 modules: hostap: use PSA Crypto API by default
Set CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_MBEDTLS_PSA enabled by default
meaning that PSA Crypto API are used by default instead of legacy crypto.
Some Kconfigs for EC and RSA keys are also enabled there in order to
allow support of private key management.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-27 08:05:59 +01:00
Valerio Setti
4a7c5f521e net: lib: sockets: remove selection of crypto features from socket TLS
There is no reason for which CONFIG_NET_SOCKETS_SOCKOPT_TLS should select
some crypto features by default. The correct list really depends on the
server/client the device would like to connect to.
For this reason the selection of any crypto feature is removed from
CONFIG_NET_SOCKETS_SOCKOPT_TLS with the idea that the proper ciphersuite
is to be enabled in the final sample/test configuration file.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-27 08:05:59 +01:00
Valerio Setti
c674f7e57f modules: mbedtls: add ciphersuite specific Kconfigs
Add new Kconfigs which are specific for certain TLS ciphersuite. The idea
is that instead of enabling key-exchanges related Kconfigs and then adding
all possible dependencies/selections there (which is not strictly correct)
the user enables a specific ciphersuite for which is easier and more
accurate to specify dependencies.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-27 08:05:59 +01:00
Braeden Lane
5d7fa2621f dts: arm: infineon: Change TCPWM Base Register
- Change base register for TCPWM to 0x40200000
  which controls the entire IP block.
- Enabling/Disabling counters and handling
  global interrupts.

Signed-off-by: Braeden Lane <Braeden.Lane@infineon.com>
2026-01-27 08:05:31 +01:00
Braeden Lane
657fa6d502 samples: drivers: counter: alarm: add cy8ckit_041s_max overlay
Add device tree overlay configuration for the Infineon PSoC4100S Max
board to enable the counter alarm sample.

The overlay configures TCPWM0_1 for counter operation with interrupt
18 and clock divider settings appropriate for the PSoC4100S Max chip.

Signed-off-by: Braeden Lane <Braeden.Lane@infineon.com>
2026-01-27 08:05:31 +01:00
Sharon Lin
5d56e00bfb scripts: twister: fix codec cp950 error when running on Windows
When running twister on Windows host, the build will fail from
cmakecache.py with error as:
UnicodeDecodeError: 'cp950' codec can't decode byte 0xe2 in
position 3444: illegal multibyte sequence

Signed-off-by: Sharon Lin <slin@atmosic.com>
2026-01-27 08:05:16 +01:00
Tom Burdick
a5d4626b8c soc: infineon: pse84: Enable MVE instruction set
The cmsis_dsp tests were failing on the m55 due to incorrect
instructions being generated. Enabling Helium (MVEI/MVEF)
fixes the issue and most of the tests now pass.

Several tests are still failing unfortunately but no longer are
the tests failing on an vld1.16 instruction.

Signed-off-by: Tom Burdick <thomas.burdick@infineon.com>
2026-01-26 14:02:47 -06:00
Pisit Sawangvonganan
24615a4d79 drivers: serial: place API into iterable section
Add the `DEVICE_API` wrapper to the remaining `uart_driver_api` instances,
ensuring that each driver API is placed in its respective linker section.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2026-01-26 14:02:16 -06:00
Benjamin Cabé
22b65f8c58 MAINTAINERS: Update WCH Platforms status to 'odd fixes'
None of the current maintainers are engaging with incoming issues and
pull requests for WCH Platforms.
This commit makes them collaborators in an attempt to reflect better the
atatus quo and help some of the current PRs get merged by means of other
volunteers stepping in to review on a best effort basis.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-01-26 14:01:53 -06:00
Benjamin Cabé
f4163bbe2c dts: bindings: input: move DTS snippets from description to examples
Use the new `examples` property to provide example usage in a more
structured way.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-01-26 14:00:45 -06:00
Benjamin Cabé
879bfd7016 dts: bindings: stepper: move DTS snippets from description to examples
Use the new `examples` property to provide example usage in a more
structured way.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-01-26 14:00:19 -06:00
Benjamin Cabé
d619cc9b74 dts: bindings: mtd: move DTS snippets from description to examples
Use the new `examples` property to provide example usage in a more
structured way.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-01-26 13:59:44 -06:00
Fin Maaß
8a862f4ee8 drivers: console: uart: use uart_irq_rx_ready directly
as we are only handeling rx interupts, we don't need
to call uart_irq_is_pending to check, we can just directly
use uart_irq_rx_ready.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-26 13:59:12 -06:00
Fin Maaß
92484cbc06 drivers: console: don't use irq functions outside
don't use uart irq api functions outside a
interrupt.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-26 13:59:12 -06:00
Tim Pambor
5e6db5b7e2 sd: sd_ops: Provide correct erase block size
Erase block size should be provided in sectors, not in bytes.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-01-26 13:58:54 -06:00
Tim Pambor
d7bf47843a drivers: disk: nvme: Provide correct erase block size
Erase block size should be provided in sectors, not in bytes.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-01-26 13:58:54 -06:00
Laurentiu Mihalcea
32e75415dc firmware: scmi: core: don't allow mutex usage in PRE_KERNEL stage
While in PRE_KERNEL stage, scmi_send_message_polling() attempts to acquire
the transmit channel mutex, which should not be allowed as the kernel is
not fully initialized at this point.

Since there's no multithreading at this point, there's no need to use a
mutex anyways. Therefore, perform mutex acquire()/release() only if not
in PRE_KERNEL phase.

Note that the return value of k_mutex_lock() is already suppressed via
an -EBUSY return value so no behavioral change here.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2026-01-26 13:58:30 -06:00
Lyle Zhu
ab4569ea97 bluetooth: hci: nxp: Reduce the fw sending buffer size
In current implementation, the sending buffer size is 0x10000. This
will result in a very small amount of RAM available for the
application. Actually, the maximum required sending buffer size is
4KB.

Reduce the maximum sending buffer size by changing
`SEND_BUFFER_MAX_LENGTH` from 64KB to 4KB.
And add runtime assertions to prevent buffer overflows during firmware
upload.

- Change SEND_BUFFER_MAX_LENGTH from 0xFFFF to 4096 (4 KB)
  * Reflects the actual maximum FW chunk size supported by hardware
  * Reduces memory footprint from 64 KB to 4 KB
- Remove unnecessary +1 from send_buffer array size
- Add __ASSERT checks in fw_upload_v1_send_data() to validate
  memcpy does not exceed buffer size
- Add __ASSERT checks in fw_upload_v3_send_data() to validate
  memcpy does not exceed buffer size

This prevents potential buffer overflows when copying firmware data
and ensures the buffer size matches hardware capabilities.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2026-01-26 13:57:50 -06:00
Enzo Vanhauwaert
6a5091cde0 nxp: mimxrt595_evk: enable USBD support
Enable use of USB Next stack and UDC driver for mimxrt595_evk (imxrt5xx)

Signed-off-by: Enzo Vanhauwaert <enzo.vanhauwaert@hotmail.com>
2026-01-26 13:56:44 -06:00
Appana Durga Kedareswara rao
12d9dbd47d boards: amd: Add generic board support for Versal APU
Add generic board support for the AMD Versal APU platform. This enables
basic application development on Versal APU cores using standard board
configuration.

Includes board definition files, defconfig, and device tree integration
for the Versal APU board.

Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>
2026-01-26 13:56:19 -06:00
Appana Durga Kedareswara rao
7acd5813e9 soc: amd: Add initial support for Versal SoC APU
Add initial support for the Versal SoC APU, which is based on
the Arm Cortex-A72 processor. It includes basic wiring for memory
regions, UART, interrupt controller, and timer.

This commit introduces the SoC definition and MMU configuration
required for APU-based development on the Versal platform.

Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>
2026-01-26 13:56:19 -06:00
John Whittington
977dec95fe sd: disk ioctl get card cid command
CID (card id register) can be useful to application for traceability of SD
cards (#66460).

Adds disk ioctl command to get the CID data that is read at initialisation.

Changes the card_read_cid function to take pointer to cid register so that
the ioctl command can utilize with the passed user buf. Updated
calling functions to pass this pointer.

Signed-off-by: John Whittington <git@jbrengineering.co.uk>
2026-01-26 13:55:20 -06:00
John Whittington
ef655380a1 sd: disk ioctl get card cid command #66460
CID (card id register) can be useful to application for traceability of SD
cards.

Adds disk ioctl command to get the CID data that is read at initialisation.
The struct sd_cid is moved to sd_card so that it can be read and retrieved
by card_ioctrl.

Signed-off-by: John Whittington <git@jbrengineering.co.uk>
2026-01-26 13:55:20 -06:00
Eric Ackermann
65d6752963 drivers: ethernet: Add Xilinx Axi Ethernet Lite
This commit adds support for the Xilinx AXI Ethernet Lite device,
also known as the emaclite.
The emaclite is a light-weight 10/100 MII Ethernet device.
It foregoes a DMA to reduce chip area.
Instead, it uses memory-mapped transmit/receive buffers.
A selection of features can optionally be enabled:
- a second ("pong") RX/TX Buffer
- MDIO support
- Interrupt support
This driver handles the MAC functionality of the core;
a driver for the MDIO part is introduced separately
as an MDIO driver.

Signed-off-by: Eric Ackermann <eric.ackermann@cispa.de>
2026-01-26 13:54:32 -06:00
Eric Ackermann
bb8d46e9b7 drivers: mdio: Add Xilinx Axi Ethernet Lite driver
This commit adds support for the Xilinx AXI Ethernet Lite device,
also known as the emaclite.
The emaclite is a light-weight 10/100 MII Ethernet device.
It can optionally be configured to include an MDIO.
The MMIO interface is controlled via MMIO registers and requires
the software to busy-wait until completion.

Signed-off-by: Eric Ackermann <eric.ackermann@cispa.de>
2026-01-26 13:54:32 -06:00
Amneesh Singh
03ba08615a drivers: sdhc: split caps into standard and extra
Make sure the capability bitfields fit the standard SD Association
specification and move the extra capabilities to props.

Affected Drivers:
- sdhc_infineon
- imx_usdhc
- intel_emmc_host
- rcar_mmc
- sam_sdmmc
- sdhc_ambiq
- sdhc_esp32
- sdhc_max32
- sdhc_renesas_ra
- sdhc_stm32
- xlnx_sdhc

Affected Subsys
- sd

Reference: 2.2.26, SD Specifications, Part A2, SD Host Controller
           Simplified Specification, Version 4.20
           URL: https://www.sdcard.org/downloads/pls/pdf/?p=PartA2_SD%20Host_Controller_Simplified_Specification_Ver4.20.jpg

Signed-off-by: Amneesh Singh <amneesh@ti.com>
2026-01-26 13:53:51 -06:00
Jamie McCrae
ec19a0d649 sysbuild: Only load Kconfig/dts image files if they exist
If they do not exist, do not load them

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-01-26 10:15:13 -06:00
Ian Morris
5493da7546 boards: renesas: ek_ra2l1: added pmod node labels
Added pmod_serial, pmod_spi and pmod_header node labels to
EK-RA2L1 device tree board definition, allowing compatible
shield boards to be used.

Signed-off-by: Ian Morris <ian.d.morris@outlook.com>
2026-01-26 10:14:50 -06:00
Yves Wang
bf668c8181 soc: nxp: mcxe24x: set WDT_DISABLE_AT_BOOT as y
Enable WDT_DISABLE_AT_BOOT by default for MCXE24X SoC series to prevent
unexpected system resets during initialization and development.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2026-01-26 10:14:30 -06:00
Alessandro Manganaro
429350b1be pm: add optional custom ticks hook for system suspend
Add an optional power policy hook to provide custom "next event"
ticks during pm_system_suspend(), in addition to the existing
kernel ticks and policy event list.

This hook enables applications and SoC-specific code to derive
the next wake-up time directly from proprietary or
hardware-specific data structures (e.g. hardware registers,
binary-only modules, complex schedulers) that are not
practical to convert into the standard PM policy event list.

The feature is gated by CONFIG_PM_CUSTOM_TICKS_HOOK and is fully
backwards compatible when disabled.

Signed-off-by: Alessandro Manganaro <alessandro.manganaro@st.com>
2026-01-26 10:13:53 -06:00