Commit graph

126,787 commits

Author SHA1 Message Date
Benjamin Cabé
b1c7f9c126 scripts: do not install/recommend vulnerable python packages
requests < 2.32.4 is subject to GHSA-9hjg-9r4m-mvj7
pyyaml < 5.4 is subject to GHSA-8q59-q68h-6hv4
pyyaml < 5.1 is subject to GHSA-rprw-h62v-c2w7
protobuf < 5.29.5 is subject to GHSA-8qvm-5x2c-j2w7

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-12 14:23:18 -04:00
Benjamin Cabé
37f1c2e279 doc: refresh pinned requirements.txt file
Dependabot automatic pull requests keep wanting to downgrade Sphinx to
8.1.3 so do a manual update of the pinned requirements.txt file that
does not do that (and yet pulls up-to-date versions of the other
dependencies) until we figure out what is wrong.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-12 14:23:18 -04:00
Pete Johanson
f51ba58dfd drivers: serial: Fix TX of single byte on MAX32.
MAX32 UART's "almost empty" fires when the FIFO gets down to one byte, but
when sending just one byte, no interrupt is raised, resulting in stalled
TX. Use a timer to ensure the ISR is invoked and TX processing continues in
that scenario.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
2025-09-12 14:22:55 -04:00
Pete Johanson
40b2113a42 tests: drivers: uart: Add uart interrupt API test
Add a specific interrupt API test, that tests sending different size
payloads with the interrupt API to try to catch edge cases.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
2025-09-12 14:22:55 -04:00
Miguel Gazquez
915b34e4ae scripts: west_commands: fix typo in west sdk install help message
The help message for the option '-d'/'--instal-dir' of 'west sdk
install' incorrectly use '-b' in its help message.
Fix the typo by using '-d'.

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
2025-09-12 14:22:20 -04:00
Riadh Ghaddab
a4f5d9fb31 drivers: flash: nrf_rram: add support for RRAM throttling
Some applications need to throttle RRAM writes to handle peak current
management.
Add CONFIG_NRF_RRAM_THROTTLING_DATA_BLOCK which defines the maximum
chunk length that can be written at once.
Add CONFIG_NRF_RRAM_THROTTLING_DELAY which configures the sleep delay in
microseconds after each write.

Signed-off-by: Riadh Ghaddab <riadh.ghaddab@nordicsemi.no>
2025-09-12 18:32:23 +02:00
Marek Maškarinec
64984bb618 soc: st: Add stm32l083xx
Add stm32l083xx SoC variants that are similar to stm32l073xx with an added
AES accelerator.

Signed-off-by: Marek Maškarinec <marek.maskarinec@hardwario.com>
2025-09-12 18:31:55 +02:00
Georgios Vasilakis
53b2802fff net: websocket: Allow using PSA APIs to calculate SHA1
The websocket used mbedtls functions to calculate the
SHA1 needed. Update the code to use PSA crypto calls instead
when the configuration CONFIG_MBEDTLS_PSA_CRYPTO_CLIENT
is enabled.

This can be useful for applications which use TF-M
since it only provides PSA crypto APIs.

Also check the error code from the mbedtls_sha1
call since it can fail and it was not checked before.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
2025-09-12 18:31:04 +02:00
Andre Heinemans
45abb7215c drivers: nxp: flash_mcux_flexspi: fix id check on octal spi
The jedec-id cannot be read after flash device is set to octal mode.
Fixed by moving the jedec-id comparison to
flash_flexspi_nor_check_jedec() which already reads the jedec-id when
flash device is still in single spi mode.

Signed-off-by: Andre Heinemans <andre.heinemans@nxp.com>
2025-09-12 18:30:44 +02:00
Adib Taraben
27711e69d3 eth_nxp_enet_qos_mac: adapt MAC configuration to actual PHY link speed
This adjust the MAC CONFIGURATION register settings to 10MBit/s if needed.
The reduction is needed for 10MBit only PHYs.

Signed-off-by: Adib Taraben <theadib@gmail.com>
2025-09-12 18:30:30 +02:00
Kyle Micallef Bonnici
2d22884f52 devicetree: format files in boards
Applying dts-linter results for format files in boards

