Commit Graph

111151 Commits

Author SHA1 Message Date
Marcel Graber
e28a45f658 doc: fix wrong header guard code comment
Copy/Paste leftover from openthread POSIX platform.

Signed-off-by: Marcel Graber <marcel@clever.design>
2025-03-03 14:35:27 +01:00
Tomáš Juřena
be52f3e1bd doc: release-notes: Move NXP watchdog text
The description of the change is listed under wifi but it should be
watchdog instead.

Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
2025-03-03 14:33:44 +01:00
Jérôme Pouiller
d8edd78184 MAINTAINERS: Also match gecko recursively
By uniformity with the other patterns, match "gecko" recursively.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-03-03 03:21:14 +01:00
Jérôme Pouiller
086d9b6428 MAINTAINERS: Remove redundant line
Pattern drivers/bluetooth/hci/hci_silabs_* can be replaced by
drivers/**/*silabs*. Thus, it is no more required to have a specific
case for bluetooth drivers.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-03-03 03:21:14 +01:00
Jérôme Pouiller
27163a559b MAINTAINERS: Also assign siwx91x drivers to Silabs
Usually, drivers for siwx91x are named "silabs_siwx91x". However, there
are a few exceptions:
  - **/Kconfig.siwx91x
  - drivers/wifi/siwx91x

Let's ensure the reviewers for these files are properly assigned.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-03-03 03:21:14 +01:00
Alberto Escolar Piedras
3883ef279e boards nrf54l15bsim: Remove out of date notes in doc
Remove two out of date/incorrect notes in the documentation for this
board:
For quite a while now, we have models of some parts of the CRACEN HW.
Since f4cdb0f07e we are using the CRACEN
RNG driver.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-03 03:21:03 +01:00
Alberto Escolar Piedras
e96b2a7c11 boards nrf54l15bsim: Remove uncessary defconfig
This board is using since f4cdb0f07e
the cracen RNG driver, so there is no need to set default options for
the native_posix entropy driver.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-03 03:21:03 +01:00
Fabio Baltieri
43564e7404 release: Zephyr 4.1.0-rc3
Set version to v4.1.0-rc3.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-02-28 20:01:20 +00:00
Martin Hoff
5efaf9d8c1 drivers: dma: silabs: fix warning when compiling without assert
Fix warning compilation when CONFIG_ASSERT is set to no.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-02-28 18:30:19 +01:00
Théo Battrel
75885e81de Tests: Bluetooth: Fix stack overflow for tester
Increase value of `CONFIG_BTTESTER_BTP_CMD_THREAD_STACK_SIZE` for
nrf54L15 board to avoid stack overflow.

Remove the config in the Mesh overlay as it's was also added for nrf54L15.

Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
2025-02-28 18:30:08 +01:00
James Roy
bdcc352952 dts: mbox: Simplify the description of the binding
Remove redundant descriptions in MBOX bindings, such
as "This is a representation of", "... node" and "... binding".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-02-28 18:29:52 +01:00
Emilio Benavente
bc8065cc7e boards: nxp: frdm_mcxc242: Free Ram Region for USB Testing
Frees ram region on the frdm_mcxc242 to allow
usb samples to run on this platform due to the
constraint of 16KB ram space for this platform.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2025-02-28 18:29:46 +01:00
Maureen Helm
d97d440b3f boards: adi: Fix incorrect gpio voltage select flags
Fixes several adi boards that incorrectly used pinctrl flags instead of
gpio flags in their devicetrees. For max32662evkit and max32672evkit,
the flags are removed entirely because these socs don't support gpio
voltage selection.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2025-02-28 18:29:36 +01:00
Fabio Baltieri
9d5ebb3cbc drivers: flash: spi_nor: fix few printf format warnings
Fix few printf format warnings when building for
mpfs_icicle/polarfire/e51. PRIdPTR for the pointer difference, %zu for
size_t.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-02-28 18:29:26 +01:00
Fabio Baltieri
3543a23eb9 boards: mpfs_icicle: default to SPI_NOR_SFDP_RUNTIME
Default to SPI_NOR_SFDP_RUNTIME for the board so that it can build the
spi-nor driver without triggering the build check for:

