Commit graph

136,983 commits

Author SHA1 Message Date
Qingsong Gou
2917cc90bc tests: drivers: build_all: add SF32LB dbi test
Add a SF32LB DBI test

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-13 14:08:12 -06:00
Qingsong Gou
60943ec684 drivers: mipi_dbi: add lcdc mipi-dbi driver for sf32lb
Add lcdc mipi-dbi driver for sf32lb platform

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-13 14:08:12 -06:00
Qingsong Gou
ec60b59eae dts: arm: sfili: sf32lb52x: add lcdc and mipi-dbi node
Add lcdc and mipi-dbi device for sf32lb platform

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-13 14:08:12 -06:00
Qingsong Gou
0d4640e71a dts: bindings: mipi-dbi: sf32lb: add sifli,sf32lb-lcdc-mipi-dbi
Add mipi-dbi device bingding for sf32lb platform

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-13 14:08:12 -06:00
Qingsong Gou
27c518ee6c dts: bindings: display: add sifli,sf32lb-lcdc
Add sifli,sf32lb-lcdc for sf32lb platform

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-13 14:08:12 -06:00
Ryan McClelland
6e227712d8 drivers: i3c: cdns: make idle timeout a kconfig
Rather than having a hardcoded timeout for entering idle, make it
a KConfig.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-01-13 14:07:26 -06:00
Andrei Smirnou
90abc8083d board: adi: eval_adin2111d1z
- Add ADIN2111D1Z board support
- Added documentation for eval_adin2111d1z
- Added regulator for the bypass relay

Co-authored-by: Andrei Smirnou <andrei.smirnou@analog.com>
Co-authored-by: Jules Rouillard <jules.rouillard@analog.com>
Signed-off-by: Andrei Smirnou <andrei.smirnou@analog.com>
2026-01-13 17:28:44 +01:00
Valerio Setti
c5dd4c7a0b net: lib: shell: make header file inclusion conditional
Include "websocket/websocket_internal.h" only when CONFIG_WEBSOCKET_CLIENT
is also enabled.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-13 17:28:29 +01:00
Valerio Setti
63cfa56bbb net: lib: http: http_server: replace usage of legacy Mbed TLS crypto
Use PSA Crypto API for SHA-1 computation instead of legacy Mbed TLS crypto.
The latter is going to be removed soon.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-13 17:28:29 +01:00
Valerio Setti
f331614bac net: lib: websocket: remove usage of legacy Mbed TLS crypto
Remove optional use of legacy Mbed TLS crypto in favor of the already
existing PSA Crypto API alternative. This is required in order to jump
to the next version of Mbed TLS (i.e. 4.0) where all this legacy crypto
support is no more available.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-13 17:28:29 +01:00
Andreas Huber
bb9616c0cd net: arp: Choose IP corresponding to the same network
If we have more than one IP on an interface we should choose the IP
corresponding to the same network as the target IP.

Signed-off-by: Andreas Huber <andreas.huber@sautergroup.com>
2026-01-13 17:28:16 +01:00
Sylvio Alves
f3deb7bed7 kernel: nothread: fix build when CONFIG_SYS_CLOCK_EXISTS=n
The k_timer API requires CONFIG_SYS_CLOCK_EXISTS to be enabled,
as timer.c is only compiled when this config is set. Guard the
timer-based k_sleep() implementation and fall back to the previous
busy-wait approach when no system clock exists.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-01-13 17:27:58 +01:00
Mathieu Choplain
517cd3e5c6 dts: arm: st: n6: fix reg property of NPU
The reg property on the NPU node indicated a base address of 0x580C0000 and
size of 4 KiB, neither of which are correct (in fact, this base address is
the one of the OTGPHYC2).

Set the reg property to the correct values: the NPU instance is mapped at
0x580E0000 and occupies 128 KiB of address space.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-13 17:27:23 +01:00
Ajay Neeli
1c6d0c0c2e MAINTAINERS: add neeliajay as Xilinx collaborator
Add neeliajay (Ajay Neeli) as a collaborator for "Xilinx Platforms"