Signed-off-by: Kyle Micallef Bonnici <kylebonnici@hotmail.com>
2025-09-12 18:29:00 +02:00
Armin Kessler
85ad69d491 drivers: video: esp32: add selection api
Forward get/set selection to the camera source and update the driver's
video_format on set so buffer sizing and streaming follow the selected
region.

Signed-off-by: Armin Kessler <ake@espros.com>
2025-09-12 14:03:45 +01:00
Vit Stanicek
84373c4c64 soc: mimxrt685s/hifi4: Fix HW cycle count
Change hardware cycle count (CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC) to 594
MHz. Move that value to the SoC layer's DT.

Validated with the amp_blinky example - the period of the blinking LED
is exactly 2 seconds, like was programmed.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-09-12 13:21:24 +02:00
Marek Matej
3476212f72 soc: espressif: esp32h2: remove kernel include
Remove unnecessary include from ESP32-H2 SoC sources.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-09-12 13:21:02 +02:00
Tim Lin
24de607380 drivers/i2c: it8xxx2: Allow I2C target entry power saving mode
Add I2C_TARGET_ALLOW_POWER_SAVING config. Enable this config makes I2C
target device can enter Doze/Deep doze states while the bus is idle.
Ongoing transfers will block low-power entry until they are completed,
ensuring correct communication while still reducing overall power
consumption.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-09-12 13:20:51 +02:00
Fin Maaß
4b8a19010a riscv: linker: move bss and noinit to end
Move bss and noinit sections to the end to reduce
binary size., as they will only be removed when they
are at the end.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-09-12 13:20:21 +02:00
Jamie McCrae
f624525f30 kconfig: Load Kconfig env file better
Loads this file in a better way that means samples and modules
should not have to source the file before referencing Kconfig
module path variables

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-09-12 13:19:56 +02:00
Jamie McCrae
7e6013c400 scripts: requirements: Add python-dotenv
This is needed for any Kconfig processing

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-09-12 13:19:56 +02:00
Yangbo Lu
5aaf69e145 net: ethernet: make inclusion relation clear for DSA and Ethernet headers
DSA is part of Ethernet and will utilize more Ethernet definitions for
more features support. So, it's proper to let DSA header include
Ethernet header with moving some DSA definiton from DSA header to
Ethernet header and adding DSA header including in c files using DSA
definition.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-09-12 13:19:41 +02:00
Yangbo Lu
0501be8090 net: ethernet: use void pointer for dsa switch context
In ethernet_context structure, it just needs a void pointer
for dsa switch context.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-09-12 13:19:41 +02:00
Emil Gydesen
e0c5c277a5 Bluetooth: PACS: Improve handling of notify on reconnect
When we reconnect to a bonded device we always attempted to
send the changed PACS notifications, regardless of
whether the remote device has subscribed to them or not.

This resulted in a lot of failed attempts to send
notifications when
CONFIG_BT_GATT_ENFORCE_SUBSCRIPTION is enabled (which it is
by default).

Ideally we would not set the flags for devices that have not
subscribed, but since we cannot call bt_gatt_is_subscribed for
non-connected devices, we need to do this when the notify_cb
is called.

It would be possible to use BT_GATT_CCC_MANAGED instead
of BT_AUDIO_CCC to keep track of the writes for each client,
but that would be a minor optimization which would require
significant rework and additions to PACS. The current
solution is inspired by the implementation used in has.c

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-12 13:19:18 +02:00
Jamie McCrae
b6e09135cb boards: nordic: nrf54lm20dk: Add aliases for MCUboot button/LED
Adds aliases so that these can be used by MCUboot

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-09-12 13:18:45 +02:00
Fin Maaß
d2988fc91f drivers: serial: litex: trivial changes
some trivial changes

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-09-12 13:18:30 +02:00
Fin Maaß
cf3701ccad drivers: serial: litex: only clear rx pending if needed
only clear rx pending if needed

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-09-12 13:18:30 +02:00
Fin Maaß
b97a0b174a drivers: serial: litex: fix set pending in uart_litex_fifo_fill function
fix set pending in uart_litex_fifo_fill function

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-09-12 13:18:30 +02:00
Fin Maaß
d245529329 drivers: serial: litex: remove unneeded soft irq
remove unneeded soft irq, as disabeled irqs
will still be registered, but just not propagated
to the cpu until it is enabled again.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-09-12 13:18:30 +02:00
Al Semjonovs
911b3da139 kernel: Clean-up lingering code coverage exclusion flag
Remove LCOV_EXCL_STOP flag as LCOV_EXCL_START was removed in a previous
commit.  This causes a gcov compilation error.

