Commit graph

28,390 commits

Author SHA1 Message Date
Fin Maaß
4ae9e45db9 drivers: ethernet: phy: also set autoneg_in_progress for already on init
also set autoneg_in_progress for already on init.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-12-01 19:47:37 -05:00
Fin Maaß
5da33001d2 drivers: ethernet: phy: check auto negotiation completion directly
auto negotiation might already be finished when we
check the link status, therefore check directly
instead of waiting 100 ms.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-12-01 19:47:37 -05:00
Fin Maaß
e92adb56b2 drivers: ethernet: phy: improve reading of latched bits
The latched bits are defined in the ethernet specification,
as the only latched bit, that we use, is the link status, improve
the code for it.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-12-01 19:47:37 -05:00
Fin Maaß
570c658f51 drivers: ethernet: phy: let the compiler remove checks for cfg->fixed
let the compiler remove checks for cfg->fixed if we don't have any
fixed link.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-12-01 19:47:37 -05:00
Fin Maaß
c99e3413ea net: mii.h: provide the BMSR bits positions
provide the BMSR bits positions, so we can use
the `IS_BIT_SET` macro with them.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-12-01 19:47:37 -05:00
Carles Cufi
a264b54f37 drivers: nrf: Clean up remnants of nrfx error codes
Starting with nrfx 4.0.0, the nrfx_err_t, NRFX_SUCCESS and NRFX_ERROR_*
have been deprecated. Most of them were removed here:

https://github.com/zephyrproject-rtos/zephyr/pull/99399

but a few were missed.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-12-01 12:26:18 -05:00
Pieter De Gendt
fb6e2c5065 drivers: ethernet: Add doxygen to net_eth_mac_load and move to public API
Add missing doxygen brief to the net_eth_mac_load helper function.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-12-01 12:24:54 -05:00
Simon Piriou
9aa69e6bc1 drivers: ieee802154: nrf5: improve debug logs
This commit prefixes "0x%x" debug logs with the entity, and prints the
"set" parameter when updating a filter.

Signed-off-by: Simon Piriou <spiriou31@gmail.com>
2025-12-01 12:23:56 -05:00
Arnaud Pouliquen
51480351ab drivers: ipm: stm32_ipcc: make clock optional
On the STM32MP2 series, the IPCC clock is managed at the system
level by the CPU responsible for system configuration.
In topologies where the Cortex-M33 acts as a companion processor, it
cannot enable the IPCC clock.

This update makes the IPCC clock optional in both the device tree
and the driver.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2025-12-01 12:23:31 -05:00
Qingsong Gou
6211909b78 drivers: pwm: sf32lb: add gpt based pwm driver support
Add gpt based pwm driver for sf32lb platform

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2025-12-01 12:23:17 -05:00
Ivan Pankratov
0aa208d51e dts: bluetooth: add base binding for BLE radio hardware capabilities
Create a shared base binding (ble-radio.yaml) for common Bluetooth LE
radio hardware capabilities to avoid duplication between vendors and
ensure consistent property naming across the ecosystem.

Properties are prefixed with 'ble-' and ordered chronologically by
Bluetooth Core Specification version (5.0, 5.1, 6.0). Each property
indicates a hardware capability, not current enablement state.

Signed-off-by: Ivan Pankratov <ivan.pankratov@silabs.com>
2025-12-01 12:22:33 -05:00
Ivan Pankratov
675e6e05cd drivers: bluetooth: efr32: move Silabs Kconfig settings
Vendor specific configuration is moved to a separate file.

Signed-off-by: Ivan Pankratov <ivan.pankratov@silabs.com>
2025-12-01 12:22:33 -05:00
Martin Hoff
d02cdc734e drivers: i2s: siwx91x: ensure device runtime is released
Removed conditional checks for device runtime put in DMA RX and
TX callbacks, ensuring that device runtime is always released
asynchronously.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-12-01 11:11:23 +01:00
Martin Hoff
8f4f1efc86 drivers: dma: siwx91x: fix interrupt flag reset
This patch fix a reg write that needs to be done before calling the
callback. Since the user can start a new dma transfer in the callback,
it can miss the interrupt from the new transfer if the new transfer is
done before the interrupt bit is cleared.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-12-01 11:11:23 +01:00
Martin Hoff
aa315948dc drivers: dma: siwx91x: replace pm_state with pm_device (udma and gpdma)
Removed unnecessary power management state lock calls since the DMA is
on a power domain that already handles state locking.
It will now managed directly pm_device which will active power_domain
and then block pm_state.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-12-01 11:11:23 +01:00
Martin Hoff
d5c45b10e5 drivers: spi: siwx91x: ensure device runtime is released on error
Added calls to pm_device_runtime_put() to ensure proper device runtime
management when configuration or DMA transceive operations fail.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-12-01 11:11:23 +01:00
Martin Hoff
b78fe9f1aa drivers: power_domain: siwx91x: fix the link between pd and cpu state
This patch is needed to block the pm_state "PM_STATE_SUSPEND_TO_IDLE"
when a device on the power domain (actually all the peripherals) is
active. Without this patch, cpu can decide to go to deep sleep while
a peripheral is active.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-12-01 11:11:23 +01:00
Aksel Skauge Mellbye
a83b19b3f9 soc: silabs: Fix clock control dependency declarations
Most drivers for Series 2 depend on clock control, but didn't
declare it. Enable clock control by default for Series 2 SoCs.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-12-01 11:11:14 +01:00
Sai Santhosh Malae
d83740f2d8 drivers: watchdog: siwx91x: Fix pause in sleep
The watchdog timer on SiWx91x devices is designed to
pause during deep-sleep and resume after wakeup.
However, an incorrect check in`wdt_setup` was
preventing this intended behavior. This patch removes
the check, restoring the correct pause-in-sleep
functionality.

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-12-01 11:10:39 +01:00
Tim Pambor
cec1861cae drivers: regulator: add stm32 vrefbuf driver
Add driver for the VREFBUF regulator found on STM32 microcontrollers.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-12-01 11:10:25 +01:00
cyliang tw
780f260efd drivers: watchdog: Fix Numaker driver bug in test suite
NuMaker watchdog control register is write-once after power-on
or reset. Thus, the control registeris written in the setup
function and the disable function only disables IRQ.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2025-12-01 11:10:18 +01:00
Yangbo Lu
92decb6273 drivers: eth_nxp_imx_netc: support PTP timestamping for no-tag switch
Added PTP timestamping support in NETC ENETC host driver for no-tag
supported NETC switch.