Signed-off-by: Ajay Neeli <ajay.neeli@amd.com>
2026-01-13 17:27:07 +01:00
Sylvio Alves
8805de47b4 tests: arch: riscv: add PMP SoC regions test
Add test for PMP_SOC_REGION_DEFINE macro that allows SoCs to define
custom PMP regions via iterable sections.

The test verifies:
- Regions defined with PMP_SOC_REGION_DEFINE are programmed into PMP
  registers during z_riscv_pmp_init()
- SoC regions are placed in global PMP slots (first half of entries)
- STRUCT_SECTION_FOREACH correctly iterates over defined regions

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-01-13 17:26:48 +01:00
Sylvio Alves
b75d67fb1f soc: esp32c6: enable PMP and define SoC regions
Enable RISC-V PMP for ESP32-C6 and configure appropriate defaults:
- 16 PMP slots available on hardware
- Unlocked global entries for XIP flash execution
- MEM_ATTR subsystem for device tree memory regions

Define SoC-specific PMP regions:
- SoC ROM (0x40000000): libc functions, R+X
- IRAM text: interrupt handlers and critical code, R+X

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-01-13 17:26:48 +01:00
Sylvio Alves
52c9bd85ca soc: esp32c6: add userspace linker support
Add linker script support for CONFIG_USERSPACE:
- MPU alignment macros for PMP granularity
- User stacks section in noinit area
- Application shared memory partitions
- Kernel object sections (text, rom, data, priv-stacks)
- ROM region size symbol for PMP configuration

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-01-13 17:26:48 +01:00
Sylvio Alves
78fddf083a dts: esp32c6: add SoC ROM memory region
Add device tree node for ESP32-C6 SoC ROM at 0x40000000.
This 320KB ROM contains libc and utility functions used by
the application. PMP protection is configured separately
via PMP_SOC_REGION_DEFINE in pmp_regions.c.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-01-13 17:26:48 +01:00
Sylvio Alves
b05332abee arch: riscv: pmp: add SoC-specific region support
Add infrastructure for SoCs to define additional PMP regions
that need protection beyond the standard ROM region. This uses
iterable sections to collect region definitions at link time.

The PMP_SOC_REGION_DEFINE macro allows SoCs to register memory
regions with specific permissions. These regions become global
PMP entries shared between M-mode and U-mode.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-01-13 17:26:48 +01:00
Ibrahim Abdalkader
00bf0915d6 llext: Skip MPU region alignment if userspace is disabled.
llext aligns and rounds up memory regions to satisfy MPU requirements,
which can waste significant memory by relocating read-only regions,
with power-of-two alignment on some architectures. However, these
MPU-aligned regions are never actually used by the MPU unless
userspace (CONFIG_USERSPACE) is enabled.

Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
2026-01-13 17:26:30 +01:00
Fin Maaß
35f2cd6353 doc: migration-guide: 4.4: mention litex,gpio change
mention litex,gpio change.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-13 17:26:08 +01:00
Fin Maaß
075f2e7361 drivers: gpio: litex: rework litex gpio driver
rework litex gpio driver.
It is now also supported to change direction.
now uses the reg names to detect if what modes the gpio
controller supports.
use the reg names directly from litex.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-13 17:26:08 +01:00
Fin Maaß
1ad13962ee tests: dts: add for DT_ANY/ALL_INST_REG_HAS_NAME_STATUS_OKAY
add test for DT_ANY_INST_REG_HAS_NAME_STATUS_OKAY
and DT_ALL_INST_REG_HAS_NAME_STATUS_OKAY macros.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-13 17:26:08 +01:00
Fin Maaß
6f9e5bed93 devicetree: add DT_ANY/ALL_INST for reg names
add DT_ANY_INST_REG_HAS_NAME_STATUS_OKAY
and DT_ALL_INST_REG_HAS_NAME_STATUS_OKAY
to check if any instance has a register with a specific
name.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-13 17:26:08 +01:00
Guðni Már Gilbert
6bb7a1b54b scripts: twister: Add full_name to board.yml
Fixes regression introduced by e45ac11aeb9b874038a2925c2588b94100aa28cc

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
2026-01-13 09:33:35 -05:00
Henrik Brix Andersen
7440bca13d drivers: pwm: shell: add command for getting cycles per second
Add PWM shell command for getting the number of cycles per second for a
given PWM controller/channel.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-01-13 15:21:21 +01:00
Benedek Kupper
12cd3703eb drivers: adc: stm32: only set CR2/DMA bit once on STM32F1
As reported in #101190, running adc_sequence sample on stm32f103c8 with 8
ADC channels causes all subsequent conversions after the first to be one
channel shifted. This is because writing to CR2 with ADON=1 and no other
changes triggers a conversion (which is why the bug happens on all
but the first sequence). Adding this check will ensure that CR2 is only
written when the DMA bit changes.

