Commit graph

136,983 commits

Author SHA1 Message Date
Qingsong Gou
108a4b46ea drivers: dma: sf32lb: add SF32LB_DMA_DT_INST_SPEC_GET_BY_NAME_OR macro
Add macro SF32LB_DMA_DT_INST_SPEC_GET_BY_NAME_OR for sf32lb

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-29 14:23:58 +00:00
Amneesh Singh
8e1b2141ec boards: am243x_evm: add pinctrl nodes for main_adc0
Add the missing pins for ADC0 channels in the main domain.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
2026-01-29 13:44:20 +01:00
Amneesh Singh
138d2bdc31 drivers: adc: adc_ti_am335x: fix register MMIO mapping
Bind registers to the local variable in the ti_adc_init() function
after mapping the address space via DEVICE_MMIO_MAP.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
2026-01-29 13:44:20 +01:00
Amneesh Singh
8134b3b4e8 drivers: adc: adc_ti_am335x: add support for pinctrl
Support configuration of pins for ADC channels in the driver.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
2026-01-29 13:44:20 +01:00
Amneesh Singh
187e2a7af6 boards: am243x_evm: change ADC channel ref voltage
Remove custom DT property ti,vrefp and change reference voltage from
INTERNAL to VDD_1 for all channels

Signed-off-by: Amneesh Singh <amneesh@ti.com>
2026-01-29 13:44:20 +01:00
Amneesh Singh
267e3f39fc drivers: adc: ti_am335x: make internal reference optional
Allow using other references by removing the hard requirement on it being
internal. To be able to use internal voltage, the DT property ti,vrefp can
be used, otherwise it is ignored.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
2026-01-29 13:44:20 +01:00
Mathieu Choplain
edbdfcad8c llext: add discarded symbol groups inspector
When the LLEXT subsystem detects that a symbol is marked for export from
the main image, but the symbol group in which the export belongs is not
enabled, add a marker in a special section in addition to not placing the
symbol in the final export table.

Add a post-build script which consumes the special section as post-build to
dump information about all discarded symbols in a build artifact, and also
check for common errors (missing Kconfig symbol / improperly named groups).

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-29 13:42:56 +01:00
Mathieu Choplain
f2e5148dc1 scripts: build: llext: move ELF utilities to dedicated script
Move ELF-related utilities from the "llext_prepare_exptab" script to a
dedicated "llext_elf_toolkit" which can be reused by other LLEXT scripts.
While at it, also improve documentation of class SectionDescriptor.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-29 13:42:56 +01:00
Gaetan Perrot
f12de94f3e drivers: adc: adc_npcx: fix typos in log and comments
Fix spelling and wording issues in log and comments.

No functional change.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-29 13:40:41 +01:00
Firas Sammoura
f4aa7f9fee tests: kernel: enable essential thread abort test on RISC-V
Now that the RISC-V architecture supports returning from
z_riscv_fatal_error(), the self-aborting essential thread
test no longer needs to be skipped.

Signed-off-by: Firas Sammoura <fsammoura@google.com>
2026-01-29 13:39:45 +01:00
Firas Sammoura
faa65388d3 arch: riscv: Allow z_riscv_fatal_error to return
The Zephyr kernel's generic `z_fatal_error()` function, which is
invoked by architecture-specific fatal error handlers, is not
guaranteed to be non-returning. For instance, it can return if an
essential thread aborts itself.

The RISC-V port's `z_riscv_fatal_error` function was previously
inconsistently marked as `FUNC_NORETURN`. This commit removes this
attribute to align with the core kernel behavior, allowing the
function to return if `z_fatal_error()` returns.

Specific changes include:

-   Removed `FUNC_NORETURN` from `z_riscv_fatal_error` declarations
    in `fatal.c` and `kernel_arch_func.h`.
-   Removed `CODE_UNREACHABLE` after the call to `z_fatal_error`
    within `z_riscv_fatal_error` as it can now return.
-   In `isr.S`, changed `tail z_riscv_fatal_error` to
    `call z_riscv_fatal_error` in the exception entry, followed by
    a jump to `check_reschedule` to handle the return path.
-   Added `CODE_UNREACHABLE` at call sites of `z_riscv_fatal_error`
    (e.g., in `z_riscv_fault`, `z_check_user_fault`,
    `arch_irq_spurious`) where the context ensures the call is
    effectively terminal.

Signed-off-by: Firas Sammoura <fsammoura@google.com>
2026-01-29 13:39:45 +01:00
Afonso Oliveira
16e3b0b85c drivers: interrupt_controller: riscv: imsic: use micsr_* functions
Update the IMSIC driver to use the renamed micsr_* indirect CSR
access functions instead of the old icsr_* names.

