Commit graph

136,983 commits

Author SHA1 Message Date
Fin Maaß
58b48b0423 dts: bindings: ethernet: phy: split and group common
split and group common dts bindings

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-12-05 11:10:46 -05:00
Fin Maaß
a21fdccd50 drivers: ethernet: nxp: allow driver to be build without mdio
allow driver to be build without mdio,
implemented similar to ptp.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-12-05 11:10:46 -05:00
Alberto Escolar Piedras
efca68625a Bluetooth: userchan: Validate UNIX socket path fits in sockaddr_un
sockaddr_un.sun_path is limited to 108 in Linux
(and to similarly small numbers in other systems).

Let's check that it fits before copying it, and error out otherwise
(the user won't be able to connect to that socket if the path
is truncated, and if we overflow we will just corrupt memory).

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-12-05 11:10:38 -05:00
Krzysztof Chruściński
123a0cd29f tests: drivers: uart: async_api: Add overlay for nRF non-secure
Add configuration for nrf9160dk/nrf9160/ns and
nrf5340dk/nrf5340/cpuapp/ns targets.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-12-05 11:10:09 -05:00
Guillaume Gautier
a0ffee2b92 drivers: spi: stm32: add support for baudrate prescaler bypass
Some STM32 SPI have the ability to bypass the baudrate prescaler, which is
equivalent to having a prescaler of 1.
Adds this new value in the prescaler calculation if available.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-12-05 11:09:59 -05:00
Matthias Alleman
476483075c drivers: input: input_chsc5x: fix sda and scl being pulled low
The CHSC5X chip requires reads to be aligned to multiples of 4 bytes.
If the read length is not a multiple of 4, the device pulls SDA/SCL low
for about 140 ms. The IC_TYPE address is corrected to 0x80.

Signed-off-by: Matthias Alleman <matthias.alleman@basalte.be>
2025-12-05 13:39:48 +02:00
Krzysztof Chruściński
242bf65d1d manifest: Update hal_nordic with GPPI helper changes
Improve GPPI documenation and fixes for bsim support in PPI
implementation of GPPI helper.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-12-05 13:39:34 +02:00
Julien Racki
dc6d5ae970 drivers: ethernet: stm32: Add Port Selection
Add Port Selection for the N6 series.
This allows to run ethernet at 10mbs, 100mbs or 1000mbs.

Signed-off-by: Julien Racki <julien.racki-ext@st.com>
2025-12-05 13:39:24 +02:00
Jun Lai
769ba82aa5 llext: export some symbols
Export these symbols for loadable modules
that use them.

Signed-off-by: Jun Lai <jun.lai@dolby.com>
2025-12-05 13:39:15 +02:00
Benjamin Cabé
67cd6120b9 doc: developer: enhance manifest index with introductory text
The "West Projects Index" could use a bit more context so this commit
adds just that.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-12-05 13:38:58 +02:00
Alberto Escolar Piedras
cb1b1212e4 boards native_sim: Add documentation on how to cross-compile
Providing a guide on how to setup an Ubuntu24.04 x86_64 host
for arm builds and how to build and run locally the arm binary.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-12-05 13:38:48 +02:00
Alberto Escolar Piedras
8c194648e4 arch/posix: Support cross-compiling
Support cross-compiling from one Linux host for another Linux target.
This is done by allowing users to set NATIVE_TARGET_HOST for cmake
which will override the automatic detection.
At the same time, add support for building for 32bit arm targets.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-12-05 13:38:48 +02:00
Alberto Escolar Piedras
654535bea3 cmake: FindHostTools: Do not override cross-compile for native builds
This check is meant to be easier on users so they do not need to bother
setting ZEPHYR_TOOLCHAIN_VARIANT to "host" when building for
native_simulator based targets, so we default in that case to it.
But when somebody has actively set it to "cross-compile" we should not
override it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-12-05 13:38:48 +02:00
Alberto Escolar Piedras
d38df492ee toolchain: gcc: GEN_ABSOLUTE* macros merge & support POSIX arch on arm
Merge the GEN_ABSOLUTE* macros for architectures which have
the same assembler.
Add support for building the POSIX architecture for armhf targets.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-12-05 13:38:48 +02:00
Johan Hedberg
69946a1253 drivers: crypto_mbedtls_shim: Fix build with Clang/LLVM
drivers/crypto/crypto_mbedtls_shim.c:310:3: error: label followed by a
declaration is a C23 extension [-Werror,-Wc23-extensions]
                 uint16_t tag_len = ctx->mode_params.ccm_info.tag_len;
                 ^

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2025-12-05 13:38:37 +02:00
Bjarki Arge Andreasen
cc68eaef2b dts: nordic: nrf54h20: disable lfclk by default
The lfclk was left enabled by mistake, it has status disabled
followed by status okay a few lines down. Remove the spurious
status = "okay";

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-12-05 10:55:53 +02:00
Cristian Bulacu
ea543d87cd openthread: platform: dns_resolver: Allow A type queries
Allow dns upstream resolver module to perform A queries on behalf of
Thread nodes

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-12-05 10:55:44 +02:00
Peter Mitsis
864e648e68 kernel: Add ifdef guard around ipi_lock definition
The global variable ipi_lock is both local to the file ipi.c and
only used when CONFIG_SCHED_IPI_SUPPORTED is enabled. As such its
definition should be wrapped with an ifdef.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-12-05 10:55:32 +02:00
Jordan Yates
2c47b2d2a3 i2c/i3c: rtio: explicit zeroing of SQE flags
Explcitly zero the flags of the SQE obtained from `rtio_sqe_acquire`
when the `rtio_sqe_prep_*` helpers aren't used (the helpers memset the
entire struct to 0).