jedec,spi-nor jedec-id required for non-runtime SFDP

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-02-28 18:29:26 +01:00
Khoa Nguyen
c768144002 drivers: Correct value of event macro for all Renesas SoC
Since the RA2L1 uses the macro "ICU_EVENT" instead of
"ELC_EVENT" (which is currently used) to input into
the IELSR register, the ek_ra2l1 board cannot assign
any interrupts for any driver.

This commit aim to correct the Event macro to input correct
value for IELSR register on all the Renesas SoC by using
"BSP_PRV_IELS_ENUM" macro.

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-28 18:29:17 +01:00
Khoa Nguyen
cd06e8035d manifest: update hal_renesas to use the correct EVENT macro
Update hal_renesas to use the correct EVENT macro

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-28 18:29:17 +01:00
Vinayak Kariappa Chettimada
ec69ccb681 Bluetooth: Controller: Fix single timer direction finding support
Fix use of single timer software tIFS switching to support
direction finding.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-02-28 14:55:11 +01:00
Vinayak Kariappa Chettimada
7520742671 Bluetooth: Controller: Fix single timer clear event define name
Rename the single timer clear event define name based on
direction finding support.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-02-28 14:55:11 +01:00
Vinayak Kariappa Chettimada
23d321d679 Bluetooth: Controller: Fix end time capture be on radio event end
Fix end time capture be on radio event end irrespective of
direction finding support. Let the timer clear use radio
end or radio phy end, for no direction finding or direction
finding support, respectively.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-02-28 14:55:11 +01:00
Vinayak Kariappa Chettimada
f67a94f47a Bluetooth: Controller: Fix single timer end time capture
Fix single timer use end time capture from being disabled
as end time and timer clear use the same PPI.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-02-28 14:55:11 +01:00
Vinayak Kariappa Chettimada
65d69ec176 Bluetooth: Controller: Fix active mode extended scanning assert
Fix active mode extended scanning assert raised when calling
radio_tmr_start_us() due to stale radio_tmr_end_get() value.
Active mode extended scanning did not drop reception of
ADV_EXT_IND PDU when setup to receive ADV_SCAN_RSP PDUs.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-02-28 14:55:11 +01:00
Jan Kowalewski
a9c59d6c85 drivers: timer: sam0: fix MCLK pointer and mask in init function
Init function uses undefined cfg variable causing compilation error.

Signed-off-by: Jan Kowalewski <jkowalewski@cthings.co>
2025-02-28 14:54:59 +01:00
Anas Nashif
a7e2846a94 twister: setup logging per process
Setup logging per process to fix issue on both mac and windows where
handlers are not available to the processes.

