Commit graph

126,787 commits

Author SHA1 Message Date
Emil Gydesen
19651491f3 Bluetooth: BAP: Fix compile issue with ep->status.state
The ep->status.state is now just ep->state.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-09 11:44:03 +02:00
Łukasz Stępnicki
5be01c95df COLLABORATORS: add lstnl as hal_nordic and nRF Platforms collaborator
Added myself (lstnl) as Nordic platforms and hal nordic collaborator.

Signed-off-by: Łukasz Stępnicki <lukasz.stepnicki@nordicsemi.no>
2025-09-09 10:32:50 +02:00
Emil Gydesen
c7867cb03b tests: Bluetooth: Audio: Increase timeout for AC tests
Increase the EXECUTE_TIMEOUT for the _ac_common.sh tests,
as some of them occasionally times out when the CI
servers are busy (especially for the cap_ac_11_ii tests).

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-09 10:32:26 +02:00
Evgenii Kosenko
6d8af7a901 modules: hal_silabs: Adds Extended Scanning support
Adds extended scanning support mapping to silabs ll.

Signed-off-by: Evgenii Kosenko <Evgenii.Kosenko@silabs.com>
2025-09-09 10:32:05 +02:00
Evgenii Kosenko
8ef809f43c drivers: bluetooth: silabs_efr32: Declares periodic sync feature
Adds declaration for Periodic Advertising Synchronization Establishment
procedure supported by controller.

Signed-off-by: Evgenii Kosenko <Evgenii.Kosenko@silabs.com>
2025-09-09 10:32:05 +02:00
Elgin Perumbilly
7c3b003975 boards: silabs: slstk3701a: Enable Si7210 Hall-effect sensor
Enable Si7210 Hall-effect sensor node under I2C2 in slstk3701a DTS for
magnetic field sensing. Include a 3.3V fixed regulator (sensor-enable)
via GPIO for power control.

Signed-off-by: Elgin Perumbilly <elgin.perumbilly@siliconsignals.io>
2025-09-09 10:31:46 +02:00
Yongxu Wang
cfb1ae4efe soc: nxp: imx95: set and restore wakeup irq mask in pm context
The CMC interface controls the entry and exit of the
CPU's low-power mode and the identification of the wake-up source.
To ensure the normal operation of the system's low-power timing sequence,
when transfer IDLE_RUN to IDLE_SLEEP, it is necessary to ensure
that the system is not awakened by the wake-up source during this stage.
Therefore, an IRQ MASK needs to be set on the CMC

Before the CPU enters the low power mode, a wake up mask needs to be set
according to the situation where the interrupt controller is enabled
at that time.
After the cpu exits the low power mode, resume needs to be performed

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2025-09-09 10:31:22 +02:00
Yongxu Wang
f94b3b9e2b drivers: firmware: scmi: add cpu irq wake interface for nxp vendor
Add scmi_cpu_set_irq_mask function for scmi nxp cpu driver,
set cmc wakeup mask from scmi interface by this.

The CPU_IRQ_WAKE_SET is sent to the scmi platform
to determine which interrupt can wakeup the cpu platform
when the corresponding interrupt occurs

"1" means the IRQ cannot wakeup CPU platform
Each bit corresponds one-to-one with the interrupt
controller of the platform such as nvic in mcore

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2025-09-09 10:31:22 +02:00
Yongxu Wang
6e69e50613 drivers: firmware: scmi: return converted status directly
Simplify error handling by returning scmi_status_to_errno(status)
directly after message response.

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2025-09-09 10:31:22 +02:00
Omri Sarig
f55dcc91df scripts/logging: Add support to RTT reading from JLink
Update the live logger to be able to read the logs from JLink, over the RTT
protocol.
The support for the jlink-rtt mode is done similarly to the currently
existing support for files and serials.

The implementation for opening the jlink for reading was inspired by the
available example from the pylink python implementation here:
https://github.com/square/pylink/blob/master/examples/pylink-rtt

In contrast to the other readers, the jlink-rtt does not support being
polled from 'select'.
To make it possible to work with such readers, the code was updated to
allow for busy-waits, instead of smart polling.
This change does not affect the current readers, but support the new
reader, and allows for future readers which does not support smart polling.

Signed-off-by: Omri Sarig <omsi@demant.com>
2025-09-09 10:31:03 +02:00
Emil Gydesen
e9b6d62908 Bluetooth: BAP: Server: Verify that ep is from ASCS
Adds a function that verifies if an endpoint pointer is
part of ASCS before performing CONTAINER_OF operations on it.

