Commit graph

136,983 commits

Author SHA1 Message Date
David Jewsbury
a6582cf974 boards: nrf7120dk: Update UART00 and SPI00 pin mappings
Hardware assignments for UART00 and SPI00 have changed
so SPI00 can align with QSPI00.

Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
2026-01-30 16:57:11 -06:00
Grygorii Strashko
db1bea3ae2 drivers: xen: add XEN_EVENTS Kconfig option
The Xen events channel driver consume 72K of RAM, but may not be
required in all use cases.

Added a XEN_EVENTS Kconfig option so that Xen events can be gracefully
disabled if not required. Updated the relevant CMakeLists.txt and
Kconfig files to guard the inclusion of the Xen events driver and its
source files by this option.

Signed-off-by: Grygorii Strashko <grygorii_strashko@epam.com>
Signed-off-by: Svitlana Drozd <svitlana_drozd@epam.com>
2026-01-30 16:56:52 -06:00
Guðni Már Gilbert
bcb00aaa9a scripts: twister: don't parse snippets multiple times
Currently apply_filters is parsing & validating a snippet YAML
file multiple times, duplicating expensive work.

Do the work once per testsuite instead of for each testsuite
multiplied by number of toolchains.

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
2026-01-30 16:56:25 -06:00
Lukasz Fundakowski
2ad2ce9fe1 twister: Improve error handling for user's errors
Exit from twister in case of user's error e.g. empty list
of tests provided by user instead of throwing unhandled
exception.

Signed-off-by: Lukasz Fundakowski <lukasz.fundakowski@nordicsemi.no>
2026-01-30 16:55:29 -06:00
Pieter De Gendt
96d9db95de modules: lvgl: input: Demote ignored event log print
An unknown event key can occur a lot if only a subset of the keys are used
in lvgl. Demote level from warning to debug.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-30 18:06:15 +01:00
Pieter De Gendt
30062c4753 input: input-event-codes: Add some media key codes
Add key codes to the list for some media controls.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-30 18:05:25 +01:00
Pieter De Gendt
1b2934f4c0 input: input-event-codes: Add keep-sorted markers
Make sure the input key codes are kept sorted.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-30 18:05:25 +01:00
Pieter De Gendt
df62d2ac5b drivers: otp: Remove MCUX from NXP OCOTP compatible
MCUX should not be used as part of the compatible.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-30 18:04:46 +01:00
Gaetan Perrot
e819733d0f drivers: crypto: smartbond: fix typos in comments
Fix spelling and wording issues in comments.

No functional change.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-30 18:04:31 +01:00
Robert Lubos
5cb214d263 net: ip: Add dependency to NET_NATIVE when reserving FD
Increasing FD count in the system for the network stack (native sockets)
only makes sense if native network stack is enabled. Otherwise, just
make it 0. This makes a difference for example when socket offloading is
used and the offloaded implementation makes its own reservation.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-30 18:04:12 +01:00
Karel Blavka
699e7c2ebc shell: add configurable bypass buffer size
The bypass mode in shell.c transfers data in a loop and doesn't need
a large buffer. The previous code conditionally used
CONFIG_SEGGER_RTT_BUFFER_SIZE_DOWN which unnecessarily tied the bypass
buffer size to RTT configuration and could increase stack usage when
RTT buffer is configured larger.

This adds CONFIG_SHELL_BYPASS_READ_BUF_SIZE with a default of 16 bytes,
which is sufficient for the iterative read loop. A build-time assert
ensures the buffer doesn't exceed SHELL_STACK_SIZE.

Fixes: db9dccdc8a