Signed-off-by: Afonso Oliveira <afonsoo@synopsys.com>
2026-01-29 13:38:34 +01:00
Afonso Oliveira
f4290cfa00 arch: riscv: rename icsr_* to micsr_* for M-mode indirect CSR access
Rename the indirect CSR access functions from icsr_* to micsr_* to
explicitly indicate they operate using M-mode CSRs (MISELECT/MIREG).

This prepares for future S-mode support where sicsr_* functions using
SISELECT/SIREG would be needed. The naming follows the RISC-V
convention of using 'm' and 's' prefixes to distinguish privilege
levels (e.g., mstatus/sstatus, mie/sie).

Signed-off-by: Afonso Oliveira <afonsoo@synopsys.com>
2026-01-29 13:38:34 +01:00
Fin Maaß
0247086963 Kconfig: dt: add dt_node_array_prop_has_val
add dt_node_array_prop_has_val function and
extend dt_nodelabel_array_prop_has_val to be
used with string-arrays.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-29 13:38:01 +01:00
Roy Jamil
43dc24b02e boards: st: stm32h573i_dk: add ST-LINK GDB server runner
Enable stlink_gdbserver runner with --apid=1
and external loader.

Matching STM32N6570-DK behavior.

Signed-off-by: Roy Jamil <roy.jamil@ac6.fr>
2026-01-29 13:37:19 +01:00
Emil Gydesen
fc6b23cf2b Bluetooth: Conn: Only recycle ACL connections
Add check for ACL connection before submitting recycled.
Since ISO and SCO connections do not trigger the disconnected
callback, nor affects e.g. advertising, they should not
trigger the recycled callback.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-01-29 13:36:53 +01:00
Jiafei Pan
c64ae5768b boards: imx943_evk: add i2c support for A55
Enabled I2C6 on i.MX 943 EVK boards for Cortex-A55, there is a I2C bus
expandor PCA9544APW which address is 0x77 on this bus.

Could use the following command to build a shell application:
west build -p always -b imx943_evk/mimx94398/a55 \
 samples/subsys/shell/shell_module/ -DCONFIG_I2C_SHELL=y -DCONFIG_I2C=y

Add use I2C shell command to probe the device on the bus:
uart:~$ i2c scan i2c@426c0000

Add could find 0x77 on this bus.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2026-01-29 13:36:19 +01:00
Jiafei Pan
8fbb6d3719 dts: arm64: mimx943: add i2c device tree nodes
Added dts nodes for all i2c blocks.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2026-01-29 13:36:19 +01:00
Stephanos Ioannidis
1363fd8133 testsuite: coverage: Increase gcov heap size to 64KiB for x86 and MPS2
On qemu_x86, the size of a coverage report entry for certain testcases can
exceed 32KiB, resulting in the "No memory available to continue dump" error
message in the gcov data output and the subsequent twister error in parsing
the data:

  ERROR   - General exception: non-hexadecimal number found in fromhex()
  arg at position 0

This commit increases the gcov heap size to 64KiB to work around the above
issue.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2026-01-29 13:34:31 +01:00
Jiafei Pan
9bd3e3f32d samples: zperf: add imx943_evk A55 SMP support
Add SMP board variant support for imx943_evk A55 platform.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2026-01-29 09:07:08 +01:00
Jiafei Pan
ba6f52a800 samples: dsa: add imx943_evk A55 SMP support
Add SMP board variant support for imx943_evk A55 platform

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2026-01-29 09:07:08 +01:00
Flavio Ceolin
6d64ee11ea drivers: crypto_smartbond: Fix comments indentation
Fix indentation in multiple comments in this driver.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2026-01-29 09:06:50 +01:00
Flavio Ceolin
bc5512f431 drivers: crypto_smartbond: Fix typos
Fix multiple typos in crypto_smartbond driver.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2026-01-29 09:06:50 +01:00
Flavio Ceolin
3edbd9236b drivers: crypto/mcux_dcp: Avoid race condition
Avoid race condition when allocating sessions.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2026-01-29 09:06:50 +01:00
Flavio Ceolin
c22d225bcb drivers: crypto_ataes132a: Wrong constant in init
ataes132a_state is an array of CRYPTO_MAX_SESSION length.

This constant must be used when iterating over its elements
and not ATAES132A_AES_KEY_SIZE (even they having the same
value).

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2026-01-29 09:06:50 +01:00
Mario Paja
adbf5d57fd samples: i2s: output: nucleo_n657x0_q disable i2c4
This change disables i2c4 on nucleo_n657x0_q due to conflicts
with sai2_b

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2026-01-29 09:06:20 +01:00
Phuc Hoang
d5570df661 boards: silabs: Add PWM LED for slwrb418x
Add a board-specific overlay for the Silicon Labs slwrb418x
to enable the blinky_pwm sample with the correct PWM
configuration.