Signed-off-by: Al Semjonovs <asemjonovs@google.com>
2025-09-12 08:21:21 +01:00
Philipp Finke
8a831150f0 net: sockets: socket_service: Fixed issue that prevented reconfiguration
Once running, a socket service could not be reconfigured (i.e. changing
file descriptors and/or events to be polled). This was due to an wrong
check at the end of the thread main loop of socket_service_thread that
evaluated to false as variable ret is zero if trigger_work(), which is
called previously for all returned events, returns successfully.

Signed-off-by: Philipp Finke <philipp_finke@gmx.de>
2025-09-12 08:20:18 +01:00
Thomas Stranger
de42b49336 dts: arm: st: stm32c0: add stm32c051
Add dts for stm32c051.
STM32C051 is just an STM32c071 w/o USB and different memory configuration.
Therefore STM32C091 can directly include STM32C051 and no longer needs
to delete the usb nodes.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2025-09-12 08:20:07 +01:00
Thomas Stranger
0414683260 soc: st: stm32: add stm32c051 support
Add STM32C051 to the STM32C0 series

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2025-09-12 08:20:07 +01:00
Ashirwad Paswan
fb6673ace0 drivers: bbram: stm32: added note for rtc enabling
Added a note to enable rtc node if the bbram node
 is enabled

Signed-off-by: Ashirwad Paswan <ashi06712@gmail.com>
2025-09-12 08:19:47 +01:00
Flavio Ceolin
902a9269b4 sw_isr_table: Remove unused macro parameter
irq is not used by _Z_ISR_TABLE_ENTRY and
_Z_ISR_DIRECT_TABLE_ENTRY. Just remove it.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-09-12 08:19:36 +01:00
Samuel Coleman
8cc80069a7 drivers: serial: stm32: expand DMAT errata test.
I manually checked the errata sheets for all STM32Hxx/STM32Uxx parts to
confirm the defect's presence or absence. It appears to have been resolved
in silicon on newer parts (e.g., STM32U3xx family), so hopefully this test
will not need grow further (knock on wood).

Co-authored-by: Nicolas Zuluaga <nicolas.zuluaga@rbr-global.com>
Signed-off-by: Samuel Coleman <samuel.coleman@rbr-global.com>
2025-09-12 08:19:25 +01:00
Mark Wang
71ec12d6c0 bluetooth: avdtp: implement the avdtp fragmentation and reassembly
Define BT_AVDTP_SIGNAL_SDU_MAX Kconfig item to limit the max avdtp signal
SDU size, then use avdtp self defined net buf pool to prepare data. Use
default acl_tx_pool pool do to the fragmentation.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-09-12 08:19:16 +01:00
Daniel DeGrasse
1866e00fb6 scripts: west_commands: openocd: run gdb in batch mode for RTT
Run GDB in batch mode when using RTT, so that pagination is never
enabled. This fixes RTT support when using terminals with a very small
row count.

Fixes #92417

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-09-12 08:19:05 +01:00
Benjamin Cabé
9f181b6711 doc: _scripts: ensure twister.yaml file is considered in board catalog
Boards may use twister.yaml file to define Twister platforms, so
board catalog should also parse them.

Fixes: zephyrproject-rtos/zephyr#95721.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-11 18:10:21 +01:00
Yuval Peress
24ca0fbb76 cpp: Support C mocked __atomic_compare_exchange_*
The builtin functions __atomic_compare_exchange_* are missing when
CONFIG_ATOMIC_OPERATIONS_C is set. Add them and verify they build/work
as expected.