On RX path, extended descriptor is used on host (pseudo MAC) to get
timestamp writeback.

On TX path, TX timestamp response should be enabled on host (pseudo MAC).
After TX, writeback TX timestamp ID should be updated to tx pkt fifo.
Once RX path received TX timestamp response, match TX timestamp to tx
pkt in fifo with the timestamp ID.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-12-01 11:09:01 +01:00
Yangbo Lu
b2b0c9d4e1 drivers: dsa_nxp_imx_netc: support PTP timestamping for no-tag switch
For NETC switch with tag support, PTP timestamping had already been
supported in tag driver.

This patch is to add PTP timestamping support for no-tag supported switch.
Timestamp functions are implemented and exported for host driver to
handle.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-12-01 11:09:01 +01:00
Yangbo Lu
b693f3ca2d drivers: eth_nxp_imx_netc: improve PTP timestamping enablement
Converted to use NETC_PTP_TIMESTAMPING_SUPPORT for PTP timestamping.
PTP timestamping is needed only when NET_L2_PTP and PTP_CLOCK_NXP_NETC
are selected.

Used default 16 bytes for ETH_NXP_IMX_RX_RING_LEN for PTP timestamping
because RX extended descriptor would be used.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-12-01 11:09:01 +01:00
Yangbo Lu
5b8af91236 drivers: dsa_nxp_imx_netc: improve PTP timestamping enablement
PTP timestamping should be enabled only when NET_L2_PTP and
PTP_CLOCK_NXP_NETC are selected. And NET_PKT_CONTROL_BLOCK
is required for PTP timestamping code.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-12-01 11:09:01 +01:00
Yangbo Lu
0b9f25335b drivers: ptp_clock: support clock division for platforms
Supported clock division for platforms as it may vary from
platforms.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-12-01 11:09:01 +01:00
Fin Maaß
8fd4f987b3 drivers: ethernet: renesas: implement get_phy
implement get_phy for the renesas ethernet
driver.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-12-01 08:32:00 +01:00
Ryan McClelland
bb6d7f470a drivers: i3c: cdns: fix warning when building without i3c_use_ibi
Add a conditional compile around data in `cdns_i3c_irq_handler` to
prevent a warning when building controller only and without ibi.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2025-12-01 08:30:37 +01:00
Ryan McClelland
54af134088 drivers: i3c: fix unused function warning
Fix unused function warning when building without
CONFIG_I3C_USE_IBI.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2025-12-01 08:30:37 +01:00
Maureen Helm
5f33d75bce tests: lib: devicetree: Add hwspinlock dt spec test
Extends the devicetree library test to exercise the hwspinlock dt spec
macros and detect the context initializer build warning that was fixed
in commit 8b208b0d5a. Previously the build
warning wasn't reproducible in-tree.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2025-12-01 08:27:04 +01:00
Ryan McClelland
cdfecb6354 drivers: serial: cdns: fix race conditon under heavy uart load
There can be a race conditon where another interrupt fires while it
is in the callback, but then the interrupt is cleared towards the
end of the interrupt. Clear the interrupts it intends to service
at the beginning of the ISR.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2025-12-01 08:26:56 +01:00
Valerio Setti
711f13fff6 drivers: crypto: mbedtls_shim: improve session handling
Add a new function to free an mbedtls_shim session:
'mbedtls_free_session()'. Together with 'mbedtls_get_unused_session()',
these will be the only entry points to acquire/release sessions.
In this way it's easier to ensure that the mutex is properly held while
setting the 'in_use' parameter.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-12-01 08:26:29 +01:00
Valerio Setti
cc65c9543b drivers: crypto: mbedtls_shim: replace legacy cipher API with PSA API
Replace legacy crypto API for cipher (ECB, CBC) and AEAD (CCM, GCM) with
PSA API.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-12-01 08:26:29 +01:00
Valerio Setti
678542d899 drivers: crypto: mbedtls_shim: replace legacy hash API with PSA API
Replace usage of legacy crypto hash functions from Mbed TLS with PSA API.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-12-01 08:26:29 +01:00
Valerio Setti
91dbaf5c45 drivers: crypto: mbedtls_shim: move mbedtls_get_unused_session_index()
Move mbedtls_get_unused_session_index() at the top of the file and leave
cipher and hash functions below.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-12-01 08:26:29 +01:00
Valerio Setti
0cee013a3f drivers: crypto: mbedtls_shim: add _cipher_ to cipher ops
Another small renaming for cipher ops that just adds "_cipher_" in the
function's name.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-12-01 08:26:29 +01:00
Valerio Setti
37197f869a drivers: crypto: mbedtls_shim: general renaming
This commit just implements some renaming:
* mbedTLS -> Mbed TLS
* MbedTLS -> Mbed TLS
* MTLS_ -> MBEDTLS_
* mtls_ -> mbedtls_
* mtls_ccm -> ccm_ctx
* mtls_gcm -> gcm_ctx
* mtls_aes -> aes_ctx
* mtls_sha256 -> sha256_ctx
* mtls_sha512 -> sha512_ctx

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-12-01 08:26:29 +01:00
Valerio Setti
5eb2f46e0d drivers: crypto: mbedtls_shim: rename module
Use full name for the module so "mtls" -> "mbedtls"

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-12-01 08:26:29 +01:00
Mark Wang
6cf0829d7d drivers: usb: uhc: mcux: Improve setup noncache buffer allocation
Only allocate nocache setup packet buffer for control endpoint (EP0).

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-11-28 20:58:16 -05:00
Mark Wang
7ea8992d47 drivers: usb: uhc: mcux: Fix nocache buffer allocation for IN/OUT transfer
Use net_buf_tail() instead of __buf for proper buffer positioning.
Add null check and error handling for nocache buffer allocation.
Only copy data for OUT transfers during buffer setup.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-11-28 20:58:16 -05:00
Mark Wang
d5a509583b drivers: usb: uhc: mcux: add data to buf only for IN transfer
After the transfer callback, add the received data to buf only for IN.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-11-28 20:58:16 -05:00
Mark Wang
d12279b694 drivers: usb: uhc: mcux: Fix buffer setup for IN/OUT transfers
Differentiating between IN and OUT transfers for proper buffer setup.
For OUT transfers: use existing data from buf->data with buf->len.
For IN transfers: use available space from net_buf_tail() with tailroom.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-11-28 20:58:16 -05:00
Pieter De Gendt
09eeb734ca drivers: ethernet: eth_virtio_net: Support MAC address config
Update the virtio ethernet driver to use a MAC address configuration
struct.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-11-28 17:28:00 +00:00
James Torres
d30d7c29f3 drivers: watchdog: stm32 wwdg: remove floats to reduce footprint
On STM boards without an FPU (like nucleo_f091rc) the WWDG driver
requires 4K more of flash than the IWDG due to the use of floating
point math. Fixed it by refactoring to use integer math.
Reduced sample build ROM size from 24848 B to 21620 B on
nucleo_f091rc.