Signed-off-by: Karel Blavka <karel.blavka@hardwario.com>
2026-01-30 18:03:52 +01:00
Cristian Bulacu
a5002eee0b openthread: Kconfig: Add OpenThread Border Router IPV4 config flag
Adding a configuration flag for IPV4 capabilities which defines
dependencies and  selects other functionalities.
By default, IPV4 capabilities are enabled for an OpenThread border
router application.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2026-01-30 18:03:36 +01:00
Cristian Bulacu
461c70beec openthread: platform: Split IPV4/IPV6 border router services init
Separating initialization functions at platform level.
Removing IPV4 packet filtering rules when OT NAT64 service is stopped.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2026-01-30 18:03:36 +01:00
Cristian Bulacu
a367c439f7 net: l2: openthread: border_router: Split IPV4/IPV6 service init
This commits splits the border router services initialization by
separating the ipv6 related services from ipv4 ones.
As there are cases in which a DHCPv4 server is not present in the
network setup, there is no reason to wait for an IPV4 address before
starting the border router. In this case, only IPV6 functionalities
would be exposed.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2026-01-30 18:03:36 +01:00
Aksel Skauge Mellbye
ec072cb129 tests: drivers: dma: Enable tests on xg24_rb4187c
Enable DMA tests on xg24_rb4187c.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2026-01-30 18:03:21 +01:00
Aksel Skauge Mellbye
0c19f5f00a tests: drivers: adc: Fix filtering for accuracy.ref_volt test
The Kconfig option to enable the reference voltage test was
accidentally dropped from the testcase configuration in
`231bf62f7f`, causing the test
to never be executed. Re-enable the config to allow the test
to execute.

On a xg24_rb4187c board:
Before:
SUITE SKIP -   0.00% [adc_accuracy_test]: pass = 0, [...]

After:
SUITE PASS - 100.00% [adc_accuracy_test]: pass = 1, [...]

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2026-01-30 18:03:03 +01:00
Stephan Linz
a288082820 MAINTAINERS: include CAN SPI and MCP25625 Click shields in CAN drivers
This commit adds the MikroE CAN SPI and MCP25625 Click shield under
the same assignees as other of the CAN driver based shields.

Signed-off-by: Stephan Linz <linz@li-pro.net>
2026-01-30 18:02:43 +01:00
Stephan Linz
ad9d3a8014 tests: drivers: build_all: can: add MikroE MCP25625 click shield
Adds build test case for Microchip MCP25625 CAN controller with
mikroe_mcp25625_click shield.

Signed-off-by: Stephan Linz <linz@li-pro.net>
2026-01-30 18:02:43 +01:00
Stephan Linz
ba576a929d boards: shields: add MikroE CAN SPI and MCP25625 click shield
Adds MikroElektronica click shields for the Microchip MCP2515 and
MCP25625 CAN controller.

Signed-off-by: Stephan Linz <linz@li-pro.net>
2026-01-30 18:02:43 +01:00
Missael Maciel
9cbc6616c1 drivers: pwm: sctimer: Add PowerManagement support
pwm_mcux_sctimer driver doesn't support power management actions.
PM Actions added, as well support to save/restore for pwm channels
configurations after exitig from PM3.

Signed-off-by: Missael Maciel <davidmissael.maciel@nxp.com>
2026-01-30 18:02:27 +01:00
Aksel Skauge Mellbye
e995e0c10b tests: drivers: uart: Enable uart_async_dual for xg24_rb4187c
Enable two-uart test for xg24_rb4187c. Modify the pinout for
the uart_loopback fixture to support two complete UARTs including
flow control by connecting pins EXP[4,6,8,10] with EXP[7,9,11,13]
on the expansion header.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2026-01-30 06:00:41 -06:00
Aksel Skauge Mellbye
54bc3154e3 drivers: serial: silabs: Fix async race condition
When an async transfer finished quickly, the internal state of
the driver could come out of sync with the hardware. The tx/rx
enabled flag and PM lock was taken after starting the DMA
transaction, which caused issues if the DMA complete callback
was called before the flags were updated. Set the flag and take
the PM lock prior to starting the DMA transaction to avoid this.

Also release the PM rx lock upon successful completion of a
transfer. The lock was previously only released when the user
manually called `uart_rx_disable()`.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2026-01-30 06:00:41 -06:00
Alberto Escolar Piedras
4921a09793 drivers serial native_pty: Add DT property to connect to stdin/out
Add a device tree property to request connecting an instance to stdin/out
(on top of the command line option, and the kconfig option).

