Commit graph

136,983 commits

Author SHA1 Message Date
Chaitanya Tata
b873286d54 net: l2: wifi: Fix channel and band validation
The validation is appliable independent of the implementation.

Partial fix for #101728.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-01-07 19:38:55 +01:00
Etienne Carriere
72e96e35dd drivers: clock_control: stm32h7: fix PLL rate with fractional PLL
Take PLL fractional part into account when computing PLL output rate
for stm32h7xx and stm32h7rs based targets.

Co-authored-by: Tim Pambor <tim.pambor@codewrights.de>
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-01-07 19:38:37 +01:00
Benjamin Klaric
25aed0abbe dts: arm: st: h7rs: add memory-regions property to mac node
Add the memory-regions property to mac in stm32h7rs.dtsi,
same as in stm32h7.dtsi, and set sram2 as default. Also add
the #memory-region-cells to sram2 and sram1 nodes.

Override the sram2 as default with sram1 in stm32h7s3.dtsi and
stm32h7s3.dtsi since sram2 is disabled per default.

Add the same checks as for h7 series to mpu_regions.c and sections.c.

Signed-off-by: Benjamin Klaric <benjamin.klaric01@gmail.com>
2026-01-07 19:38:11 +01:00
Benjamin Klaric
b0b306ca24 dts: arm: st: h7: add memory-regions property to mac node
Use the memory-regions property in stm32h7.dtsi to explicitly locate
ethernet buffer and descriptor to an sram region. Set sram2 as default
and override with sram3 when available, in soc level .dtsi files.

Add #memory-region-cells to sram2 and sram3 nodes in specific .dtsi
files in dts/arm/st/h7, since it is needed by the memory-regions
property.

Add a check for memory-regions before the check and definition of the
sram_eth_node in mpu_regions.c and sections.ld.

Signed-off-by: Benjamin Klaric <benjamin.klaric01@gmail.com>
2026-01-07 19:38:11 +01:00
Benjamin Klaric
7244af5bef dts: bindings: ethernet: add st,stm32h5-ethernet compatible
Add the compatible for h5 series for ethernet. The h5 series needs
it own because the memory-regions property isn't currently supported
by the implementation.

Add the h5 compatible to stm32h563.dtsi, in mac node.

Adjust the description in h7 compatible to remove the mention of h5
series, as now h5 series has it's own.

Signed-off-by: Benjamin Klaric <benjamin.klaric01@gmail.com>
2026-01-07 19:38:11 +01:00
Lukasz Fundakowski
2e36f57e8d scripts: Improve handling exceptions in compliance check script
When output from ruff check subprocess is not in JSON format
compliance script raises an exception without any useful information
about the error. This commit improves that by printing output from
subprocess in case of error.