Signed-off-by: Phuc Hoang <donp172748@gmail.com>
2026-01-29 09:06:01 +01:00
Keith Short
08362b6a56 MAINTAINERS: add keith-zephyr as USB-C maintainer
Promote keith-zephyr from collaborator to maintainer for the USB-C area.

Signed-off-by: Keith Short <keithshort@google.com>
2026-01-29 09:05:19 +01:00
Sreeram Tatapudi
a5cd974d99 MAINTAINERS: Add teburd as maintainer for hal_infineon
Add Tom Burdik as maintainer for hal_infineon

Signed-off-by: Sreeram Tatapudi <sreeram.praveen@infineon.com>
2026-01-29 09:04:59 +01:00
Charles Hardin
4c23db41ee drivers: pwm: stm32: show the period cycles for the 16-bit limit error
The settings and calculations are often done in micro or nano seconds
and the result is not always shown. So, just add the period cycles as
part of the error message to get the calculated value.

Signed-off-by: Charles Hardin <ckhardin@gmail.com>
2026-01-29 09:04:39 +01:00
Lu Jia
f6063973c4 avrcp: Fix registration notification failures in AVRCP CT.
Failure to clear ct->ct_notify[event_id] when avrcp_prepare_vendor_pdu
fails, leading to an error return if ct->ct_notify[event_id].cb != NULL
during the next notification registration.

Signed-off-by: Lu Jia <jialu@xiaomi.com>
2026-01-29 09:04:19 +01:00
Phuc Pham
e6922f874b samples: drivers: adc: Add sample support for RZ devices
Add sample support for board:
- RZ/G2L-SMARC, RZ/G2LC-SMARC
- RZ/T2L-RSK
- RZ/V2H-EVK, RZ/V2N-EVK

Signed-off-by: Phuc Pham <phuc.pham.xr@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2026-01-29 09:04:01 +01:00
Phuc Pham
4d908da379 tests: drivers: adc: Add support for RZ devices
Add test support for board:
- RZ/G2L-SMARC, RZ/G2LC-SMARC
- RZ/T2L-RSK
- RZ/V2H-EVK, RZ/V2N-EVK

Signed-off-by: Phuc Pham <phuc.pham.xr@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2026-01-29 09:04:01 +01:00
Phuc Pham
ce05a8a3fb boards: renesas: Add ADC support for RZ devices
Add ADC support for boards:
- RZ/G2L-SMARC, RZ/G2UL-SMARC
- RZ/T2L-RSK
- RZ/V2H-EVK, RZ/V2N-EVK

Signed-off-by: Phuc Pham <phuc.pham.xr@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2026-01-29 09:04:01 +01:00
Phuc Pham
3a092e3e87 dts: renesas: Add ADC support for Renesas RZ SoCs
Add ADC nodes for devicetree of
- RZ/G2L, G2UL
- RZ/T2L
- RZ/V2H (CR8 & CM33), RZ/V2N

Signed-off-by: Phuc Pham <phuc.pham.xr@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2026-01-29 09:04:01 +01:00
Phuc Pham
957929d634 drivers: adc: Add ADC support for Renesas RZ V2H, V2N
Add ADC driver support for Renesas RZ V2H, V2N

Signed-off-by: Phuc Pham <phuc.pham.xr@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2026-01-29 09:04:01 +01:00
Henrik Brix Andersen
42396f0e8f drivers: can: add missing return codes to API documentation
Add missing return codes for can_add_rx_filter(), can_add_rx_filter_msgq(),
and can_recover() API calls.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-01-28 21:59:05 +01:00
Alex Kar
4cc27a1996 drivers: i2c: sam: fix garbage reads when following a write
The interrupts should only be enabled after the START condition is set
by either writing to TWIHS_THR(for writes) or by writing TWIHS_CR_START
to TWIHS_CR. Otherwise, the TXCOMP interrupt may fire before the driver
is ready, causing invalid reads and the semaphore to deadlock.

Link: https://ww1.microchip.com/downloads/en/DeviceDoc/SAM-E70-S70-V70-V71-Family-Data-Sheet-DS60001527D.pdf
Signed-off-by: Alex Kar <github@alexkar598.dev>
2026-01-28 21:58:52 +01:00
Miika Karanki
3ab167bd72 drivers: serial: uart_stm32: fix IRQ lock not released on error path
In uart_stm32_async_rx_buf_rsp(), when the provided RX buffer is not
located in non-cacheable memory, the function would return -EFAULT
while still holding the IRQ lock acquired at the start of the critical
section. This causes a system deadlock as interrupts remain disabled
indefinitely.