The flags must be reset to ensure the `RTIO_SQE_TRANSACTION` and
`RTIO_SQE_CHAINED` are not retained from a previous SQE.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-12-05 10:55:22 +02:00
Attie Grande
3b16975c64 drivers: sdmmc: stm32: introduce cache flush & invalidation for DMA
Introduce steps to maintain cache coherence around DMA accesses to the
underlying SD / eMMC storage.

Signed-off-by: Attie Grande <attie.grande@argentum-systems.co.uk>
2025-12-05 10:55:11 +02:00
Anthony Williams
07b300ee4f sensor: rm3100: Remove duplicate edata header encoding when streaming
Remove the manual encoding of edata->header.channels and
edata->header.timestamp as these are now handled during rm3100_encode()

Signed-off-by: Anthony Williams <anthony289478@gmail.com>
2025-12-05 10:54:53 +02:00
Anthony Williams
640a696cc4 sensor: rm3100: Use rm3100_encode to populate cycle_count during stream.
Use rm3100_encode() to populate cycle_count info when
configured in streaming mode.

Previously when configured for streaming, cycle_count would
be 0 and rm3100_convert_raw_to_q31 would default to always
use the 600hz divider resulting in values off by a factor of 2.

Signed-off-by: Anthony Williams <anthony289478@gmail.com>
2025-12-05 10:54:53 +02:00
Anthony Williams
ca2ed7de3d sensor: rm3100: Correct LSB/uT scale factor comment in rm3100_decoder.c
The scale factor when used as a divider from the datasheet specifies
units in LSB/uT not uT/LSB. This change corrects the comment to reflect
the correct units for the divider.

Signed-off-by: Anthony Williams <anthony289478@gmail.com>
2025-12-05 10:54:53 +02:00
Jilay Pandya
71368aaa01 doc: add migration guide entry for replacing msx-gpios to m0/m1-gpios
msx-gpios is now replaced with m0/m1-gpios for adi,tmc2209 in order
to be consistent with other step/dir drivers

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-12-05 10:54:41 +02:00
Jilay Pandya
fddadaf012 tests: generalize drv84xx tests for all step-dir drivers
drv84xx test-suite could be extended to other step-dir drivers
as well

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-12-05 10:54:41 +02:00
Jilay Pandya
4d68fb8be5 drivers: tmc2209: use m0/m1-gpios instead of msx-gpios
unify msx-gpios for step-dir drivers. tmc2209 is an exception
for now and hence migrating to m0/m1-gpios instead of msx-gpios.

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-12-05 10:54:41 +02:00
Fabio Baltieri
6850470587 i2c: shell: make the buffer configurable
Add a Kconfig option to tweak the i2c shell command buffer size,
similarly to other shell commands.