Signed-off-by: Lukasz Fundakowski <lukasz.fundakowski@nordicsemi.no>
2026-01-07 19:37:26 +01:00
Lucien Zhao
b6f6586dea test: drivers: can: support can cases on frdm-mcxe31b
- Support can test case: api/shell/timing
- Tese passed for three cases on my local

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-01-07 17:31:24 +01:00
Lucien Zhao
1f28dddf68 boards: nxp: frdm_mcxe31b: add flexcan0 support
- config flexcan0 pinmux
- enable flexcan0 instance

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-01-07 17:31:24 +01:00
Lucien Zhao
d5872f227d drivers: clock_control_nxp_mc_cgm.c: initialize flexcan clock source
-  initialize corresponding flexcan clock source when corresponding
   flexcan instance enabled

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-01-07 17:31:24 +01:00
Fabio Baltieri
5ddde71d2c regulator: shell: fix device completion for adget/adset
Add the dsub_device_name reference to adset/adget so it completes the
device name.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-01-07 17:30:51 +01:00
Fin Maaß
27068ed58e drivers: sensor: i2c: replace use of i2c_burst_write
i2c_burst_write is not portable,
as it is not supported by some drivers,
replace its use with i2c_write.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-07 17:30:32 +01:00
Fin Maaß
97a7b8f1cf drivers: rtc: i2c: replace use of i2c_burst_write
i2c_burst_write is not portable,
as it is not supported by some drivers,
replace its use with i2c_write.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-07 17:30:32 +01:00
Fin Maaß
d49a55265e drivers: led: i2c: replace use of i2c_burst_write
i2c_burst_write is not portable,
as it is not supported by some drivers,
replace its use with i2c_write.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-07 17:30:32 +01:00
Fin Maaß
3d6000e070 drivers: gpio: i2c: replace use of i2c_burst_write
i2c_burst_write is not portable,
as it is not supported by some drivers,
replace its use with i2c_write.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-07 17:30:32 +01:00
Fin Maaß
0957115fc9 drivers: fuel_gauge: i2c: replace use of i2c_burst_write
i2c_burst_write is not portable,
as it is not supported by some drivers,
replace its use with i2c_write.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-07 17:30:32 +01:00
Fin Maaß
1a88ea527f drivers: display: i2c: replace use of i2c_burst_write
i2c_burst_write is not portable,
as it is not supported by some drivers,
replace its use with i2c_write.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-07 17:30:32 +01:00
Fin Maaß
e182730f7a drivers: charger: i2c: replace use of i2c_burst_write
i2c_burst_write is not portable,
as it is not supported by some drivers,
replace its use with i2c_write.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-07 17:30:32 +01:00
Fin Maaß
f6558d5cdf drivers: audio: i2c: replace use of i2c_burst_write
i2c_burst_write is not portable,
as it is not supported by some drivers,
replace its use with i2c_write.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-07 17:30:32 +01:00
TOKITA Hiroshi
e0c706a7f5 soc: raspberrypi: rpi_pico: Defaultly turn off BINARY_INFO feature
The binary-info feature that introduced in #54290 causing trouble
with some rp2xxx variant boards.
Turning off this feature defaultly to solve these problems.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2026-01-07 14:56:56 +00:00
Arnaud Pouliquen
f7ce7d28e0 west.yml: Update libmetal and open-amp for v2025.10.0 release
Update to the last release of open-amp and libmetal libraries

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2026-01-07 14:56:34 +00:00
Cristian Bulacu
f262a33a94 net: l2: openthread: Make use of Zephyr OTBR NAT64 translator flag
This commit aims to declare and call NAT64 functions used by Border
Router application only if corresponding flag is also set.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2026-01-07 14:56:06 +00:00
Cristian Bulacu
d07e655638 openthread: platform: Fix compile warnings related to NAT64 or IPV4
Make use of CONFIG_OPENTHREAD_ZEPHYR_BORDER_ROUTER_NAT64_TRANSLATOR flag in
platform code.
Fixed some compile warnings in `mdns_socket.c` when IPV4 is not enabled,
by moving some variables under `CONFIG_NET_IPV4` define

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2026-01-07 14:56:06 +00:00
Cristian Bulacu
ade5b4d637 openthread: Kconfig: Add config flag for NAT64 translator
This config flag sets all the requirements and dependencies for NAT64
translator enablement. By default, NAT64 translator is enabled in an
OpenThread Border Router application.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2026-01-07 14:56:06 +00:00
Valerio Setti
827ce8a74c modules: uoscore-uedhoc: remove Kconfigs for legacy Mbed TLS crypto
Those were needed when uoscore-uedhoc was using "mbedtls_pk_ec()" function
to uncompress EC points. The library has been updated since then and
this legacy function is no more required. As a consequence also legacy
Kconfigs can be removed as well.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-07 14:56:00 +00:00
Valerio Setti
d4fbd079de manifest: uoscore-uedhoc: include improvement for compressed EC key parsing
Remove dependency on legacy Mbed TLS legacy crypto functions which have
been removed in the latest Mbed TLS/TF-PSA-Crypto release.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-07 14:56:00 +00:00
Bjarki Arge Andreasen
356f455f3d tests: drivers: pwm: gpio_loopback: implement pm device runtime
Implement pm device runtime to resume PWM devices before they are
used, and put them after, for platforms which use and enable pm
device runtime.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2026-01-07 14:55:50 +00:00
Fabio Baltieri
2cf6167357 tests: net: socket: run igmp on the mcast tests
The ipv4 code now filters for multicast packets for non joined groups,
make sure the test join the group before trying to create traffic on
that address.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-01-07 14:55:36 +00:00
Fabio Baltieri
a09dbee852 net: ipv4: Drop ipv4 mcast packets for non joined groups
Add a check to drop ipv4 multicast packets that are not matching any
currently registered multicast group for the interface that received
them.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-01-07 14:55:36 +00:00
Ben Marsh
9476c62c80 cmake: Fix extensions module's implicit dependency on yaml module
The CMake extensions module depends on the yaml module, but extensions did
not explicitly include yaml.