Adds checks for this in the BAP Unicast server public API.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-09 10:30:45 +02:00
Emil Gydesen
ed74992799 Bluetooth: ASCS: Fix minor sonarqube issue with missing else
Add missing else.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-09 10:30:45 +02:00
Emil Gydesen
40644e75a3 Bluetooth: ASCS: Use ASE_ID where applicable
Use the ASE_ID where applicable instead of ase->ep.id

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-09 10:30:45 +02:00
Emil Gydesen
bcf7469ce8 tests: Bluetooth: tester: Don't access BAP endpoints directly
Modify the code to use the public API to get the endpoint
ID and direction rather than relying on the internal
bap_endpoint.h header file.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-09 10:30:45 +02:00
Emil Gydesen
ce9e8f8b9e Bluetooth: BAP: Fix bad use of bt_ascs_ase_status
The bt_ascs_ase_status was stored directly in the
struct bt_bap_ep, which was an issue as
bt_ascs_ase_status is a variable sized struct.
The struct could have been moved to the end of
bt_bap_ep to avoid the issues it caused, but
there is no actual reason to use that struct
rather than storing the ID and state as
seperate values.

The ascs_ep_get_state exists but was not widely
used in ascs. Modify places to use the function
instead of directly accessing the state.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-09 10:30:45 +02:00
Benjamin Cabé
b985b3d55f doc: smf: fix graphviz warning in state diagram
Modified the smf_hierarchical_initial digraph so that it doesn't use a
`<>` label as that makes recent versions of graphviz unhappy (warning).

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-09 09:10:44 +02:00
Szymon Janc
634a5d0ef3 tests: Bluetooth: Tester: Enable debug logs by default
This is mainly used for testing.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2025-09-09 09:10:35 +02:00
Quang Le
4b24f1443f tests: drivers: spi_loopback: Add latency for Renesas RZ/G3S-SMARC
Set `CONFIG_SPI_IDEAL_TRANSFER_DURATION_SCALING` to 16 for board
Renesas `rzg3s_smarc`

Signed-off-by: Quang Le <quang.le.eb@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-09-09 09:10:12 +02:00
Quang Le
c1da8c50df drivers: spi: Fix spi_loopback failure for Renesas RZ/G3S-SMARC
Fixes the `spi_loopback` test failure on board Renesas `rzg3s_smarc` since
the test has been updated by zephyrproject-rtos/zephyr/pull/86383

Signed-off-by: Quang Le <quang.le.eb@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-09-09 09:10:12 +02:00
Martin Hoff
301bd161db samples: adc_dt: correct pin allocation for xg29_4412a
Change the pin configuration (xg9_rb4412a) for the IADC to allocate
odd bus 0 on GPIO port C/D instead of GPIO port B, allowing access to
pin PD3.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-09-09 07:35:59 +02:00
Benjamin Cabé
0871c7e147 doc: conf.py: fix warnings about docs appearing in index and index-tex
Implement a workaround to ensure only one of the two top-level indexes
is included in the documentation build, preventing Sphinx from issuing
INFO notices about documents being referenced in both index and
index-tex toctrees.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-09 07:35:46 +02:00
Marc Herbert
d6f28bd3d4 doc: external_content: exclude backup files
For most people, this should be only an optimization.

For Emacs TRAMP (ssh) users, this fixes the following build failure when
a file is not saved yet. This build failure happens because TRAMP
creates backup files on the local host and seems to use deliberately
broken symlinks as "bookmarks" to those local files.

file snippets/.#index.rst

 snippets/.#index.rst: broken symbolic link
                       to userid@hostname.intel.com.966265369654

```
Traceback
=========

 Traceback (most recent call last):
   File "/usr/lib/python3.13/site-packages/sphinx/events.py", in emit
     results.append(listener.handler(self.app, *args))
                    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
   File " doc/_extensions/zephyr/external_content.py", in sync_contents
     shutil.copy(src, dst)
     ~~~~~~~~~~~^^^^^^^^^^
   File "/usr/lib/python3.13/shutil.py", line 428, in copy
     copyfile(src, dst, follow_symlinks=follow_symlinks)
     ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.13/shutil.py", line 260, in copyfile
     with open(src, 'rb') as fsrc:
          ~~~~^^^^^^^^^^^
 FileNotFoundError: [Errno 2] No such file or directory:
                      '___/zephyr/snippets/.#index.rst'
```