This is allocated on the stack so add a note about it.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-12-05 10:54:31 +02:00
Cheng Chang
abb707ca36 bluetooth: host: obex: Allow MOPL to exceed MTU for mobile compatibility
When MOPL  exceeds MTU, adjust it to match MTU instead of failing the
connection. This handles the common case where mainstream mobile
operating systems (iPhone and Android) negotiate
MOPL values greater than the RFCOMM or L2CAP MTU.

Signed-off-by: Cheng Chang <cheng.chang@nxp.com>
2025-12-05 10:54:21 +02:00
Holt Sun
07a67e81b6 samples: memc: rw612: set AHB RX buffer defaults for FlexSPI cache/DMA
FRDM/RD RW612 overlays are updated to provide explicit AHB RX buffer
configuration for the FlexSPI controller, aligning with RW61x features:
- FlexSPI flash (port A): 32 KiB cache, dynamic decryption, XIP, DMA
- FlexSPI pSRAM (port B): 32 KiB cache, dynamic decryption, XIP, DMA

The rx-buffer-config now assigns a dedicated buffer for the primary
CPU traffic and leaves buffer 7 as the generic fallback, matching the
expected cache/DMA behavior and MCUX SDK defaults. This ensures sane
defaults when PSRAM is enabled without requiring users to patch AHB
buffer settings manually.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2025-12-05 10:54:12 +02:00
Zhaoxiang Jin
f052dbb68f drivers: counter: lptmr: Fix get_pending_int wrong implementation
Originally, function 'mcux_lptmr_get_pending_int' checks if both
TCF and TIE flags are set to determine if an interrupt is pending.
But function 'LPTMR_GetStatusFlags' only returns the status flags,
that is we will never get TIE flag from it. then the function
always returns false.

The correct approach is to read the CSR register directly and check
if both TIE and TCF bits are 1. If yes, there's a pending interrupt;
if not, there isn't.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-12-05 10:54:01 +02:00
Jordan Yates
8b697b6b03 tests: audio: dmic_util: test PDM_DT_IO_CFG_GET
Test the implementation of `PDM_DT_IO_CFG_GET`. Implemented as a
distinct test from `dmic_api` to allow running natively in CI.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-12-05 10:53:35 +02:00
Jordan Yates
e2d88b44e4 audio: dmic: macros to query DT microphone config
Add a macro to construct a `struct pdm_io_cfg` instance from the
devicetree node with the appropriate properties.

Add macros to query which PDM channels are available.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-12-05 10:53:35 +02:00
Jordan Yates
2ceda8506e dts: bindings: audio: common PDM channel configuration
The allowable ranges for the clock frequency and duty cycle, together
with the enabled channels, are hardware configuration parameters that
should be described in devicetree.

`pdm-dmic.yaml` is its own file to allow more complicated hardware
configurations to inherit it.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-12-05 10:53:35 +02:00
Seppo Takalo
acf375ed48 drivers: modem_cellular: Switch chat to UART when CMUX closes
When CMUX channels are closed, UART goes back to AT command mode.
Switch Chat pipe to use the plain UART as DLCI2 pipe does not
exist anymore.

Add a small delay, so the remote end have time to clean up and
go back to normal AT command mode.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-12-05 10:53:25 +02:00
Alex Apostolu
557e7c6111 tests: drivers: dma: configure alignment based on devicetree
Configure the alignment of the data buffers based on the
dma_buf_addr_alignment property. Default to 32 if property isn't set.

Signed-off-by: Alex Apostolu <aapostolu@tenstorrent.com>
2025-12-05 10:53:12 +02:00
Alex Apostolu
0e28a0230c tests: drivers: dma: use tst_dma0 across all tests
Use tst_dma0 node across all tests for consistency.

Signed-off-by: Alex Apostolu <aapostolu@tenstorrent.com>
2025-12-05 10:53:12 +02:00
Badr Bacem KAABIA
ceac2e6c0f drivers: wifi: airoc: Fallback to user security on scan fail
In the `airoc_mgmt_connect` function, if the user provides a security
type of `WIFI_SECURITY_TYPE_NONE` along with a PSK, the driver attempts
to scan for the AP to determine the correct security protocol.

However, if this scan fails or does not find the AP, the driver would
previously fail the connection attempt instead of using the security
type originally provided by the user.

This change ensures that if the scan does not resolve the security
type (`WHD_SECURITY_UNKNOWN`), the driver falls back to using the
security type from the connection parameters. This makes the connection
process more robust and resilient to scan failures.