Signed-off-by: James Torres <jamesktorres2022@gmail.com>
2025-11-28 17:24:26 +00:00
Kate Wang
027d77168b drivers: mipi_dbi: Fix typo in NXP DCnano driver
Fix typo in NXP DCnano driver

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2025-11-28 09:49:59 +00:00
Kate Wang
1e86329fe9 drivers: display: display_rm67162: Check reset pin configuration return
Check the return value of reset pin gpio configuration operation.

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2025-11-28 09:49:59 +00:00
Mario Paja
88f50fabcb drivers: audio: wm8904: fix sample rate
This change aligns sample rates to the datasheet and removes
non existing values for 11.025kHz, 22.05kHz, & 44.1kHz

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-11-27 21:54:39 +01:00
Guillaume Gautier
2fb9eb0fee drivers: counter: stm32: timer: fix counter for stm32 advanced timers
Counter driver was not functional with STM32 advanced timers (like
TIMER1/8) due to them having more than one interrupt line.
This commit defines the proper interrupts for the advanced timers so that
they can be used as counters.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-11-27 21:54:24 +01:00
Fabian Blatz
0f07faa14b drivers: input: gt911: Add touchscreen common config
Adds the touchscreen common config to the gt911 controller.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-11-27 16:02:13 +01:00
Arunmani Alagarsamy
1814b902a9 soc: silabs: siwg917: Add configurable boot features via DTS and Kconfig
Add support for configuring hardware-specific boot feature bitmaps
through Devicetree and software-specific boot configurations through
Kconfig options.

Signed-off-by: Arunmani Alagarsamy <arunmani.a@silabs.com>
2025-11-27 14:48:35 +01:00