Just for the record, these backup files were already discussed in commit
bab7df9f9e (".gitignore: do not ignore .\#* files")

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2025-09-09 07:35:25 +02:00
Andre Heinemans
1282481654 soc: nxp: imx95: increase ROM_START_OFFSET in case of BOOTLOADER_MCUBOOT
The insertion of MCUBOOT header will shift the rom code ahead with
0x800 bytes because of memory alignment

Signed-off-by: Andre Heinemans <andre.heinemans@nxp.com>
2025-09-09 07:35:15 +02:00
Vinayak Sunilkumar Priyadarsini
a87ed22fe1 drivers: sensor: adxl367: fix for temperature readout
Fix to ensure temperature is sampled at the same timestamp as x,y,z axis
data.

Signed-off-by: Vinayak Sunilkumar Priyadarsini <Vinayak.SunilkumarPriyadarsini@analog.com>
2025-09-09 07:35:00 +02:00
Sudan Landge
43962de81c tests: arm: validate PAC keys on context switch
Test PAC by corrupting lr from a userspace thread.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-09-09 07:34:50 +02:00
Sudan Landge
7660136c06 tests: arm: validate arm PAC with pseudo rng
Add tests to validate pointer authentication code (PAC) in 2 scenarios:
1. when the PAC key itself is corrupted
2. when lr is corrupted on stack

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-09-09 07:34:50 +02:00
Sudan Landge
5efbd54886 tests: arm: new test for PACBTI
Add a simple test to test branch target identification (BTI).

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-09-09 07:34:50 +02:00
Sudan Landge
1916ec27b5 arch: arm: support PACBTI with unprivileged mode
To support unprivileged mode (CONFIG_USERSPACE):
- Set unprivileged PAC key registers when system is in unprivileged
  mode.
- Add `bti` after each svc call, to make sure that the indirect jumps on
  `lr` while returning from an `svc` don't result in a usage fault.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-09-09 07:34:50 +02:00
Sudan Landge
09cc777daa arch: arm: add per thread unique PAC key support
Add a config option to set unique PAC keys per thread and
make sure to retain them during context switch.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-09-09 07:34:50 +02:00
Sudan Landge
8e5f828fef arch: arm: enable PACBTI support
As part of enabling PACBTI support:
- Add config options to enforce PAC and BTI features
- Enable these config options based on the branch protection choice
  selected for `ARM_PACBTI`
- Enforce PACBTI, based on the new config options, by enabling
  corresponding PACBTI bits in CONTROL register and in FVP.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-09-09 07:34:50 +02:00
Sudan Landge
40c127d9db arch: simplify PACBTI config options for arm and arm64
Rename and move PACBTI config options to common Kconfig so that
they could be re-used for arm64 in the future.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-09-09 07:34:50 +02:00
Fin Maaß
53debb6ab7 drivers: spi: nxp: lpspi: use DT_DRV_COMPAT to fix native cs
As the other spi_nxp_lpspi driver source files use DT_DRV_COMPAT
and that is used to determine in spi_context.h if the gpio cs
code is used, it also have to be defined in spi_nxp_lpspi_common.c
so there is no mismatch and breaking of the driver.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-09-09 07:34:36 +02:00
Daniel DeGrasse
c7e60346a0 tracing: ctf: take IRQ lock before generating timestamp
CTF tracing relies on all packet timestamps being increasing- if a
timestamp of a later packet is less than the prior packet, the CTF
parser assumes the timestamp field has overflowed and adds to the
overall timestamp to account for this.

When taking a timestamp for a CTF packet, it was possible for an interrupt
to occur before the packet was submitted to the tracing core framework
but after the timestamp was generated. The interrupt itself would
generate a tracing event with a later timestamp then the packet in
question, leading to the packets being recorded out of order.

To resolve this, take an IRQ lock before generating the timestamp and
release it after submitting the packet to the tracing core.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-09-08 15:54:35 -04:00
Holt Sun
8240ed9880 test: subsys: disable settings.tfm_its test for lpcxpresso55s69 ns.
For lpcxpresso55s69 TF-M, it has persistent storage available,
not applied for settings.tfm_its test.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2025-09-08 15:54:25 -04:00
Hiago De Franco
027c66a2ac boards: verdin_am62: add initial support
Add initial support for Toradex Verdin AM62.

Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
2025-09-08 15:53:50 -04:00
Fin Maaß
a584e36e27 arch: cache: set default of line size
set default of line size to the
value from the devicetree.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-09-08 15:53:36 -04:00
Fin Maaß
f64126f487 arch: Kconfig: use if to siplify
use if to simplyfy dependencys.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-09-08 15:53:36 -04:00
S Mohamed Fiaz
4cd8bcc523 drivers: i2c: silabs: add async combined write-read
Added support for combined write-read operations
with repeated start for asynchronous (async)
operations in the Silabs I2C driver for EFR
series 2 devices.