When using find_package(Zephyr ...) with no components specified this
issue is not seen as zephyr_default is included which includes many other
modules, including yaml and extensions.
However, when find_package(Zephyr ... COMPONENTS ...) is used only the
components specified are included, which can result in a build error. For
example, using find_package(Zephyr ... COMPONENTS FindHostTools ...)
includes FindHostTools, which includes extensions, which depends on yaml
but doesn't include it.

This issue is fixed by including yaml in extensions.

Signed-off-by: Ben Marsh <ben.marsh@helvar.com>
2026-01-07 14:08:00 +01:00
Hubert Guan
0b57af0c94 lib: multi-heap: Add shared_multi_heap_realloc
Add the function shared_multi_heap_realloc to reallocate memory blocks
in shared multi-heaps.

Signed-off-by: Hubert Guan <hubertyguan@gmail.com>
2026-01-07 14:07:52 +01:00
Appana Durga Kedareswara rao
b0f1e47b05 boards: amd: versalnet_rpu: add TCM memory node
Add Tightly Coupled Memory (TCM) device tree node:
- Base address: 0x0
- Size: 64KB (0x10000)
- Compatible: mmio-sram

TCM provides low-latency memory access for R52 cores
and is essential for real-time applications.

Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>
2026-01-07 14:07:43 +01:00
Appana Durga Kedareswara rao
afd48302d1 boards: amd: Correct sram node to fix DMA failures
The existing sram node wiring is incorrect as it starts from 0x0, where the
TCM is mapped. The TCM size is 128 KB (with TCM A having 64 KB, TCM B 32
KB, and TCM C 32 KB). While TCM and DDR are mapped contiguously, to avoid
having TCM addresses in sram region to prevent potential DMA failures. The
address view of TCM for the RPU differs from that of other DMA masters,
which can cause DMA failures if DMA buffers are allocated in the TCM
region. Therefore, start sram region from 0x30000 (192 KB) to prevent DMA
buffer allocation within the TCM region.

