Commit graph

136,983 commits

Author SHA1 Message Date
Miika Karanki
c7fb653046 serial: uart_native_pty: send UART_RX_DISABLED event
When uart_rx_disable is called, or rx gets otherwise disabled,
UART_RX_DISABLED event should be emitted.

Signed-off-by: Miika Karanki <miika.karanki@vaisala.com>
2026-01-22 12:55:41 -05:00
Maciej Perkowski
0455416c52 maintainers: Add fundakol as twister collaborator
Lukasz Fundakowski is a python expert with an interest in
testing frameworks and coding standards. He is a valuable
reviewer with attention to details. He had a major impact on
design and implementation of the pytest plugin for twister.

Signed-off-by: Maciej Perkowski <maciej.perkowski@nordicsemi.no>
2026-01-22 12:55:31 -05:00
Scott Worley
df13dcc560 dts: arm: microchip: mec: Fix MEC1653B code sram base address
Microchip MEC1653B has 416KB of SRAM. ARM ICCM SRAM is 356KB
starting at 0xC0000. ARM DCCM SRAM is 64KB starting at 0x118000.
Chip DTS file had incorrect ICCM starting address.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-01-22 12:55:22 -05:00
Muhammad Waleed Badar
1350164d67 drivers: uart: bcm2711: fix poll_in
uart_bcm2711_poll_in() incorrectly returned the received byte
instead of writing it to the provided buffer.

Update the implementation to store the character in *c and
return 0 on success, matching the UART poll_in API.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-01-22 12:55:13 -05:00
Flavio Ceolin
59a57722ae pm: Fix wrong type promotion
In pm_system_suspend there is a possible invalid type promotion
in sys_clock_set_timeout(MAX(0, ticks - exit_latency_ticks), true);

ticks is int32_t and exit_latency_ticks is uint32_t consequently
ticks is promoted to uint32_t resulting in a possible underflow and
setting a wrong value in sys_clock_set_timeout().

Fixes #100005
Coverity CID: 535628

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2026-01-22 12:54:52 -05:00
Johann Fischer
53e6b7d543 MAINTAINERS: remove jfischer-no from display collaborators
I do not have any plans in the near future to collaborate in this area.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2026-01-22 12:54:38 -05:00
Jamie McCrae
195a3ff63a tests: dfu: img_util: Disable variant image for slot 1 build
Fixes an issue whereby a variant of the slot 1 image is built...
which would occupy the same slot that the test is building for,
therefore disable using the new experimental variant image Kconfig
in this configuration

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-01-22 12:54:28 -05:00
Adrian Bonislawski
2d0139aa22 MAINTAINERS: add myself as collaborator to Intel Xtensa platforms
Intel Platforms (Xtensa)
Drivers: DAI

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
2026-01-22 12:54:18 -05:00
Benjamin Cabé
0a8564a9b9 dts: auxdisplay: add auxdisplay_0 label to sparkfun,serlcd example
This is technically a workaround for a limitation in the Pygments DTS
lexer causing the highlighting to break when rendering this example
in the documentation, but this is also an excuse to plug the label that
is used in the official auxdisplay sample.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-01-22 09:07:48 -08:00
Grzegorz Chwierut
2d7b42ddc5 tests: boot: mcuboot_direct_xip: escape plus signs in regex patterns
The plus signs in version strings need to be escaped with double
backslashes when used in regex patterns for the test harness.
This ensures proper pattern matching during test execution.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2026-01-22 14:14:48 +00:00
Mathieu Choplain
4228409128 drivers: sensor: stm32_temp: read calibration data once during init
Instead of reading calibration data (device-unique, but never changing!)
as part of each conversion, perform the read once and cache the value.

This notably avoids frequently an ICACHE disable/enable cycle on STM32H5,
which is a somewhat slow operation.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-22 14:11:20 +00:00
Mathieu Choplain
bc9efec896 drivers: sensor: stm32_temp: use union as calibration info type
Using a union enables accessing the calibration data using member names
instead of an array index, which makes the code more readable.