The nocache validation check has been moved outside the critical
section to ensure proper error handling. The check is performed before
acquiring irq_lock(), maintaining the same validation behavior while
preventing the lock from being held during the early error return.

Fixes a bug where async UART RX operations with improperly
placed buffers would hang the system.

Signed-off-by: Miika Karanki <miika.karanki@vaisala.com>
2026-01-28 21:58:35 +01:00
Alberto Escolar Piedras
3549e80a4e dts: nordic: Move BT controller enable
For othre Nordic targets we are chosing and enabling the controller
for the dts/arm/nordic DTS files. But this was not how it was added
for the nrf54lm20.
Let's move these to the same place, for consistency, and so that it
is also enabled in the same way for the simulated nrf54lm20bsim
(whose board file includes these same dtsi files)

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2026-01-28 21:58:11 +01:00
Alberto Escolar Piedras
46289d27dc Bluetooth: Controller: nRF54L: Use same hal for simulated 54LM20
Use the same HAL header for the simulated 54LM20 as for the 54L15,
just like we do for real targets.

Note this ifdef is the last one, and therefore the real targets
have already been caught before.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2026-01-28 21:58:11 +01:00
Liam Ogletree
e00c9c3fcc doc: releases: Add haptics API change to release notes
Adds release notes related to newly added error callback mechanism
in haptics API. Includes:

 - haptics_error_type
 - haptics_error_callback_t
 - haptics_register_error_callback()

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-01-28 21:57:46 +01:00
Dag Erik Gjørvad
e09cf76f60 dts: vendor: nordic: Update nRF54LM20A SRAM layout
Only 511 kB of RAM is available for usage currently
on nRF54LM20A. The non-secure variant used the full 512
which causes boot loops. Reduce the non-secure ram down to
252 to reduce below the 511 kB while still following
the 4 kB page alignment requirements in TF-m

Signed-off-by: Dag Erik Gjørvad <dag.erik.gjorvad@nordicsemi.no>
2026-01-28 21:57:29 +01:00
Braeden Lane
f9b5708619 drivers: i2c: infineon: add PSOC4 family support
Add CONFIG_SOC_FAMILY_INFINEON_PSOC4 conditional for Cy_SCB_I2C_Enable()
function call. PSOC4 devices require passing the I2C context parameter,
while other Infineon families do not.

This enables I2C driver support for PSOC4-based boards including
cy8ckit_041s_max.

Signed-off-by: Braeden Lane <Braeden.Lane@infineon.com>
2026-01-28 21:56:59 +01:00
Chun-Chieh Li
2a39d8de41 usb: udc: numaker: move dummy usbd/hsusbd to separate header
Move dummy USBD/HSUSBD register defines to separate header file
so that the code can be more clear.

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2026-01-28 21:56:40 +01:00
Chun-Chieh Li
da3dacc7a1 drivers: usb: udc: numaker: fix submit condition
Fix submit condition for non-control transfer. Do submit when any
of the following conditions is met:
1. Transfer buffer (net_buf) is full
2. Last packet size is less than mps
3. Isochronous transfer

USB mass may request C1 for sector size (512 bytes)-aligned and C2
for CBW (13 bytes).

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2026-01-28 21:56:40 +01:00
Chun-Chieh Li
4a31b21942 drivers: usb: udc: numaker: support m333x hsusbd
Add support for Nuvoton NuMaker M3331 series HSUSBD device driver

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2026-01-28 21:56:40 +01:00
Chun-Chieh Li
bfa832f930 drivers: usb: udc: numaker: fix compile error on m2l31x
With USBD and HSUSBD re-organized, SoC must have USBD and HSUSBD at
the same time to pass compile. However, M2L31 just has USBD and meets
compile error with HSUSBD unsupported. To avoid adding too many
conditional (#if condition) code for the error, create one dummy
HSUSBD device definition for M2L31 to pass compile.

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2026-01-28 21:56:40 +01:00
Chun-Chieh Li
295bacd836 drivers: usb: udc: numaker: fix control out failure in hsusbd
For HSUSBD, Control transfer with Data OUT stage will break. This is
caused by FIFO flush which cannot be done timely even though in Setup
token interrupt handler. For this, error recovery with FIFO is not
done in Setup token/packet handler and rely on USB reset handler to do
it as catch-all.

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2026-01-28 21:56:40 +01:00
Chun-Chieh Li
9568c499f5 drivers: usb: udc: numaker: add config for disabling USB on unplug
Some SoC series allow USB controller to be disabled temporarily
on unplug, and then enabled back on re-plug. Add support for such
configuration option in DT and UDC driver.

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2026-01-28 21:56:40 +01:00