Commit graph

126,787 commits

Author SHA1 Message Date
Robert Lubos
f7e9d21936 net: coap_client: Use buffers instead of pointers for path and options
Use buffers instead of pointers for path and extra options provided in
the struct coap_client_request, so that the library keeps a copy of the
path/options instead of pointers. That way, the library can still work
correctly in case of retransmissions or block transfer in case when the
original path or options were automatic variables that went out of
context.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-10-14 12:50:39 +03:00
Seppo Takalo
9d93594de9 modem: cmux: Define macros for header size
Define CMUX_HEADER_SIZE macro that is 6 or 7 bytes depending on
MTU.

Remove the previous CMUX_FRAME_SIZE_MAX that was a bit misleading
as it meant only the header size without data and was fixed to 7 bytes.

Redefine new macros CMUX_FRAME_SIZE_MAX and CMUX_FRAME_SIZE_MIN which
are actually frame sizes with data included.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-10-14 12:50:30 +03:00
Bartosz Miller
1d0d6fb3a4 tests: drivers: flash: Exclude nrf54h from the 'default' test case
Test run on the nrf54h20dk requires 'gpio_loopback' fixture

Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
2025-10-14 12:50:20 +03:00
Benjamin Cabé
fb7a74ebbd doc: boards: nxp: common documentation snippets should not be in toctree
Ensure that common documentation snippets meant to be "literalinclude"d
in other pages are not treated as regular rst files and de facto
excluded from the documentation global toctree.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-13 21:11:50 -04:00
Benjamin Cabé
13075122cb doc: boards: nxp: mcx_nx4x_evk: remove unnecessary index page
This intermediate index page is unnecessary and causes the boards that
are included in its toctree to appear in multiple toctrees, which is a
Sphinx warning.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-13 21:11:50 -04:00
Benjamin Cabé
a1fdfece81 doc: boards: nxp: frdm_mcxaxx6: remove unnecessary index page
This intermediate index page is unnecessary and causes the boards that
are included in its toctree to appear in multiple toctrees, which is a
Sphinx warning.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-13 21:11:50 -04:00
Niyas Hameed
24790c965e MAINTAINERS: Add NhMchp as hal microchip maintainer
Add NhMchp to the list of hal_microchip maintainers.

Signed-off-by: Niyas Hameed <niyas.hameed@microchip.com>
2025-10-13 18:14:33 -04:00
Allen Zhang
67555218a2 tests: drivers: pwm: Support pwm_api on mcxw23 boards
Support pwm_api examples on frdm_mcxw23 and mcxw23_evk boards

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
2025-10-13 18:14:11 -04:00
Allen Zhang
390b0a31d5 tests: drivers: watchdog: Support wdt_basic_reset_none on mcxw23 boards
Support wdt_basic_reset_none on frdm_mcxw23 and mcxw23_evk boards

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
2025-10-13 18:14:11 -04:00
Allen Zhang
a324ecfcb8 dts: mcxw23x: Add dts support for MRT and SCTimer
Add dts support for MRT and SCTimer

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
2025-10-13 18:14:11 -04:00
Allen Zhang
bd7c0cba39 soc: mcxw2xx: Add clock enablement for watchdog
Add clock enablement for watchdog

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
2025-10-13 18:14:11 -04:00
Yves Wang
1f9e39752a drivers: watchdog: wdog32: add delay before init
WDOG32 requires at least 2.5 periods of wdog clock after start up or
before reconfig.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2025-10-13 18:14:00 -04:00
Yves Wang
b1b32bfc3d drivers: watchdog: wdog32: format source code
Format code with clang format.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2025-10-13 18:14:00 -04:00
Sylvio Alves
8c05389a74 west.yml: espressif: make longjmp/setjmp weak
Update hal_espressif to remove direct ROM linkage
of setjmp and longjmp calls to use the toolchain
implementations instead.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-10-13 18:13:32 -04:00
Tom Burdick
6c21c3f817 samples: mctp: Add sample.yaml's to samples
Adds the missing sample.yaml's for building these in CI and with
twister.

Fixes a build issue that came up along the way.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2025-10-13 18:13:23 -04:00
Łukasz Fundakowski
8201d20b24 twister: remove not needed try..except
Removed redundant try..except around the code
and fixed a test for that code which was false positive.