As long as the layout of struct { T m1; ... T mN; } and array A[N] is the
same (implementation-specific?), usage of the union type as done should
be Standard-compliant: accessing through either member of the union will
use an lvalue with compatible type to the same underlying object, which
is one of the allowed aliasing situations listed in §6.5.7 of N1548.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-22 14:11:20 +00:00
Mathieu Choplain
32260932f6 drivers: sensor: stm32_temp: move constants to instance configuration
Various fields were stored in the instance data despite being initialized
at compile-time to a constant value.
Move these fields to the instance configuration instead.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-22 14:11:20 +00:00
Mathieu Choplain
c9c23bef54 drivers: sensor: stm32_temp: use CAL_RES everywhere
The raw "12" constant was used in a place where the "CAL_RES" define should
have been used instead.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-22 14:11:20 +00:00
Håkon Amundsen
155d22a117 soc: kconfig: gen_uicr: elaborate on setting ERASEPROTECT
Provide some information on how to find the command that is used for
generating the UICR hex file so that its easier for users to
know what command to use.

Signed-off-by: Håkon Amundsen <haakon.amundsen@nordicsemi.no>
2026-01-22 14:10:18 +00:00
Lingao Meng
d845a2230e fs: nvs: prevent ATE writes at sector boundary
In NVS, allocation table entries (ATEs) are written backwards within
each sector. Under delete-only or delete-heavy workloads, a sector may
contain only delete ATEs, causing the ATE write pointer to approach the
sector boundary.

Without an explicit boundary check, ATE writes may occur at offset 0 of
the current sector, allowing the write pointer to underflow into the
previous sector and corrupt unrelated data or metadata.

Fix this by disallowing ATE writes when the write pointer is at the
sector boundary. This ensures that ATE writes remain confined to the
current sector and prevents pointer underflow across sectors.

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
2026-01-22 14:09:23 +00:00
Vinayak Kariappa Chettimada
73c182509c Bluetooth: Controller: LLL prepare at margin Kconfig
Introduce Kconfig option to enfore LLL prepare at margin
irrespective of whether there is an overlapping state/role.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2026-01-22 14:09:11 +00:00
Vinayak Kariappa Chettimada
5fe53aaa84 Bluetooth: Controller: Use PPI/DPPI to start s/w switch timer
Use PPI/DPPI to start s/w switch timer to reduce current
consumption.

Explicitly starting the s/w switch timer at prepare meant
current being consumed in the prepare margin duration. Use
of PPI/DPPI ensure s/w switch timer is start when event
timer is started after the prepare margin.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2026-01-22 14:09:11 +00:00
Vinayak Kariappa Chettimada
0b1b099196 Bluetooth: Controller: Fix PAST sync_offset_us calculation
Fix the missing use of remainder value in the sync_offset_us
calculations. Also, Periodic Sync reception is relative to
Peripheral event hence ticks_anchor does not require the
ticker margin and event jitter to be subtracted.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2026-01-22 14:09:11 +00:00
Peter van der Perk
40d79b1f64 sensor: bmm150: fix init when no trigger is selected
When no trigger was chosen case statement fell through to
default which causes the return code to -ENOTSUPP

Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
2026-01-22 14:08:56 +00:00
Gaetan Perrot
27be4443fc drivers: clock_control: litex: remove redundant initialization
Local variables are initialized but always overwritten before being
read or return.

Drop the redundant initialization.

No functional change intended.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-22 14:08:19 +00:00
Gaetan Perrot
49de45225d drivers: clock_control: litex: make litex_clk_dts_clkouts_read void
litex_clk_dts_clkouts_read() never reports errors and always returns
0.
The error check at the call site is therefore dead code.