And clarify that the kconfig option applies to whichever is the
first instance in whatever order the DT logic happens to order them.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2026-01-30 06:00:04 -06:00
Piotr Kosycarz
aedada06c6 scripts: pylib: twister: twisterlib: coverage: catch hex parsing
As parsing hex was moved, move also catching its possible errors.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2026-01-30 05:59:28 -06:00
Chaitanya Tata
ae24e9ca66 doc: connectivity: wifi: Add a section for Wi-Fi security
Document the methods supports and their PSA status.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-01-30 05:59:02 -06:00
Mathieu Choplain
2c51d3a783 drivers: clock_control: stm32u3: enable MSIx PLL mode only if requested
PLL mode on MSIK/MSIS should be enabled only if property `msi-pll-mode` is
present on the generator's DT node. However, the STM32U3 clock driver did
not check this property and unconditionally enabled PLL mode. This is an
issue because PLL mode requires an LSE generator to be provided, which was
asserted at build time, preventing usage of MSIS/MSIK without an LSE even
if the target application did not need the accuracy provided by PLL mode.

Fix by enabling PLL mode for each MSIx generator only if the `msi-pll-mode`
property is enabled on the corresponding DT node.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-30 05:58:35 -06:00
Michael Zimmermann
caaa0c696e net: mqtt_sn: udp: fix getting TTL
The length is an input parameter, which tells the kernel how big the
storage is. Depending on the socket implementation in use, not setting this
properly can (and should) fail depending on the value of the stack
variable.

Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
2026-01-30 05:58:15 -06:00
Michael Zimmermann
41f68b6035 net: mqtt_sn: udp: simplify TTL code
5f5db5bf3c added support for IPV6_MULTICAST_HOPS by adding both IPv4 and
IPv6 variants in place where they are used. This made the code a bit
complicated, though. This commit introduces helper functions to solve this.

Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
2026-01-30 05:58:15 -06:00
Arthur Gay
f8fe085a7e doc: migration-guide-4.4: Add change about STM32 XSPI/OSPI
Add a note about the new st,refresh property and the removal of the
default values.

Signed-off-by: Arthur Gay <arthur.gay@marshmallow.kids>
2026-01-30 05:57:34 -06:00
Arthur Gay
b6e40c34bd drivers: memc: stm32_xspi_psram: make refresh configurable in dt
Limit a transaction to a maximum length. Each PSRAM may specify
different configuration.

Signed-off-by: Arthur Gay <arthur.gay@marshmallow.kids>
2026-01-30 05:57:34 -06:00
Arthur Gay
89b5151851 drivers: memc: stm32_ospi_psram: make refresh configurable in dt
Limit a transaction to a maximum length. Each PSRAM may specify
different configuration.

Signed-off-by: Arthur Gay <arthur.gay@marshmallow.kids>
2026-01-30 05:57:34 -06:00
Michał Stasiak
becdd58eb1 tests: arch: arm_irq_advanced_features: allow overriding IRQ offset
The default (CONFIG_NUM_IRQS - 1) does not always work, as
proven in other cases in this test. Finding the free IRQ
during runtime is not possible, as DIRECT_DYNAMIC_CONNECT
requires constant value. Thus, added Kconfig option to override
the maximum IRQ offset at build time.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2026-01-30 05:56:37 -06:00
Camille BAUD
478804de5e boards: aithinker: bflb: ai_m61_32s demonstrates overclocking
Provide example configuration for overclocking BL61x using this board

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-30 05:56:02 -06:00
Camille BAUD
8edddc5ab2 drivers: clock_control: Improve overclock support for bl61x
Add more description, and a new overclock setting

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-30 05:56:02 -06:00
Camille BAUD
2d2bc6af01 drivers: regulator: driver for BFLB internal regulators
Drivers to manage BFLB SoC internal LDO11 regulators

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-30 05:56:02 -06:00
Camille BAUD
5d01941e32 bflb: soc: Consolidate brown out controls
Create a new binding and associated soc-level driver to set brown-out

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-30 05:56:02 -06:00
Qingsong Gou
afef16e841 drivers: spi: add spi driver support for sf32lb
Add spi driver for sf32lb platform

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-30 05:55:24 -06:00
Szymon Janc
63b43f310a tests: Bluetooth: tester: Fix missing NULL check in PBP BTP
btp_bap_broadcast_local_source_from_src_id_get() may return NULL.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2026-01-30 11:07:05 +01:00
Stephan Linz
7f5e668153 boards: shields: mikroe_mcp251xfd_click: fix image file names
In the central search mask of the board and shield catalog, panels
with the corresponding images are only rendered correctly if the
file name of the corresponding image also follows the entry in the
shield.yml file. This has now been corrected.