Note: Although the TCM size is 128 KB, the SRAM region base address set to
192 KB to align with the QEMU models, where additional 64 KB memories are
mapped beyond the TCM.

Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>
2026-01-07 14:07:43 +01:00
Emanuele Di Santo
bc97315e0b kernel: timer: let k_timer_status_sync() idle the CPU when MT is off
This patch modifies k_timer_status_sync() to idle the CPU when MT
is disabled, instead of busy-looping. For this purpose, the spinlock
in the MULTITHREADING=n case has been reduced to a irq_lock(),
which works in pair with k_cpu_atomic_idle() to ensure the atomicity
of enabling the IRQs and idling the CPU.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2026-01-07 14:07:33 +01:00
Daniel Schaefer
ed5bfabf2e framework_laptop16_keyboard: Add full_name
Add a full, pretty name for the docs page.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
2026-01-07 12:32:05 +01:00
Emil Gydesen
f90d497147 tests: Bluetooth: Tester: Various format fixes for the Readme
Since this file is not built with the documentation system,
some of the references didn't work. References to tools, boards,
etc. have been encapsulated by the appropriate ticks.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-01-07 12:31:52 +01:00
Qingsong Gou
47a525423a drivers: spi: sf32lb: fix parentheses error
Fix parentheses error

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-07 12:31:36 +01:00
Qingsong Gou
f0099a0d49 drivers: adc: sf32lb: fix adc sequence
Fix adc sequence for for sf32lb

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-07 12:31:36 +01:00
Qingsong Gou
639c5f01c7 tests: drivers: build_all: adc: add test for sf32lb
Add test for sf32lb platform

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-07 12:31:36 +01:00
Qingsong Gou
5acd482724 drivers: adc: sf32lb: fix adc_async build warnings
Fix adc_async build warnings

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-07 12:31:36 +01:00
Qingsong Gou
dac3f66622 drivers: adc: sf32lb: fix coding style
Fix coding style for sf32lb

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-07 12:31:36 +01:00
Qingsong Gou
2da9089ae4 drivers: adc: sf32lb: fix adc value not correct
Fix adc value not correct

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-07 12:31:36 +01:00
Henrik Brix Andersen
cc25a8ada4 drivers: can: mcan: fix race condition when adding CAN RX filters
Move the assignment of the callback function and user data within the mutex
lock when adding CAN RX filters to prevent race conditions.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2026-01-07 12:31:20 +01:00
Henrik Brix Andersen
0665c70d70 drivers: can: mcan: add missing mutex unlocks in error paths
Add missing calls to k_mutex_unlock() in error paths when failing to add
CAN RX filters.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2026-01-07 12:31:20 +01:00
Henrik Brix Andersen
8dc4dea112 drivers: can: mcan: remove useless asserts
Remove useless asserts. These indexes are determined via a for loop which
already uses the asserted value as its maximum.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2026-01-07 12:31:20 +01:00
Zhaoxiang Jin
f4d4d8210c drivers: timer: cortex_m_systick: add devicetree clock-source property
Add support for configuring the SysTick clock source via devicetree
using a new `clock-source` property. This allows selecting between
the external reference clock (0) and the processor clock (1).

Previously, the driver always set the CLKSOURCE bit, forcing the use
of the processor clock. This change introduces a helper function
`systick_ctrl_clksource_flag_from_dt()` that reads the devicetree
property and returns the appropriate CTRL register flag.

The CTRL register is now programmed deterministically using direct
assignment instead of `|=` to ensure the CLKSOURCE bit is properly
cleared when switching to external clock, preventing potential
interrupt storms when CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC reflects
the external clock rate.

If the property is absent, the driver defaults to legacy behavior
(processor clock).

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-01-07 10:23:47 +01:00
Ha Duong Quang
b0d44e10fc boards: nxp: s32k5xxcvb: add support for counter
Add support for Counter (PIT, STM)

Signed-off-by: Ha Duong Quang <ha.duongquang@nxp.com>
Co-authored-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-01-07 10:22:49 +01:00
Dat Nguyen Duy
2cb723730b tests: counter_basic_api: enable counter for s32k5xxcvb
Enable counter tests for s32k5xxcvb

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-01-07 10:22:49 +01:00
Dat Nguyen Duy
028562cd74 samples: counter: alarm: enable the sample for s32k5xxcvb
Enable counter alarm sample for s32k5xxcvb

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-01-07 10:22:49 +01:00
Dat Nguyen Duy
5bb9498b3e dts: nxp: add stm, pit devicetree nodes for s32k566
Add STM, PIT devicetree nodes for s32k566

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-01-07 10:22:49 +01:00
Dat Nguyen Duy
212f8671b9 drivers: counter_nxp_pit: fix problem when multiple instances enabled
The current pit driver fails to build if multiple instances
enabled with per channel interrupt

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-01-07 10:22:49 +01:00