Signed-off-by: Benedek Kupper <kupper.benedek@gmail.com>
2026-01-13 15:21:05 +01:00
Lukasz Majewski
6628f16231 samples: net: doc: Add information to build and test the T1S driver
This commit provides information regarding building and executing stress
tests for LAN8651 based 10BASE T1S ethernet connection.

The LAN8651 is connected to nucleo_g474re board.

Signed-off-by: Lukasz Majewski <lukma@nabladev.com>
2026-01-13 15:20:53 +01:00
Lukasz Majewski
fbeb78fe6b net: samples: dts: spi: Enable LAN8651 (SPI) for T1S (echo_server)
This commit provides device tree description of the LAN8651 T1S
device to work with echo_server sample program.

Signed-off-by: Lukasz Majewski <lukma@nabladev.com>
2026-01-13 15:20:53 +01:00
Lukasz Majewski
b86999a7b0 net: samples: dts: spi: Enable LAN8651 (SPI) for T1S (zperf)
This commit provides device tree description of the LAN8651
T1S device to work with zperf performance test program.

Signed-off-by: Lukasz Majewski <lukma@nabladev.com>
2026-01-13 15:20:53 +01:00
Lukasz Majewski
65e4958f10 net: samples: echo_server: Add configuration for T1S - nucleo_g474re
This patch provides configuration to run T1S (OA_TC6) driver with
echo_server test program.

Signed-off-by: Lukasz Majewski <lukma@nabladev.com>
2026-01-13 15:20:53 +01:00
Lukasz Majewski
c2a3803b0f net: samples: zperf: Add configuration for T1S - nucleo_g474re
This patch provides configuration to run T1S (OA_TC6) driver with
zperf test program.

Signed-off-by: Lukasz Majewski <lukma@nabladev.com>
2026-01-13 15:20:53 +01:00
Pieter De Gendt
96a4d92c52 doc: releases: migration-guide-4.4: Add compatibles with MAC config support
Add ethernet driver compatibles to the migration guide that have support
for MAC address configuration.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-13 15:20:37 +01:00
Pieter De Gendt
9adc5bda07 doc: releases: migration-guide-4.4: Ethernet MAC config compatibles
Replace file references with compatibles, for users to refer to the
migration guide if it has any impact on out-of-tree boards.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-13 15:20:37 +01:00
Fin Maaß
2b6e2874c4 net: shell: explicitly check for NULL
explicitly check for NULL

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-13 13:36:20 +01:00
Fin Maaß
67c6ec66b5 net: shell: set constant array index directly
set constant array index directly.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-13 13:36:20 +01:00
Fin Maaß
06d257d41b net: shell: follow rule 78
Follow coding guidelines rule 78:

A full expression containing an increment (++) or decrement (–) operator
should have no other potential side effects other than that caused by the
increment or decrement operator

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-13 13:36:20 +01:00
Michał Stasiak
a1ccb9647f drivers: nrf: use NRF_ERRATA_DYNAMIC_CHECK macros
It is now the proper way of checking whether
an anomaly workaround should be performed.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2026-01-13 13:35:39 +01:00
Tomasz Moń
6fc1cd52af nrf_usbd_common: use NRF_ERRATA_DYNAMIC_CHECK macros
Upcoming MDK will make nrf52 errata check functions exist only for
nRF52 and therefore the code will no longer compile for nRF5340. Replace
nrf52 errata checks with new NRF_ERRATA_DYNAMIC_CHECK().

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2026-01-13 13:35:25 +01:00
Tim Pambor
427f872a56 samples: net: sockets: http_server: fix buffer undeclared error
Fix regression introduced in commit ddaeb13 which removed the
'buffer' function parameter from the dynamic endpoint callback
function signature but did not update the http_server sample
accordingly.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-01-13 13:35:07 +01:00
Andrzej Głąbek
ad40aa7f2b MAINTAINERS: remove anangl as I2S maintainer
I can no longer act as a maintainer in this area. Degrade my role
to collaborator.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2026-01-13 13:34:50 +01:00
Gaetan Perrot
ec85cddd15 samples: fs: fs_sample: fix typo in board overlay files
Fix a typo in several filesystem sample board overlay files where
'parition' was used instead of 'partition'.

This is a spelling-only change with no functional impact.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-13 13:34:38 +01:00
Joel Key
dd0dd16a81 MAINTAINER: Add jkey-eng as Safety Collaborator
Add myself as a Safety Collaborator

Signed-off-by: Joel Key <joel@keyengineeringllc.com>
2026-01-13 13:34:16 +01:00
Robert Lubos
735f16f12f samples: net: mdns_responder: Verify accept() result in echo server
The mdns_responder sample has a simple TCP echo server running, however
the accept() function errors were ignored, making the server defunct in
case server socket started to report errors (for example when network
went down).

Update the sample to restart the echo server in case of accept() errors
to make the sample more reliable.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-13 13:33:49 +01:00
Robert Lubos
1a2d9f7b8f net: sockets: Report an unrelying errors from accept()
If the underlying listening TCP context reported an error, it's no
longer usable, therefore accept() call for such a socket should report
an error as well, otherwise it may block indefinitely.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-13 13:33:49 +01:00
Robert Lubos
913fae5169 net: tcp: Make sure TCP context is dereferenced only once on network down
In case network interface goes down, all underlying TCP contexts are
being dereferenced, however they are not released until application
dereferences them as well (i.e. closed the socket). If the application
does not do so however timely, and network interface goes down again,
the TCP context would still be present on the active contexts list and
could've been dereferenced for the second time.

Fix this by checking the context state before dereferencing it on the
stack behalf. Non-listening TCP context are being set to CLOSED state
upon dereferencing.  For the listening contexts, the TCP context has
only one ref from the application side, so use the `accept_cb` pointer
value as an indicator that the accept callback, indicating an error,
has already been called for the context.

Additionally, add a mutex lock when releasing listening context on
network down even, to avoid potential races with yet unprocessed
incoming packets.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-13 13:33:49 +01:00
Sam Friedman
8ba115c2c5 net: coap_client: remove unused parameter in static function
75ef6392 removed the only call to coap_client_init_request() where
reconstruct==true. All remaining calls have reconstruct==false.
This commit removes the parameter.

Signed-off-by: Sam Friedman <sam@golioth.io>
2026-01-13 13:33:35 +01:00
Maochen Wang
399a3766ee manifest: update hal_nxp FW for RW61x/IW612/IW610/IW416
Remove unused IW612 part.
update IW610 FW version to 5.p86
update RW612 FW version to 6.p50
update IW61x FW version to p27.8
update IW416 FW version to p153.8

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2026-01-13 13:33:20 +01:00
Kai Vehmanen
72d06609af drivers: dai: intel: hda: implement get_properties_copy
Implement get_properties_copy(). This allows the driver to be used
from user-space threads.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2026-01-13 13:32:58 +01:00
Kai Vehmanen
43e45a2b50 drivers: dai: intel: dmic: implement get_properties_copy
Implement get_properties_copy(). This allows the driver to be used
from user-space threads.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2026-01-13 13:32:58 +01:00