Signed-off-by: Łukasz Fundakowski <lukasz.fundakowski@nordicsemi.no>
2025-10-13 18:13:11 -04:00
Missael Maciel
4dee6c0cd2 drivers: memory: aps6404l: Removed addressshift field from APS6404L driver
Memory APS6404L does not support address shift feature.
Since it is being configured for different platforms that uses this
memory, this is cauing an error while building.

Signed-off-by: Missael Maciel <davidmissael.maciel@nxp.com>
2025-10-13 18:13:01 -04:00
Pieter De Gendt
6728e78576 Revert "shell: Add user data argument to shell_set_bypass"
Revert a change that broke the stable API function shell_set_bypass.
This reverts commit 6b876dba1ba61b659b1b2d4c3ccd0ac41bd56027.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-10-13 18:12:42 -04:00
Pieter De Gendt
d358bc0e79 Revert "doc: releases: migration: 4.3: Add shell_set_bypass update"
Revert a change that broke the stable API function shell_set_bypass.
This reverts commit ad7b6aa6ddff677d1590dc2e589e59753862be44.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-10-13 18:12:42 -04:00
chao an
e83d8d957d net: dhcpv4_server: correct DHCPv4 lock scope for lease()
DHCPv4 server lease should release mutex correctly

Signed-off-by: chao an <anchao.archer@bytedance.com>
2025-10-13 11:28:11 -04:00
Paul Hepworth
58a21bf422 doc: fs: document preconditions with fs_open & fs_opendir
fs_open and fs_opendir rely on the structures in the first param
being intialized. (The init functions are documented with the type
declarations.) This simple documentation change mentions this need
to initialize (and emphasizes it). (Users of similar APIs such as
POSIX open and opendir do not expect this initialization need.)

Fixes #97205
Signed-off-by: Paul Hepworth <paulh@vpitech.com>
2025-10-13 11:28:00 -04:00
Etienne Carriere
1beb3d36dd drivers: mdio: stm32: don't mix HAL return value and errno
Correct mdio_stm32_read() and mdio_stm32_write() to return a valid errno
instead of mixing HAL return values and errno return values.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-13 11:27:34 -04:00
Etienne Carriere
617335951f drivers: ethernet: stm32: add missing empty line
Add missing empty line between local variable definitions and
instructions in eth_stm32_set_mac_config().

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-13 11:27:34 -04:00
Etienne Carriere
97ec44c909 drivers: ethernet: stm32: clean HAL_ETH_{Set|Get}DMAError() value test
Clean tests on HAL_ETH_SetDMAError() and HAL_ETH_GetDMAError() return
value to explicitly test against 0.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-13 11:27:34 -04:00
Etienne Carriere
83b1e12f4a drivers: ethernet: stm32: test HAL return value
Add missing test of some HAL functions return value

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-13 11:27:34 -04:00
Guillaume Gautier
88735a4aa1 drivers: adc: stm32: remove useless check of internal regulator state
Disabling the internal regulator is immediate so there is no need to check
the state of the Enable bit in the register.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-13 11:27:22 -04:00
Guillaume Gautier
67906ce049 drivers: adc: stm32: use the new differential support property
Use the new differential support property instead of relying on the series
name to determine if the ADC supports differential input channels.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-13 11:27:22 -04:00
Guillaume Gautier
7acd045e62 drivers: adc: stm32: use the new channel preselection property
Use the new channel preselection property instead of relying on the series
name to determine if the ADC channels need to be preselecting.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-13 11:27:22 -04:00
Guillaume Gautier
77be4b72eb drivers: adc: stm32: use the new deep powerdown property
Use the new deep powerdown property instead of relying on the series name
to determine if the ADC needs to be be put out or into deep powerdown mode.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-13 11:27:22 -04:00
Guillaume Gautier
7c719cefd5 drivers: adc: stm32: use the new internal regulator property
Use the new internal regulator property instead of relying on series name
to determine if the regulator should be enabled, and how to check that it
is ready.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-13 11:27:22 -04:00
Guillaume Gautier
a0cadb03c7 drivers: adc: stm32: relies on a ll define rather than series names
For managing the CCRDY flag, rely on the presence of the LL constant
LL_ADC_FLAG_CCRDY rather than a list of series.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-13 11:27:22 -04:00
Guillaume Gautier
5f0c63ea35 dts: arm: st: fill out adc nodes with the new properties
Fill out all ADC nodes of all STM32 with the new properties that apply to
them.
Also moves the status at the end of each node.
Also fixes ADC2 and 3 nodes for STM32F103 and ADC3 node for STM32L471 that
were missing some required properties.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-13 11:27:22 -04:00
Guillaume Gautier
c21cdd8569 dts: bindings: adc: stm32: add new properties to simplify the driver
Add a bunch of new property for the STM32 ADC in order to simplify the
driver. All these properties are hardware-specific and should not be
modified by users.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-13 11:27:22 -04:00
Chris Friedt
ee3402321f drivers: smbus: stm32: support packet-error-checking (pec)
Add support for SMBus packet error checking (PEC) to the stm32 driver.
This feature allows SMBust communication to be slightly more robust in
the presence of noise, in that packet errors can be detected on the
receive side.