Fixes #86237

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-02-28 14:53:38 +01:00
Vinayak Kariappa Chettimada
3a996c570b Bluetooth: Controller: Fix BT_CTLR_LOW_LAT_ULL dependency
Fix BT_CTLR_LOW_LAT_ULL dependency after changes in
commit 5119896c7d ("Bluetooth: Controller: Fix
BT_CTLR_LOW_LAT_ULL conditional code").

BT_CTLR_LOW_LAT_ULL is independent of BT_CTLR_LOW_LAT, where
the later prevents any ULL execution inside a radio event.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-02-28 14:53:27 +01:00
Jeppe Odgaard
3a8dddcdad drivers: adc: stm32: use __maybe_unused
Replace conditional `ARG_UNUSED` with `__maybe_unused`. This is recommended
by coding style:
https://kernel.org/doc/html/latest/process/coding-style.html#conditional-compilation

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-02-28 14:53:17 +01:00
Pieter De Gendt
c0c6047257 doc: develop: getting_started: Add powershell tabs
Activating the Python environment on Windows can be done in a regular
command line prompt, or in powershell. But the activation script is
different.
Add a code tabs to include the powershell alternative.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-02-28 14:52:30 +01:00
Benjamin Cabé
d1969bf019 boards: ite: adopt new zephyr:board directive and role
This updates the documentation of all the ITE Tech boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-28 14:52:23 +01:00
Benjamin Cabé
8438c47a0b boards: ene: adopt new zephyr:board directive and role
This updates the documentation of all the ENE Technology boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-28 14:52:23 +01:00
Benjamin Cabé
98d9e51033 boards: rakwireless: fix title
Title is redundant with the one the zephyr:board directive
automatically adds.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-28 14:52:23 +01:00
Benjamin Cabé
3fc5c8c1c7 boards: cypress: adopt new zephyr:board directive and role
This updates the documentation of all the Cypress boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-28 14:52:23 +01:00
Benjamin Cabé
7654902f09 boards: enjoydigital: adopt new zephyr:board directive and role
This updates the documentation of all the EnjoyDigital boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-28 14:52:23 +01:00
Benjamin Cabé
b0ab5fac6a boards: seagate: adopt new zephyr:board directive and role
This updates the documentation of all the Seagate boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-28 14:52:23 +01:00
Benjamin Cabé
cc9c07415b boards: lowrisc: adopt new zephyr:board directive and role
This updates the documentation of all the lowRISC boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-28 14:52:23 +01:00
Benjamin Cabé
23c195c644 boards: up-bridge-the-gap: adopt new zephyr:board directive and role
This updates the documentation of all the UP boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-28 14:52:23 +01:00
Jamie McCrae
05b6997491 soc: amd: acp_6_0: Fix bleeding Kconfig
Fixes a wrongly defined Kconfig

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-02-28 14:52:13 +01:00
Måns Ansgariusson
762861defd doc: Add k_pipe deprecation notice to 4.1 release notes
Add a notice to the 4.1 release notes that CONFIG_PIPES k_pipe
implementation is deprecated from 4.1.

Signed-off-by: Måns Ansgariusson <Mansgariusson@gmail.com>
2025-02-28 14:52:03 +01:00
Johann Fischer
9cb0fbf80d usb: device_next: fix Get Status request response
We need to track the self-powered status of the device independently of
the D6 bit in the bmAttributes value of the configuration descriptor
because the Get Status request about the self-powered status is valid in
address state and we support multiple configurations.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-02-28 14:51:53 +01:00
Måns Ansgariusson
467e15ddd3 drivers: rtc: rx8130ce: day alarm fix
The day alarm was not being set correctly. The day alarm should be set
using the WADA bit in the control register. This patch fixes the issue
by setting the WADA bit in the control register when setting the day alarm.

Signed-off-by: Måns Ansgariusson <Mansgariusson@gmail.com>
2025-02-28 14:51:43 +01:00
Benjamin Cabé
95c1c850bc doc: extensions: Add line reference support to zephyr_file/zephyr_module
Enhance the zephyr_file link role to support referencing specific lines
or line ranges in files.
This change allows users to link to exact locations within a file
using GitHub-style line references.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-28 10:10:47 +01:00
Kyra Lengfeld
6464ffa3f9 Bluetooth: Host: Fix deadlock when failing to alloc on BT RX thread
This commit alignes the timeout value for allocating buffers within att
on the BT RX thread, making it consistent within att.c, see
bt_att_req_alloc.

We are inferring in many bt_gatt_* functions that if called from a BT RX
thread (which is inherently the case if called from a callback when
running a Bluetooth application), we don't block and instead return
-ENOMEM when the ATT request queue is full, avoiding a deadlock.
This promise is fulfilled within bt_att_req_alloc, where the timeout for
allocation of the request slab is set to K_NO_WAIT if we are on the BT
RX thread. Unfortunately, we break this promise in
bt_att_chan_create_pdu, where the timeout for allocation of the att pool
is still K_FOREVER and deadlocks can (and do) occur when too many
requests are sent yet the pool is depleted.

Note: Both req_slab and att_pool sizes are defined by
CONFIG_BT_ATT_TX_COUNT. If applications start getting -ENOMEM with this
change, they were at risk of such a deadlock, and may increase
CONFIG_BT_ATT_TX_COUNT to allocate the att pool for their requests.

Note: This possible deadlock has been flying under the radar, as
att_pools are freed when the HCI driver has sent it to the controller
(instead of when receiving the response, as it happens with req_slabs)
and due to the att_pool and the req_slab being both sized by
CONFIG_BT_ATT_TX_COUNT, and req_slab being allocated before and
returning -ENOMEM already if there is no space, it takes a more specific
situation to deplete the att_pool but not the req_slab pool at this
point.

Note: Ideally, we don't want functions to behave differently depending
on which thread they are running, and while this commit makes it more
consistent, it should be considered a workaround solution.

Signed-off-by: Kyra Lengfeld <kyra.lengfeld@nordicsemi.no>
2025-02-28 10:10:01 +01:00
Emil Gydesen
210adaf399 drivers: Bluetooth: ipc: Add additional logging info
Add logging of the values that cause LOG_ERR statements.
This makes it easier to debug any issues that occur.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-28 08:01:46 +01:00
Kyra Lengfeld
775cc35236 Bluetooth: Host: improve GATT documentation
The gatt docs are very sparce, this commit adds imrpovements for the
GATT server API part. Others will follow.

Signed-off-by: Kyra Lengfeld <kyra.lengfeld@nordicsemi.no>
2025-02-28 08:00:42 +01:00
Peter Korsgaard
f6017c5e09 sys_clock: header: fix typo in NSEC_PER_USEC comment
Commit c910dc81a614("sys_clock: header: minor cleanup and doxygenization")
introduced a typo in the documentation comment above NSEC_PER_USEC.  Fix
that.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2025-02-27 23:22:20 +00:00
Mahesh Mahadevan
02bbdaf799 west.yml: Update HAL NXP to get fix for LPFlexcomm build issue
The LPFlexcomm HAL driver should be included based on
CONFIG_NXP_LP_FLEXCOMM config

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-02-27 23:20:23 +00:00
Andrej Butok
c887d5e235 sample: zms: add ZMS sample Kconfig
- adds ability to change the ZMS sample MAX_ITERATIONS
  and DELETE_ITERATION parameters via Kconfig without manually
  modifying the source code.
- adds ability to reduce flash memory wear on real devices
  by reducing the number of write iterations.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-02-27 23:19:34 +00:00
Raffael Rostagno
40823be8b7 runners: esp32: Fix board arguments
Fix board arguments to properly build runners.yaml and
set esp-monitor-baud.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-02-27 23:19:20 +00:00
Maciej Perkowski
b85e4f1b00 samples: sensors: Add test criteria
Verify the output according to the description of the sample.
fixes: #84156

Signed-off-by: Maciej Perkowski <maciej.perkowski@nordicsemi.no>
2025-02-27 23:19:09 +00:00
Declan Snyder
1ca895dc0e spi_nxp_lpspi: Reintroduce fast path no configure
Reintroduce the fast path that skips reconfiguring if we use the same
configuration, this fixes regression that causes a lot of latency at the
start of repeated transfers. Unfortuantely need to find alternative
workaround for S32K3 in order to do this instead of module reset, so
disable skipping for that platform.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-02-27 23:18:46 +00:00
Declan Snyder
09e31d6b42 spi_nxp_lpspi: Fix faulting register access
On some platforms, the module is not getting clocked until call to
LPSPI_MasterInit, this will be fixed soon with upcoming update to native
driver and will clock the module in driver init instead of start of
transfer, but for now, move this code within the condition check that
already exists for this purpose.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-02-27 23:18:46 +00:00