Make the function void and drop the unused error handling.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-22 14:08:19 +00:00
Gatien Chevallier
40c98c82d7 boards: st: stm32n6570_dk: read the MAC address from the OTP fuses
On STM32N6x SoCs, secrets and persistent information such as Ethernet
MAC addresses are stored in the BSEC OTP fuses. Therefore, default enable
OTP support if NET_L2_ETHERNET and NVMEM are enabled so that the MAC
address can be read from the BSEC OTP fuses through the NVMEM API.

Use the "mac_address0" NVMEM cell to be able to read the ethernet MAC
address from the OTP fuses.

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
2026-01-22 14:07:37 +00:00
Gatien Chevallier
28a988cc10 dts: arm: st: n6: Add BSEC node for OTP handling
The STM32N6 has a BSEC peripheral for the OTP management, add it to the
SoC device tree file. Moreover, there are 4 OTP words dedicated for
Ethernet MAC addresses, describe them in the NVMEM layout.

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
2026-01-22 14:07:37 +00:00
Gatien Chevallier
84dc327084 drivers: ethernet: stm32: handle MAC address with net_eth_mac_load()
This new API handles if the MAC address should be fetched from NVMEM,
is static or be randomly generated. Use it so that the driver can
fetch the MAC address from the OTP fuses, when possible.

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
2026-01-22 14:07:37 +00:00
Gatien Chevallier
ff864b3cd3 drivers: otp: add stm32 BSEC driver
Introduce the Boot and SECurity(BSEC) control driver. The BSEC
peripheral manages the accesses to an embedded one time
programmable(OTP) array of fuses. Those fuses are used to store
on-chip, non-volatile data like boot and security parameters (e.g:
secret keys, non-volatile counters, etc...).

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
2026-01-22 14:07:37 +00:00
Nicola Vetrini
fc7fae6090 sca: ECLAIR: update configuration for ECLAIR 3.14.0
This is the version of the tool that Zephyr infrastructure uses,
and the configuration needs to be adjusted accordingly.