Signed-off-by: S Mohamed Fiaz <Fiaz.Mohamed@silabs.com>
2025-09-08 15:52:34 -04:00
S Mohamed Fiaz
ea6ec6b15a drivers: i2c: silabs: i2c driver for EFR series 2 devices
Added the i2c driver for EFR series 2 devices.

Signed-off-by: S Mohamed Fiaz <Fiaz.Mohamed@silabs.com>
2025-09-08 15:52:34 -04:00
S Mohamed Fiaz
a048ed841d west.yml: Update hal_silabs revision
This commit updates the hal_silabs revision

Signed-off-by: S Mohamed Fiaz <Fiaz.Mohamed@silabs.com>
2025-09-08 15:52:34 -04:00
Sebastian Bøe
3648cd87d4 soc: nordic: gen_uicr: Support secondary firmware
Add support for secondary firmware in gen_uicr.py.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2025-09-08 15:52:20 -04:00
Sebastian Bøe
67b0e045eb soc: nordic: Update UICR format
Update the C struct for UICR to the latest revision.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2025-09-08 15:52:20 -04:00
Sebastian Bøe
180f1f8917 soc: noric: nrf54h20: Fix custom CONFIG_KERNEL_BIN_NAME bug
Fix bug where users were unable to name their binary Bøe when building
for nrf54h20.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2025-09-08 15:52:20 -04:00
Immo Birnbaum
1d6a77280d doc: releases: migration guide entry
Describe the modification of the hardware checksum offloading
configuration for the Xilinx GEM Ethernet controller.

Signed-off-by: Immo Birnbaum <mail@birnbaum.immo>
2025-09-08 15:51:57 -04:00
Immo Birnbaum
6803583927 dts: bindings: ethernet: adjust Xilinx GEM binding
Adjust the DT binding of the Xilinx GEM controller so that the
explicit enable flags for RX/TX hardware checksum offloading are
turned into explicit disable flags.

Signed-off-by: Immo Birnbaum <mail@birnbaum.immo>
2025-09-08 15:51:57 -04:00
Immo Birnbaum
4ef8e14297 drivers: ethernet: xlnx_gem: invert RX/TX checksum offload behaviour
Invert the RX/TX checksum offloading to hardware behaviour so that
hardware checksum generation / evaluation for TCP/UDP packets on
either IPv4 or IPv6 is enabled by default, but can be disabled
explicitly.

This behaviour, which should optimize network performance, has
become possible with the implementation of the device driver's
get_config function, indicating to the network stack that HW
checksum offloading is not supported for, e.g., ICMP packets.
Before this implementation, enabling the HW checksum offloading
resulted in invalid packets for any unsupported protocol and
could therefore not be enabled by default.

For QEMU, which does not support the emulation of the HW
checksum offloading, automatically disable the offloading.

Signed-off-by: Immo Birnbaum <mail@birnbaum.immo>
2025-09-08 15:51:57 -04:00
Carles Cufi
9e52df0234 Revert "boards: nordic: nRF54L15DK: set HFXO clock latency to 854"
This reverts commit d0a076984b.

The reason for reverting this is that the only safe startup time for
54L series is the one defined in the SoC .dtsi files (1650us), and other
startup times are not reliable even when tested on a particular board.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-09-08 15:51:46 -04:00
Carles Cufi
480f2cee44 maintainers: Remove Hubert Mis from hal_nordic collaborators
Hubert no longer works at Nordic.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-09-08 15:51:29 -04:00
Anas Nashif
5e6e3a6de3 arch: mark z_prep_c as FUNC_NORETURN
z_prep_c does not return, mark it as such consistently across
architectures.  We had some arches do that, others not. This resolves a
few coding guideline violations in arch code.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-09-08 15:51:07 -04:00
Anas Nashif
6ad396344d soc: espressif: declare z_cstart
Declare z_cstart as extern as otherwise we will need to pull in
kernel_internal.h.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-09-08 15:51:07 -04:00