Signed-off-by: Andrew Lewycky <alewycky@tenstorrent.com>
Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-13 11:27:13 -04:00
Chris Friedt
de9cf4ccaa tests: drivers: smbus: add packet error correction (pec) testsuite
Add tests for SMBus packet error correction (PEC). The two primary
utilities tested are

* smbus_pec(): compute the PEC byte for a Block Write
* smbus_read_check_pec(): verify a PEC after
  * Read Byte
  * Read Word
  * Block Read

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-13 11:27:13 -04:00
Chris Friedt
52ae0c5ed9 drivers: smbus: provide packet-error-checking (pec) routines
In the case that SMBus hardware does not automatically perform packet
error checking (PEC), provide generic inline functions in
`zephyr/drivers/smbus.h` that can be used by drivers to perform PEC in
software.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
Signed-off-by: Andrew Lewycky <alewycky@tenstorrent.com>
2025-10-13 11:27:13 -04:00
Jimmy Zheng
7edb310d02 arch: riscv: custom: add T-Head Xuantie CSR support
Move Xuantie supprot from arch/riscv/core/xuantie to the custom common
layer arch/riscv/custom/thead, with the following changes:

1. Rename Kconfig name
   CACHE_XTHEADCMO -> RISCV_CUSTOM_CSR_THEAD_CMO
2. Split the original arch/riscv/core/xuantie/Kconfig to
   a. arch/riscv/custom/thead/Kconfig: for T-Head extension
   b. arch/riscv/custom/thead/Kconfig.core: for T-Head CPU series
      (e.g. Xuantie E907)
3. Move cache line size defaults to SoC devicetree

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2025-10-13 11:26:28 -04:00
Jimmy Zheng
7732e66723 arch: riscv: custom: add OpenISA RI5CY and Zero-RISCY CSR support
Update OpenISA RI5CY and Zero-RISCY CSR handling to use RISC-V custom
CSR common code. Move these stuff to 'arch/riscv/custom/openisa':

1. Rename 'soc_ri5cy.h' to 'ri5cy_csr.h' for CSR definitions.
2. Rename 'soc_zero_riscy.h' to 'zero_riscy_csr.h' for CSR definitions.
3. Move CSR context to common macro '__custom_csr_save/restore_context'.
4. Move compiler option '-march=rv32imcxpulpv2' to common code.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2025-10-13 11:26:28 -04:00
Jimmy Zheng
a6a11cc57d arch: riscv: custom: add OpenHW Group CVA6 CSR support
CVA6 supports custom CSR. Move 'cva6.h' to 'arch/riscv/custom/cva6_csr.h',
allowing other SoCs using the CVA6 core to reuse the same CSR definitions.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2025-10-13 11:26:28 -04:00
Jimmy Zheng
8b27ffbecc arch: riscv: : custom: add Nuclei CSR support
GD32VF103 uses Nuclei-specific CSR. Move 'nuclei_csr.h' to
'arch/riscv/custom' to allow reuse across SoCs with the same Nuclei core.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2025-10-13 11:26:28 -04:00
Jimmy Zheng
1b310b1542 soc: egis: et171: add support for Andes custom CSRs
Egis ET171 implements Andes custom CSRs. Enable the following features:

1. Low level initialization of Andes CSRs
2. HWDSP and PowerBrake extensions with context save/restore
3. EXEC.IT extension

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2025-10-13 11:26:28 -04:00
Jimmy Zheng
7ee9fd978c soc: telink: tlsr951x: use RISC-V custom CSR common code
TLSR951x also supports Andes extended CSR. Reworks the following CSR
handling to use the RISC-V custom CSR common code:

1. Use common macros for HWDSP CSR context save/restore.
2. Use common macros for PFT CSR context save/restore.
3. Use common low-level CSR initialization via __reset hook.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2025-10-13 11:26:28 -04:00
Jimmy Zheng
679ce42f15 arch: riscv: custom: add Andes CSR support
Rework Andes-specific CSR to use RISC-V custom CSR common code.
Move these stuff to 'arch/riscv/custom/andes':

1. Rename 'soc_v5.h' to 'andes_csr.h' for CSR definitions.
2. Replace '_start' with '__reset' hook for low-level CSR initialization.
3. Move CSR context to common macro '__custom_csr_save/restore_context'.
4. Move 'EXECIT' CSR support to common code.
5. Move PMA CSR driver to common code.
6. Use RISC-V common linker.ld instead of SoC-specific linker.ld.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2025-10-13 11:26:28 -04:00
Jimmy Zheng
7d169ccc26 arch: riscv: introduce RISC-V custom CSR common layer
RISC-V allows custom CSR implementation. Some SoCs from different vendors
may share the same core or the same custom CSR definitions and drivers.

This patch introduces 'arch/riscv/custom', which centralizes support
for custom CSRs, allowing code reuse across SoCs that come from different
vendors. Currently supported thess custom CSR:
  1. Andes
  2. Nuclei
  3. OpenHWGroup CVA6
  4. OpenISA RI5CY
  5. OpenISA Zero-riscy
  6. T-Head Xuantie

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2025-10-13 11:26:28 -04:00
Etienne Carriere
e65007ee0d boards: st: stm32n6570_dk: correct touchscreen reset line
Correct GT911 touchscreen reset line that is connected to GPIO E1,
not E4, on stm32n6570_dk boards. Note that GPIO E4 in connected
to SDcard data bus line D3 on that board.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-13 09:38:59 -04:00
Mert Ekren
ee6ccea957 tests: drivers: dma: Add MAX32675 overlay files
Enable 'chan_blen_transfer' and 'loop_transfer' tests for MAX32675EVKIT.

Signed-off-by: Mert Ekren <mert.ekren@analog.com>
2025-10-13 09:38:46 -04:00
Triveni Danda
57a35d9cb4 net: l2: wifi: Fix override certs directory for sysbuild
Fix overriding the test certificates directory for enterprise mode
when using sysbuild. The override already works as expected without
sysbuild.

Signed-off-by: Triveni Danda <triveni.danda@nordicsemi.no>
2025-10-13 09:38:37 -04:00
Michael Zimmermann
58016ed6b6 net: socket: tls: Fix type of pointer
mbedtls_ssl_get_peer_cid takes size_t, not socklen_t.
c546c1cad1
changed the type of socklen_t to something that is incompatible with native
offloaded sockets, which caused a compiler error.

Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
2025-10-13 09:38:26 -04:00
Jani Hirsimäki
0f214d3d9e net: ip: ipv6_nbr: p2p link: NA without link address option
Neighbor Advertisement (NA) messages without a link-layer address option
are now accepted on point-to-point links. See RFC 7066, ch. 2.2.

Signed-off-by: Jani Hirsimäki <jani.hirsimaki@nordicsemi.no>
2025-10-13 09:38:09 -04:00
Marcelo Roberto Jimenez
47e7b7b2b5 drivers: ethernet: Add promiscuous mode to slip interface
Slip is naturally promiscuous, so this patch does nothing but
acknowledge that. Promiscuous mode in slip is important to allow
the interface to be added to a bridge.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2025-10-13 09:37:56 -04:00