Signed-off-by: Badr Bacem KAABIA <badrbacemkaabia@gmail.com>
2025-12-05 10:52:44 +02:00
Jacky Lee
83c7b1a6b8 doc: boards: update index.rst
Updated boards/index.rst to remove unnecessary context
and fix statements.

Signed-off-by: Jacky Lee <jacky.lee@egistec.com>
2025-12-05 10:52:33 +02:00
Jacky Lee
46b9326bfd soc: egis_et171: Fix the i-cache activation order issue
Since caching is enabled before z_data_copy(), RAM
functions may still be cached in the d-cache instead
of being written to SRAM. In this case, the i-cache
will fetch the wrong content from SRAM. Thus, using
"fence.i" to fix it.

Signed-off-by: Jacky Lee <jacky.lee@egistec.com>
2025-12-05 10:52:33 +02:00
Jacky Lee
61e6e64abc boards: egis_et171: Remove unnecessary default configuration
Remove the default configuration FLASH_LOAD_SIZE, because
"linker.ld" will automatically configure FLASH_LOAD_SIZE
to the same default value

Signed-off-by: Jacky Lee <jacky.lee@egistec.com>
2025-12-05 10:52:33 +02:00
Mark Wang
3a8d37ecc4 libsbc: Fix compiler-specific warning flag for non-GNU compilers
The -Wno-stringop-overflow flag is specific to GCC and causes issues
with other compilers like Clang. Separate the compiler options so that
the warning suppression flag is only applied when using GCC.

This change wraps the -Wno-stringop-overflow flag in a compiler ID
check while keeping the optimization flags (-O3 -std=c11 -ffast-math)
applied for all compilers.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-12-05 10:52:18 +02:00
farsin NASAR V A
fd63bf93a5 tests: drivers: rtc: Add support for the sam_e54_xpro board
Added sam_e54_xpro.conf file

Signed-off-by: farsin NASAR V A <farsin.nasarva@microchip.com>
2025-12-04 17:12:33 -05:00
farsin NASAR V A
e30cf00a70 boards: microchip: sam: Add RTC node and enable RTC G1 support
Add RTC node in sam_e54_xpro.dts
Update sam_e54_xpro.yaml to reflect RTC G1 support on the board.

Signed-off-by: farsin NASAR V A <farsin.nasarva@microchip.com>
2025-12-04 17:12:33 -05:00
Farsin Nasar V A
e7b40aeb15 drivers: rtc: microchip: Add rtc driver
Add rtc driver for Microchip RTC G1.

Signed-off-by: Farsin Nasar V A <farsin.nasarva@microchip.com>
2025-12-04 17:12:33 -05:00
farsin NASAR V A
2830be0cd5 dts: arm: microchip: add RTC node and binding for G1 IP
Add the device tree node and the binding file for
microchip RTC G1 IP.

Signed-off-by: farsin NASAR V A <farsin.nasarva@microchip.com>
2025-12-04 17:12:33 -05:00
Kevin Chan
bde681d27a drivers: dma: add UART async. logic
- Modified DMA configuration and logic for UART Async.

Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
2025-12-04 17:12:23 -05:00
Kevin Chan
162be31386 samples: drivers: uart: async_api: support PSC3 and PSE84
- add overlay files in order to run async_api app.

Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
2025-12-04 17:12:23 -05:00
Kevin Chan
531e4507a8 tests: drivers: uart: uart_async_api: support pse84 and psc3
- add overlay and .conf files in order to run uart_async_api app.

Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
2025-12-04 17:12:23 -05:00
Kevin Chan
203c655343 Drivers: Serial: Add PDL based UART Async. for PSE84 and PSC3
- add UART Async. driver code
- Remove references to cat1-uart-pdl from devicetree references

Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
2025-12-04 17:12:23 -05:00
John Batch
0fadfd211f boards: Infineon: Removing dts references to infineon,cat1-uart-pdl
Removing references to infineon,cat1-uart-pdl from device tree board
files.  The differentiation between PDL and UART based drivers is done
by a Kconfig option.  See discussion in this PR for context:

https://github.com/zephyrproject-rtos/zephyr/pull/98035

Signed-off-by: John Batch <john.batch@infineon.com>
2025-12-04 17:12:23 -05:00