Commit graph

136,983 commits

Author SHA1 Message Date
Daniel DeGrasse
b4cbd206ec drivers: serial: ns16550: support odd parity
Add odd parity support into ns16550 driver.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2026-01-25 14:38:43 +01:00
Daniel DeGrasse
a436c1cc12 drivers: serial: ns16550: support interrupt API correctly for DW IP
For the base ns16550 spec, supporting the UART interrupt API correctly
is not strictly possible- the IIR register will clear after one read and
not update, so multiple calls to uart_irq_[tx/rx]_ready after
uart_irq_update will return stale data.

The Synopsis DW variant of this IP includes a USR register, which can be
used to correctly identify when the TX FIFO has space for more data and
when the RX FIFO is empty. Use this register when
CONFIG_UART_NS16550_DW8250_DW_APB is set.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2026-01-25 14:38:43 +01:00
Daniel DeGrasse
f620006c84 drivers: serial: ns16550: support loopback mode
Add support for loopback mode in ns16550 uart driver, by setting LOOP
bit in MDC register.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2026-01-25 14:38:43 +01:00
Benjamin Cabé
49a89de750 drivers: stepper: adopt SHELL_HELP in stepper shell module
Use SHELL_HELP macro for help strings to ensure consistency across
various shell modules and to save on code size.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-01-24 08:52:47 -06:00
Benjamin Cabé
2cee3420b8 drivers: ptp: adopt SHELL_HELP in ptp shell module
Use SHELL_HELP macro for help strings to ensure consistency across
various shell modules and to save on code size.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-01-24 08:52:24 -06:00
Benjamin Cabé
ce8e3c0a7e drivers: spi: adopt SHELL_HELP in spi shell module
Use SHELL_HELP macro for help strings to ensure consistency across
various shell modules and to save on code size.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-01-24 08:52:07 -06:00
Victor Luque
f7d444bf26 manifest: update hal_nordic to fix TWIM instance in samples
Manifest update to pull fix for TWIM instance in TX-RX and TX-TX samples.

Signed-off-by: Victor Luque <luque.viictor@gmail.com>
2026-01-24 08:51:43 -06:00
Scott Worley
0228579f6f dts: arm: microchip: mec: Fix compatible on last GPIO bank
The compatible for the last GPIO banks in Microchip MEC5
chip DTSI was not changed when the GPIO driver was updated.
We changed the compatible to the correct name.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-01-24 08:51:20 -06:00
Riadh Ghaddab
4a30049073 tests: nrf: add integration platform for rram_throttling
Add the target nrf54l15dk/nrf54l15/cpuapp as the integration platform
in the testcase yaml file.

Signed-off-by: Riadh Ghaddab <riadh.ghaddab@nordicsemi.no>
2026-01-24 08:51:00 -06:00
Scott Worley
bf04578e56 boards: microchip: mec_assy6941: mec165xb: Add flash image generator rules
We updated Microchip mec_assy6941 board cmake rules to invoke a tool for
generating a SPI flash image for MEC165xB. We also added a MEC165xB
specific configuration file for the tool. Revision B MEC175x/165x parts
require 'DeviceSel' field set to 'B'.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-01-24 08:50:30 -06:00
Markus Lassila
7a26b751c1 net: ppp: Fixes to peer LCP_OPTION_MRU handling
- Use the minimum of our and peer MRU as the MTU of the link.
  Allows for cases where our MRU is < 1500.

- Move all of the MRU handling under CONFIG_NET_L2_PPP_OPTION_MRU.
  So that we handle both sending the LCP_OPTION_MRU in Configure-Request
  and receiving it in Configure-Request.

- Remove CONFIG_NET_L2_PPP_OPTION_MAX_MRU.
  From RFC 1661, 6.1 Implementation note:
  ... The peer need not Configure-Nak to indicate that it will only send
  smaller packets, since the implementation will always require
  support for at least 1500 octets.

- Set ppp_my_options_parse_conf_ack so that ack's are parsed.

Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
2026-01-24 08:49:57 -06:00
Maochen Wang
5ee5dafdd1 hostap: fix incorrect link mode selection for SAP
When SAP runs on hostapd, the HE (11ax) capability should be determined
based on hw_mode->he_capab, which reflects the Wi-Fi FW capability.
Using conf->ieee80211ax is incorrect because it only represents the
default value derived from build-time configuration macros, and does not
accurately represent real hardware capabilities.
Same change is also needed for VHT and HT check.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2026-01-24 08:49:34 -06:00
Gaetan Perrot
cb5b83b9bc drivers: comparator: mcux_acmp: remove dead error handling
The MCUX ACMP configuration helpers always return 0, making their
error checks in mcux_acmp_init() unreachable.