Setting *_ALIASES variables is not necessary anymore.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
2026-01-22 14:03:17 +00:00
Valerio Setti
647f68cb2c doc: migration-guide: add notes for changes in flash_map's integrity check
Add notes about changes in flash_map's Kconfig for what concerns the
crypto libraries used for integrity check.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-22 14:03:06 +00:00
Valerio Setti
484fb7d7fc tests: storage: flash_map: rename conf file for integrity check
Since now there is a single backend for crypto, i.e. the PSA Crypto API
one, it's better to rename corresponding test case and related
configuration file so that instead of mentioning "psa" they mention
"integrity-check".

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-22 14:03:06 +00:00
Valerio Setti
74740148b4 tests: storage: flash_map: remove testing of legacy Mbed TLS crypto
Following the removal of legacy Mbed TLS crypto for SHA-256 in the
subsys, this commit updates the related sample. "overlay-mbedtls.conf" is
removed as no more necessary and the corresponding test case is removed
from "testcase.yaml". "overlay-psa.conf" is updated removing unnecessary
Kconfig selections.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-22 14:03:06 +00:00
Valerio Setti
77d603a5e0 storage: flash_map: remove legacy Mbed TLS crypto for integrity check
Remove Kconfig and code related to legacy Mbed TLS crypto for SHA-256.
This was used for the integrity check functionality as alternative to
PSA Crypto API. This support was already deprecated and now it's removed
in order to prepare for the next Mbed TLS 4.0 release where legacy crypto
won't be available anymore.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-22 14:03:06 +00:00
Khoa Tran
ca8e82532a drivers: rtc: Add update to use with new battery backup inplementation
Update Renesas RTC driver to use with the new battery backup inplementation

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2026-01-22 14:02:40 +00:00
Khoa Tran
caf40f2581 drivers: misc: update Renesas RA ethos_u init flow
Remove the NPU power domain enabling inside ethos_u code due to it
has already been done by soc_reset_hooks()

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2026-01-22 14:02:40 +00:00
Khoa Tran
0a37e1f43f drivers: display: update GLCDC device init flow
Remove power domain on for GLCDC controller inside driver code
due to it has already been done by soc_reset_hooks()

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2026-01-22 14:02:40 +00:00
The Nguyen
cb47fb2706 drivers: clock_control: remove clock early init for Renesas RA
Remove the root clock control early initialization because it has
already been done in the soc_reset_hooks()

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2026-01-22 14:02:40 +00:00
Khoa Tran
d8c1333295 boards: renesas: Disable sub-clock for boards lacking a crystal
This commit disables the sub-clock node for boards without a
populated onboard crystal.

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2026-01-22 14:02:40 +00:00
The Nguyen
9dd9132688 soc: renesas: ra: soc init hooks refactor
This commit updates the source files for Renesas RA initialization:
- The SoC reset/init now uses generic hooks from the
"soc/renesas/ra/common" instead of SoC-specific initialization hooks.
- Add soc_reset_hooks() to perform the early reset code.
- Battery-backup domain initialization has been removed from
soc_early_init() and reallocated to soc_reset_hooks().

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2026-01-22 14:02:40 +00:00
The Nguyen
0923d2cedf manifest: update revision of hal_renesas
Update hal_renesas revision to add BSP code support

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2026-01-22 14:02:40 +00:00
Lucien Zhao
f63b15ddd0 tests: drivers: pwm: enable pwm_api case by using flexio0
- enable pwm_api case by using flexio function
- record platform information in testcase.yaml

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-01-22 14:02:24 +00:00
Lucien Zhao
dd8e364863 boards: nxp: frdm_mcxe247: config flexio0 pinmux
- configure flexio pwm default pinmux

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-01-22 14:02:24 +00:00
Camille BAUD
7ac12165dd boards: bflb: Add ADC entry to boards with marked 'ADC' pins
Adds adc entry so driver is built.

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-22 14:01:57 +00:00
Camille BAUD
b8b2d2ed21 samples: adc_dt: Add some bflb boards
Add ADC sample overlays

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-22 14:01:57 +00:00
Camille BAUD
bddaa08afd drivers: adc: add bflb adc driver
Adds a driver for the GPADC

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-22 14:01:57 +00:00
Camille BAUD
33196ff3cd dts: adc: add bindings for bflb adc
Adds the bindings for the GPADC

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-22 14:01:57 +00:00
TOKITA Hiroshi
81fd57078d MAINTAINERS: Add area for QNX Hypervisor
Add area for supporting QNX Hypervisor Virtual Machine.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2026-01-22 08:41:12 +00:00
Yangbo Lu
b2ac268a66 drivers: ethernet: dsa: make dsa_tag_netc driver native
The DSA tag protocol driver should be native for packet
tagging and untagging. There is possibility other vendors/IPs
use it. So, just defined DSA tag structures in header file
instead of using hal header file.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-22 08:41:00 +00:00
Yangbo Lu
05c1fecb5b drivers: ethernet: dsa: move dsa_tag_netc driver out of subsys
Moved dsa_tag_netc driver out of subsys. Maintained it in
drivers/ethernet/dsa as vendor driver.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-22 08:41:00 +00:00
Yangbo Lu
cd5bc5caa5 drivers: ethernet: dsa: improve DSA_NXP_NETC_GCL_LEN Kconfig option
Renamed DSA_NXP_NETC_GCL_LEN to DSA_NXP_IMX_NETC_GCL_LEN for
naming consistency, and wrapped it in DSA_DRIVERS condition.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-22 08:41:00 +00:00
Yangbo Lu
1b14cb18a2 net: dsa: support dsa protocol registering with iterable section
Supported dsa protocol registering with iterable section.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-22 08:41:00 +00:00
Yangbo Lu
d9d46c0ce3 net: dsa: make dsa_tag.h as common header file
Moved dsa_tag.h to include folder as common header file.
And we will support iterable section for vendor dsa tag
protocol drivers registering.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-22 08:41:00 +00:00