Signed-off-by: Stephan Linz <linz@li-pro.net>
2026-01-30 11:06:54 +01:00
Stephan Linz
1c263311e0 boards: shields: mikroe_can_fd_6_click: fix image file name
In the central search mask of the board and shield catalog, panels
with the corresponding images are only rendered correctly if the
file name of the corresponding image also follows the entry in the
shield.yml file. This has now been corrected.

Signed-off-by: Stephan Linz <linz@li-pro.net>
2026-01-30 11:06:54 +01:00
Fin Maaß
1501ce3719 spi: litespi: correct max word size to 8
this driver wasn't really supporting
other word sizes than 8, so remove it.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-30 11:06:38 +01:00
Guillaume Gautier
6809092944 drivers: spi: stm32: use dfs for data frame size
Harmonize the variable names frame_size, bytes_per_frame or word_size_bytes
by replacing them all with dfs, which is already used in the Zephyr SPI
driver.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-01-30 11:06:19 +01:00
Guillaume Gautier
c85e063607 drivers: spi: stm32: replace register read by ll function
Replace the direct read from the registers by dedicated LL functions
since that they are now available.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-01-30 11:06:19 +01:00
Guillaume Gautier
5308d39b75 drivers: spi: stm32: factorize dma requests
Define a single function to enable the DMA requests instead of duplicating
the same lines several times.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-01-30 11:06:19 +01:00
Guillaume Gautier
d9dcb50bf4 drivers: spi: stm32: remove some unnecessary line breaks
This commit removes some line breaks from function definitions that were
not needed since it can fit on one line.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-01-30 11:06:19 +01:00
Guillaume Gautier
f13931f150 drivers: spi: stm32: fix and simplify isr
In case of error from the spi_stm32_shift_frames, spi_stm32_complete
could be called twice if one of the condition with the transfer directiion
were true. To prevent this, add a return after the call to
spi_stm32_complete.

Simplify the if/else block with a single if since spi_stm32_complete is
called in every case.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-01-30 11:06:19 +01:00
Guillaume Gautier
9164899d1b drivers: spi: stm32: use already existing function to shift frames
The functions spi_stm32_send_next_frame and spi_stm32_read_next_frame
already exist to send and receive next frame. Use them in slave mode
instead of doing it manually.
Additional checks with spi_context_tx_buf_on and spi_context_rx_buf_on are
done inside these functions but they are already done beforehand in slave
mode.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-01-30 11:06:19 +01:00
Guillaume Gautier
7eebaa0e0c drivers: spi: stm32: rename variable for consistency
Rename spi_dma_data variable to data for consistency with the rest of the
file.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-01-30 11:06:19 +01:00
Guillaume Gautier
655ad8564a drivers: spi: stm32: factorize transfer size setting
Create a new function that calculates and set the transfer size depending
on the transfer direction (for H7 compatibles).

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-01-30 11:06:19 +01:00
Stephan Linz
c6da48e6f5 docs: extends with I2C default DTS node label for Pico
It was not clear for shields which of the two indexed I2C node labels
should be used as the default from the board's perspective. Now, the
default node label that are to be specified in parallel can be used
for I2C types.

Signed-off-by: Stephan Linz <linz@li-pro.net>
2026-01-30 11:06:06 +01:00