Remove the redundant return value checks to simplify the
initialization flow.

No functional change.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-24 08:49:14 -06:00
Daniel Leung
8c02dde437 xtensa: move MMU init functions to mmu.c
Since we have split source files for page table related stuff
and MMU related stuff, move the MMU initialization functions
from the page table source file into MMU source file.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-01-24 08:48:54 -06:00
Daniel Leung
ed4cec2d22 xtensa: ptables: doxygen doc
This adds doxygen doc to the page table source file as
we are missing quite a bit of documentation there.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-01-24 08:48:54 -06:00
Daniel Leung
744a7f4daf xtensa: mmu: do doxygen for functions
This changes the existing comments for functions into doxygen
style documentation for functions. Also adds missing doxygen
doc for functions.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-01-24 08:48:54 -06:00
Terry Geng
92e6d6de31 west.yml: Update hal_rpi_pico revision for flash write fix
Update hal_rpi_pico to include the fix to the flash write code
from zephyrproject-rtos/hal_rpi_pico#15.

Fixes #95729
Fixes #96224

Signed-off-by: Terry Geng <terry@terriex.com>
2026-01-24 08:48:25 -06:00
Andreas Schmidt
6d2471af41 drivers: spi: spi_shell: enumerate only direct SPI controller children
RUN_FN_ON_SPI_DEVICE to run a given fn only if the node_id is a direct
child of the SPI controller (i.e. DT_PARENT(node_id) == DT_BUS(node_id)),
and the node itself has status okay. This prevents enumerating sub-nodes
of SPI devices (for example GPIO sub-devices) which are not direct
children of the SPI controller.

Fixes #99785