Signed-off-by: Yuval Peress <peress@google.com>
2025-09-11 18:10:15 +01:00
Mahesh Mahadevan
db576bad6c modules: hal_nxp: mcux: Fix build errors for non-secure build
Multiple definition errors seen when using the non-secure build

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-09-11 18:10:01 +01:00
Emil Gydesen
dbdf1aacc0 samples: Bluetooth: BAP: Source: Reverse in/out terminology
In USB "in" refers to data going from device to host,
and "out" refers to data going from host to device.

From a BT perspective "usb_out" then refers to the data
we receive from the host, to be sent over BT, so the "out"
terminology still works for that.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-11 18:09:52 +01:00
Emil Gydesen
3db5c6f1d1 samples: Bluetooth: BAP: Sink: Reverse in/out terminology
In USB "in" refers to data going from device to host,
and "out" refers to data going from host to device.

From a BT perspective "usb_in" then refers to the data
we send from the device to the host, that has been received
over BT.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-11 18:09:52 +01:00
Emil Gydesen
146dce9f7e Bluetooth: BAP: Shell: Reverse in/out terminology
In USB "in" refers to data going from device to host,
and "out" refers to data going from host to device.

From a BT perspective "usb_out" then refers to the data
we receive from the host, to be sent over BT, so the "out"
terminology still works for that, and vice versa for
incoming BT data.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-11 18:09:52 +01:00
Emil Dahl Juhl
a629d28237 tests: drivers: build_all: sensor: spi: correct reg
Align the `reg` property with the address specified in the dts node for the
icm42686.

Signed-off-by: Emil Dahl Juhl <emil@s16s.ai>
2025-09-11 18:09:45 +01:00
Sylvio Alves
9b16701f8e soc: espressif: place arch_common in IRAM for proper boot
Ensure sw_isr_common, dynamic_isr, and init routines are executed from IRAM
by relocating libarch__common.a section.

Running these from flash prevents the board from booting properly, as flash
access is not available during early initialization.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-09-11 18:09:32 +01:00
Piotr Kosycarz
9df679094c samples: sensor: light_polling: fix running with twister
- use harness console (instead of default ztest)
- use platform_allow to limit build execution scope
(actually, there is also shield needed)

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-09-11 18:09:23 +01:00
Cristian Bulacu
eb0d006f9c tests: net: socket: tls: Increase test stack size
Increased test stack size to avoid twister failures.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-09-11 18:09:09 +01:00
Cristian Bulacu
cbd599fecd net: sockets: Return mapped address from sock_get_pkt_src_addr() function
When an IPv4 packet is received on a dual-stack socket, return
the mapped v4 to v6 address as source address.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-09-11 18:09:09 +01:00
Cristian Bulacu
48897a9090 net: context: Fix issues in context_sendto() function
Fixed issue when `sendmsg()` was in use and `CONFIG_NET_IPV6`
and `CONFIG_NET_IPV4_MAPPING_TO_IPV6` were in use, as `dst_addr`
argument of `context_sendto()` was passed NULL,
but also used to determine `sa_family`.
Use msghdr, if available, to determine if v4 to v6 mapping is
present.
Also set `dst_addr` to unmapped value  when v4 to v6 mapping is
used.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-09-11 18:09:09 +01:00
Cristian Bulacu
3072c53a84 net: context: Add support to set hoplimit when v4 to v6 mapping is used
If v4 to v6 mapping is used, cmsg_level and cmsg_type should
be compared with IPv6 values even if pkt family if AF_INET.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-09-11 18:09:09 +01:00
Manuel Argüelles
da8cdb56c4 modules: hal_nxp: always compile port driver for S32K1
Ensure the Port driver is built unconditionally for S32K1 targets, aligning
with the approach already used for Kinetis in mcux-sdk-ng's drivers.cmake.

Fixes #94848

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
2025-09-11 18:08:52 +01:00
Johan Alfvén
48ad0d9644 drivers: ethos_u: update dcache API for new HAL
Update ethosu_flush_dcache() and ethosu_invalidate_dcache() to accept
base_addr and base_addr_size arrays, with num_base_addr as the element
count, as required by the new Ethos-U driver. Add (uintptr_t) casts to
support 32-bit targets.

Signed-off-by: Johan Alfvén <johan.alfven@arm.com>
2025-09-11 18:08:43 +01:00