Signed-off-by: Andreas Schmidt <andreas.schmidt@dormakaba.com>
2026-01-24 08:47:59 -06:00
Fin Maaß
c4945315e7 riscv: gcc: use string(APPEND
use string(APPEND instead of
string(CONCAT where possible.
Makes it shorter.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-24 08:47:18 -06:00
Fin Maaß
03418c538e riscv: gcc: seperate fpu mabi and march part
seperate fpu mabi and march part, also use
the extention for the march part to make it
easier to add Zfinx and Zdinx later.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-24 08:47:18 -06:00
Fin Maaß
daf90f79ee arch: riscv: add dependencies to FLOAT_HARD
1. it reguires that there are floating point registers,
so the extention f is required. (zfinx uses the int regs instead)
2. RV32E doesn't supports hardware floating-point calling convention.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-24 08:47:18 -06:00
Jakub Rzeszutko
a04d8957c2 shell: fix race condition between prompt print and RX buffer flush
Move z_shell_backend_rx_buffer_flush() before state_set() in
shell_start() to prevent a race condition where incoming shell
commands could be lost.

Previously, the sequence was:
1. state_set() - prints the prompt
2. z_shell_backend_rx_buffer_flush() - flushes RX buffer

If the shell thread was preempted after printing the prompt,
the host could see the prompt and send commands. When the
thread resumed, z_shell_backend_rx_buffer_flush() would discard
those commands.

By flushing the RX buffer before printing the prompt, any
commands received after the prompt is visible will not be
affected by the flush operation.

Fixes #99674

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@verkada.com>
2026-01-23 09:21:43 -06:00
Cristian Bulacu
f87fff19a7 tests: net: remove OT reference device flag for OT tests
This commit removes OPENTHREAD_REFERENCE_DEVICE flag for OpenThread tests.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2026-01-23 09:21:10 -06:00
Cristian Bulacu
089bb1f000 samples: net: openthread: Remove OT reference device flag for NXP RW612
This commit removes the OPENTHREAD_REFERENCE_DEVICE flag for NXP RW612
samples, as these are not meant to be included in a test setup.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2026-01-23 09:21:10 -06:00
Andrej Butok
6404f37814 boards: nxp: Fix NXP MCU board names in yaml
- Fixes an inconsistency in the board list
  of the MCUx-VSCode extension. No functional change.
- Adjusts names in yaml files to follow the currently used approach
  "NXP <board_name> [(cpu)] [(type)]".

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2026-01-23 09:20:47 -06:00
Benjamin Cabé
1feabd2552 shell: fix potential buffer overflow in shell_help_is_structured()
The function was casting a char* help pointer to struct shell_cmd_help*
and reading its 4-byte magic field. When the help string was shorter
than 4 bytes, this caused a read past the end of the buffer.

The fix replaces the struct cast with a byte-by-byte comparison of the
magic number.

Fixes zephyrproject-rtos/zephyr#102598

Co-authored-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-01-23 09:20:01 -06:00
Svitlana Drozd
cdfd692b76 boards: raspberrypi: rpi_5: correct DTB file name in doc
The DTB file was previously listed as bcm2712-rpi-5.dtb, which was
inaccurate, as the hyperlink referenced the `bcm2712-rpi-5-b.dtb`
file. To ensure documentation precision and avoid potential
confusion, update the file name to the correct
`bcm2712-rpi-5-b.dtb`.

Signed-off-by: Svitlana Drozd <svitlana_drozd@epam.com>
2026-01-23 09:19:25 -06:00
Svitlana Drozd
b4bbba70b1 boards: raspberrypi: rpi_5: remove unnecessary arm_64bit option
The ARM cores in BCM2712 are incapable of running the kernel in 32-bit
mode. The option `arm_64bit=1` is unnecessary and can be confusing, as
Raspberry Pi 5 runs in 64-bit mode by default.

Removed the `arm_64bit=1` configuration from documentation for Raspberry
Pi 5 (BCM2712).

Signed-off-by: Svitlana Drozd <svitlana_drozd@epam.com>
2026-01-23 09:19:25 -06:00
Cesar Santos
ec5c3420b3 samples: net: secure_mqtt_sensor_actuator: add missing POSIX libraries
In order to compile the demo application for a secure MQTT connection,
several networking API functions are used, which is properly defined by
some of the POSIX libraries already integrated onto Zephyr project. By
adding the missing libraries, compilation to the reference board
adi_eval_adin1110ebz passes.

As a minor change, reordered the sequence of included libraries to be
in alphabetical order.

Fixes #102372.

Signed-off-by: Cesar Santos <dev.cmsantos@gmail.com>
2026-01-23 09:19:01 -06:00
Wolfgang Betz
b84bdbcee3 dts: arm: st: n6: Use dedicated dts node for NPU cache (aka CACHEAXI)
The new node is called "npu_cache".

This way a possibility is offered to choose - thru an overlay - if to
enable the NPU cache or not.
This new node has a dependency with node "npu", so the NPU cache's
status is taken into account only in case node "npu" has status "okay".

Default status value of "npu_cache" is "okay"
(i.e. enable the NPU cache).

Signed-off-by: Wolfgang Betz <wolfgang.betz@st.com>
2026-01-23 09:18:34 -06:00
Alberto Escolar Piedras
92df06bf1d boards: native: nrf_bsim: Add simple model of LDREX/STREX/CLREX
Add a model of LDREX/STREX/CLREX, that although simple may be correct
enough to cover the needs of SW using these instructions.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2026-01-23 09:17:37 -06:00
Marcelo Roberto Jimenez
1ab8978e66 drivers: flash: flash_shell.c: Fix flash read help text
Actually, the parameter is the number of bytes to read, not the number
of double words.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2026-01-23 09:17:05 -06:00
Marcelo Roberto Jimenez
391ca7c7de drivers: flash: flash_shell.c: Fix parsing of "flash read"
The parsing of the number of bytes to read in the read command was being
done in hexadecimal, causing unexpected behavior.

Now the number can be interpreted in decimal or hexadecimal if prefixed
with 0x.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2026-01-23 09:17:05 -06:00
Marcelo Roberto Jimenez
ec8472c362 tests: subsys: shell: Clang-format on shell_flash_test.c
This patch runs clang-format on the shell_flash_test.c file
before the real patch gets applied, otherwise the changes
would be hard to read.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2026-01-23 09:17:05 -06:00
Marcelo Roberto Jimenez
9535aebafe drivers: flash: flash_shell.c: Run clang-format before patch
This patch runs clang-format on the flash_shell.c file before the
real patch gets applied, otherwise the changes would be hard to
read.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2026-01-23 09:17:05 -06:00
Gaetan Perrot
08f8223d55 boards: phytec: phyboard_atlas: xip: fix typos in comments
Fix spelling and wording issues in comments for phytec
phyboard_atlas xip FlexSPI NOR configuration headers.

No functional change.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-23 13:57:14 +01:00
Mathieu Choplain
7a8bc1cdce soc: st: stm32: cleanup linker script of STM32MP2 series
Remove inclusion of files already included by the arch linker script from
the SoC-specific linker script.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-23 13:56:53 +01:00
Mathieu Choplain
c64c13e525 soc: st: stm32: cleanup linker scripts of STM32MP1 series
STM32MP1 series used a custom SOC_LINKER_SCRIPT, but all it did was
include the main Cortex-M script, unnecessarily re-include headers already
included by the main script(!) and add a custom section.

Get rid of the custom SOC_LINKER_SCRIPT but keep the custom section by
moving it to a linker script snippet file, added to the build system using
CMake directives.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-23 13:56:53 +01:00
Fabrice DJIATSA
d1e8918332 boards: shields: x_nucleo_dfx01m2: fix invalid dt enums in overlays
Fix the panel pixel format enum in the X-NUCLEO-GFX01M2 shield overlay
by using PANEL_PIXEL_FORMAT_RGB_565 as defined in panel dt-bindings.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2026-01-23 13:56:08 +01:00
Fabrice DJIATSA
de04861e29 samples: sensor: stream_drdy: fix invalid dt enums in overlays
Fix Devicetree compilation errors caused by incorrect enum macro
names used in DTS overlay files.

Replace LSM6DSV16X_DT_ODR_AT_120Hz with the correct Devicetree enum
LSM6DSVXXX_DT_ODR_AT_120Hz in the stream_drdy sample boards overlay.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2026-01-23 13:56:08 +01:00
Johan Hedberg
f64a999147 drivers: bluetooth: silabs_efr32: Fix default for max PAwR advertisers
This option already depends on BT_PER_ADV_RSP being enabled, so we should
have a more reasonable default for it. This way e.g. the existing PAwR
sample app should work without additional changes.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2026-01-23 13:55:25 +01:00
Pieter De Gendt
8402a4f8e5 drivers: gpio: mcux: Fix updating ICR registers without IRQ lock
During configuration the base->ICR1 or base->ICR2 register is written
without an IRQ lock. This can result in unwanted side-effects if the status
bit isn't cleared, or the edge select still needs to be updated.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-23 13:54:42 +01:00
Gaetan Perrot
7af0a2fcdf sensor: adi: adxl372: stream: check return value of adxl372_set_op_mode
Check the return value of adxl372_set_op_mode() in
adxl372_submit_stream() and abort on error.

Fix CID: 516239

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-23 13:54:21 +01:00
Gaetan Perrot
ed545d2302 drivers: ethernet: lan9250: Make interrupt mask constant unsigned
Add a 'U' suffix to the interrupt status mask passed to
lan9250_write_sys_reg() to make the constant explicitly unsigned.

This avoids signed/unsigned ambiguity and addresses a SonarQube
static analysis warning.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-23 13:53:59 +01:00
Gaetan Perrot
f18da88e3f drivers: ethernet: lan9250: fix uninitialized variable warning
The lan9250_thread() function declares a local variable that may be
used without being initialized, triggering a -Wmaybe-uninitialized
warning when building with -Werror.

Initialize the variable at declaration to ensure deterministic
behavior and avoid build failures.

No functional change intended.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-23 13:53:59 +01:00
Gaetan Perrot
2719679c26 drivers: ethernet: lan9250: fix error handling
Several LAN9250 helper functions ignored return values from register
access and wait routines, potentially hiding SPI or timeout
failures.

Propagate error codes from read/write/wait helpers throughout the
driver so failures are detected and handled by callers.

This improves robustness and makes error conditions visible during
initialization, PHY access, RX/TX paths, and MAC configuration.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-23 13:53:59 +01:00
Robert Lubos
10b9520cac net: lib: http_server: Prefer explicitly defined resources over FS ones
Do direct resource path comparison on all registered resources before
falling back to fnmatch() so that exact path matches get always
preference.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 13:52:47 +01:00
Robert Lubos
59b653bb4f tests: net: lib: http_server: Add test case for overlapping resources
Add a test case verifying that if there's a static resource defined
which overlaps a FS resource pointing to a directory, it takes
preference on exact URI match.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 13:52:47 +01:00
Hugues Fruchet
b0fd7d9665 samples: video: tcpserversink: release camera frame as soon as possible
Release camera frame immediately after video encoding.
Doing so, the frame could be reused by camera for next capture
without waiting for the end of network transmission.

Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2026-01-23 13:52:31 +01:00
Hugues Fruchet
9ebfb206af samples: video: tcpserversink: fix multiple connect/disconnect
Fix multiple connect/disconnect regression introduced in
6a7aefaa samples: video: tcpserversink: check video_enqueue/dequeue
return values.

Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2026-01-23 13:52:31 +01:00