Commit graph

126,787 commits

Author SHA1 Message Date
Lyle Zhu
0b3f572d85 Bluetooth: Classic: L2CAP: Add connectionless data reception feature
Add a Kconfig `BT_L2CAP_CONNLESS` to enable the feature.

Add an API `bt_l2cap_br_connless_register()` to register the monitor
to receive the unicast connectionless data.

Add an API `bt_l2cap_br_connless_unregister()` to unregister the
registered callbacks.

Add an API `bt_l2cap_br_connless_send()` to send unicast
connectionless data.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-08-14 10:39:54 +03:00
Keith Packard
d77b58aacb cmake: Delay computation of linker paths until needed
With inclusion of the optimization flag into the multilib selection
process, we cannot compute the compiler library path when the compiler's
target.cmake is processed as LINKER_OPTIMIZATION_FLAG is not computed until
much later.

Instead, add a function (compiler_file_path) which can be used to locate
the appropriate crtbegin.o and crtend.o files.

Delay computation of lib_include_dir and rt_library until after all
compiler flags have been computed by adding compiler_set_linker_properties
and calling that just before toolchain_linker_finalize is invoked.

Place default implementations of both of these functions in a new file,
cmake/compiler/target_template.cmake, where we assume the compiler works
like gcc or clang and handlers the --print-file-name and
--print-libgcc-file-name options. Compilers needing alternate
implementations can override these functions in their target.cmake files.

These implementations require that no generator expressions are necessary
for the compiler to compute the right library paths.

This mechanism is also used to take any additional compiler options by
adding a new (optional) linker function,
toolchain_linker_add_compiler_options, which maps compiler options to
equivalent linker options, discarding any that aren't applicable.

Signed-off-by: Keith Packard <keithp@keithp.com>
2025-08-13 22:13:24 -04:00
Keith Packard
d29cbf6563 cmake: Pass optimization flag to linker too
The linker may want to know the desired optimization level as when
the multilib configuration includes -Os as a selector.

Adopt the same pattern as the assembler optimization flags by allowing
toolchains to specify linker optimization flags which default to the
compiler optimization flags and the apply those using add_link_options.

Signed-off-by: Keith Packard <keithp@keithp.com>
2025-08-13 22:13:24 -04:00
Pieter De Gendt
ffc3c4aa6b samples: boards: nxp: mimxrt1060_evk: system_off: Fix GPIO config
A pull-up should be described in hardware (device tree) instead of
software.
Also interrupt on edges instead of the level.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-08-13 22:12:46 -04:00
Pieter De Gendt
bf6b76abbd dts: arm: nxp: rt10xx: Add power state for soft-off
In order for samples/boards/nxp/mimxrt1060_evk/system_off to work, a
soft-off power state is needed.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-08-13 22:12:46 -04:00
Marek Matej
9735a2b752 samples: ipc: openamp on esp32
Updating openamp samples to work on ESP32 targets.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-08-13 22:12:22 -04:00
WenBin Zhang
d28602adaf tracing: systemview: Add isr name for Segger-sysview
With symtab enabled, the isr name is collected by symbol table

Signed-off-by: WenBin Zhang <freey7955@gmail.com>
2025-08-13 22:12:01 -04:00
John Batch
291fed487c tests: kernel: timer tests for kit_psc3m5_evk board
Adding overlays for Infineon kit_psc3m5_evk board to kernel/common,
kernel/timer/timer_error_case and kernel/timer/timer_api tests
when run in secure mode.  These tests require more memory than
the board assigns to secure mode by default.

Signed-off-by: John Batch <john.batch@infineon.com>
2025-08-13 22:11:42 -04:00
Bill Waters
9a2ae1ceb3 samples: drivers: uart: async_api: Add board overlay
Add overlay file for these boards:

  - cy8cproto_062_4343w
  - cy8cproto_063_ble
  - cyw920829m2evk_02

Signed-off-by: Bill Waters <bill.waters@infineon.com>
2025-08-13 22:10:57 -04:00
Iuliana Prodan
0f0ae97afc Revert "ipm: imx: send firmware ready reply to check for fw boot completion"
This reverts commit 01ab719ed7938481b459ed5df122f935aa6ae3e0.

This is no longer needed, as we now have a scalable solution
using a vendor-specific resource table, which allows each vendor
to define its own supported features.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-08-13 22:10:23 -04:00
Iuliana Prodan
7253ad3493 samples: openamp_rsc_table: remove unused config
Remove the FW_READY reply config, as it's not required for
the M7 core on i.MX8M Plus.
This setting triggers an interrupt to the host, which is
unnecessary in the case of M7 (check host-side imx_rproc
driver in Linux).

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-08-13 22:10:23 -04:00
Iuliana Prodan
227f0e4d18 samples: openamp_rsc_table: use vendor-specific rsc table to reply to host
Update for both 8QM and 8QXP, the nxp_openamp_imx8-adsp board
configuration to enable vendor-specific resource table features
instead of FW_READY reply config.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-08-13 22:10:23 -04:00
Iuliana Prodan
164022d8d3 samples: openamp_rsc_table: use vendor-specific rsc table to reply to host
Update the imx8mp_evk_mimx8ml8_adsp board configuration to enable
vendor-specific resource table features instead of FW_READY reply
config.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-08-13 22:10:23 -04:00
Yangbo Lu
2e10e7faeb test: ram_context_for_isr: exclude imx943 m33
i.MX943 M33 supports multi-level interrupt with NUM_IRQS 405.
Current ram_context_for_isr test does not cover multi-level interrupt.
So exclude i.MX943 M33.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-13 22:09:50 -04:00
Yangbo Lu
02da44356c boards: nxp: imx943_evk: doc update for NETC switch support for M33
Added NETC switch support for M33 in doc.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-13 22:09:50 -04:00
Yangbo Lu
6a8d8d0bc7 samples: net: dsa: add imx943_evk_mimx94398_m33_ddr board support
Added imx943_evk_mimx94398_m33_ddr board support.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-13 22:09:50 -04:00
Yangbo Lu
81747cf28f boards: nxp: imx943_evk: add NETC switch support for M33
Added NETC switch support for M33.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-13 22:09:50 -04:00
Yangbo Lu
5b2c553b53 dts: arm: nxp_imx943_m33: add NETC switch node
Added NETC switch node.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-13 22:09:50 -04:00
Yangbo Lu
7c9c8d8f44 drivers: dsa_nxp_imx_netc: add tag protocol support
Added tag protocol support.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-13 22:09:50 -04:00
Yangbo Lu
a5f612b86a drivers: eth_nxp_imx_netc: allow to transmit DSA tag frame
Allowed to transmit DSA tag frame.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-13 22:09:50 -04:00
Yangbo Lu
0e1b918066 net: dsa: support tag protocol setup
Supported tag protocol setup.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-13 22:09:50 -04:00
Yangbo Lu
28d0198ef1 net: dsa: add NXP NETC tag protocol driver
Added NXP NETC tag protocol driver.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-13 22:09:50 -04:00
Yangbo Lu
92416e2416 net: dsa: add tag protocol definition and binding
Added tag protocol definition and binding. Also introduced
zephyr,dsa-port compatible for future tag protocol driver Kconfig
dependency checking.

Updated existed dts.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-13 22:09:50 -04:00
Yangbo Lu
b3e4dc1c9d drivers: ethernet: move NXP NETC DSA driver to dsa directory
Moved NXP NETC DSA driver to dsa directory.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-13 22:09:50 -04:00
Yangbo Lu
560249bcbc net: dsa: move DSA core options to subsystem
Moved DSA core options to subsystem.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-13 22:09:50 -04:00
Yangbo Lu
1039173062 west.yml: update hal_nxp to support netc tag driver
Updated hal_nxp to support netc tag driver.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-13 22:09:50 -04:00
Jordan Yates
19134fc53f net: lib: tls_credentials: fix unregistered log module
A logging module named `tls_credentials` was being declared, but no
other source module was creating and registering it. Do the registration
in the file to fix the compiler error.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-08-13 22:08:46 -04:00
Ofir Shemesh
edf8a24b19 tests: drivers: spi: spi_loopback: move SPI delays to lpspi3 node
Place SPI delay properties under LPSPI instead of OCRAM for
mimxrt1180_evk_mimxrt1189_cm7.

Signed-off-by: Ofir Shemesh <ofirshemesh777@gmail.com>
2025-08-14 02:09:08 +01:00
Olivier Lesage
6558eca56c bluetooth: cs: Add docs about main/sub step mode combinations
Add docs about what main/sub mode combinations are considered valid
by spec.

In hindsight it would've been smarter to expose only one enum for both,
such that the user can't select invalid combinations.

Signed-off-by: Olivier Lesage <olivier.lesage@nordicsemi.no>
2025-08-13 18:31:58 +02:00
Guðni Már Gilbert
b7efede67e scripts: kconfig: optimize write_kconfig_filenames
Filter duplicate entries in `kconf.kconfig_filenames` before calling
`os.path.realpath`.

Before (current code), all entries in `kconf.kconfig_filenames` go
through `os.path.realpath`. Including all duplicate entries.

With the proposed change, the duplicate entries are removed before
calling `os.path.realpath`.

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
2025-08-13 18:31:41 +02:00
Emil Gydesen
bcfb14878b doc: migration guide: Bluetooth: Add guide for target latency and PHY
Some applications may need to modify their code to account
for the changes to struct bt_audio_codec_cfg.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-13 18:31:14 +02:00
Dmitrii Sharshakov
ef60501775 ipm: clarify wait parameter interpretation
Wait acts as a boolean, make this clear to avoid implementations
interpreting this as a duration to wait for.

Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
2025-08-13 18:31:04 +02:00
Aaron Massey
5c5923c233 drives: fuel_gauge: Remove unused battery_cutoff property
The FUEL_GAUGE_BATTERY_CUTOFF enum property was never used and never tested
nor was it intended to be. This property unfortunately made it past review.

Remove it. This is unlikely to cause a breakage since no upstream driver
ever implemented it as a property.

Signed-off-by: Aaron Massey <aaronmassey@google.com>
2025-08-13 18:30:52 +02:00
Ishraq Ibne Ashraf
634df1e1bf boards: seeed: Adding initial board support
Initial board support for Wio-WM1110 Dev Kit.

Signed-off-by: Ishraq Ibne Ashraf <ishraq.i.ashraf@gmail.com>
2025-08-13 18:30:42 +02:00
Marc Lasch
38e105475f boards: holyiot_yj17095: Add Holyiot YJ-17095 module support
The Holyiot YJ-17095 module provides Bluetooth low energy (BLE)
connectivity in a very small form factor of 9.4mm x 9.25mm.

Signed-off-by: Marc Lasch <mlasch@mailbox.org>
2025-08-13 18:30:34 +02:00
Mark Wang
b82a8eb880 west: MAINTAINERS: add libsbc
add libsbc to west.yml and add libsbc to MAINTAINERS.yml

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-08-13 10:26:58 -04:00
Mark Wang
6d8ad0836c libsbc: sbc: implement SBC codec
Use the Android Bluetooth SBC encoder and decoder.
The Android Bluetooth SBC is put as external library (libsbc).
sbc.c/sbc.h implement the interface that is compliant with
Zephyr style and can be used by Zephyr's other modules (
like A2DP).

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-08-13 10:26:58 -04:00
Bartosz Miller
86fb21502c samples: subsys: ipc: Run multi-endpoint IPC sample on nrf54h20
Extend IPC multi-endpont sample for 54h20

Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
2025-08-13 10:26:38 -04:00
Tomasz Leman
3570954d8b doc: coverage: fix twister coverage-basedir option syntax
Correct the command line option from --coverage_basedir to
--coverage-basedir to match the actual twister argument syntax.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
2025-08-13 10:26:23 -04:00
Mikhail Siomin
83f1bd7341 drivers: spi_nxp_lpspi: allow use of SPI_HOLD_ON_CS flag for lpspi v1
Allow use of SPI_HOLD_ON_CS flag for lpspi with major version 1
when cs is controlled by gpio.

Signed-off-by: Mikhail Siomin <victorovich.01@mail.ru>
2025-08-13 14:33:50 +03:00
Jori Rintahaka
0f89b4ab87 tests: bluetooth: tester: add filter list flag to start discovery
Implement Start Discovery command Accept Filter List filtering.
Add a flag to the command's flags field to enable filtering.

Signed-off-by: Jori Rintahaka <jori.rintahaka@silabs.com>
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2025-08-13 14:33:40 +03:00
Jilay Pandya
6f2973953b drivers: refactor setting of dir pin in step-dir common
current the dir-pin is getting set each and every time perform_step
is called, this is inefficient, since the direction pin shall be set
only once, when a motion command(move_by/move_to/run) is called.

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-08-13 14:32:59 +03:00
Pieter De Gendt
713603595b drivers: input: chsc5x: Add suspend/resume PM actions
Implement suspend and resume actions for the CHSC5X touch driver.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-08-13 14:32:44 +03:00
Seppo Takalo
b51ba607e0 tests: mcumgr: smp_client: Fix double free on test case
smp_client is automatically freeing all net_buf* given for it,
so testcase does not need to call smp_client_buf_free() for
buffers that are processed.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-08-13 14:32:17 +03:00
Pieter De Gendt
be216ba9e6 drivers: counter: mcux_snvs: Convert Kconfig symbol to dts property
The SNVS RTC can act as a wakeup source, re-use pm.yaml properties and
remove the Kconfig symbol.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-08-13 11:10:03 +01:00
Pieter De Gendt
f8473d1a3d samples: boards: nxp: mimxrt1060_evk: Remove default selected options
Remove Kconfig symbols that are default selected based on the device tree.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-08-13 11:10:03 +01:00
Pieter De Gendt
1ebb7e09ca dts: bindings: Move NXP i.MX SNVS from rtc to counter
The SNVS RTC is a Real Time Counter instead of a Real Time Clock.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-08-13 11:10:03 +01:00
Pavel Vasilyev
33b6e9c642 tests: bsim: bluetooth: host: Remove net_buf_unref call after bt_send
If `bt_send` returns 0, the buffer will be unreferenced by an hci
driver. If it returns error, the buffer won't be unreferenced.

Since it is a test, simply check that `bt_send` always returns 0
otherwise fail the test.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-08-13 11:09:55 +01:00
Michał Stasiak
4abc1dd67c modules: hal_nordic: remove deprecated error code
NRFX_ERROR_ALREADY_INITIALIZED has beed deprecated and
repleaced by NRFX_ERROR_ALREADY.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2025-08-13 11:09:47 +01:00
Vit Stanicek
9341a6980b Revert "boards: mimxrt700_evk: Enable NS & NP GPIO0 access"
This reverts commit 40f08428d3.

The PCNS and ICNS registers of the mimxrt798s's GPIO0 peripheral allow
accesses to be set up only with mutual exclusivity (either the
cm33_cpu0 or the hifi4), thus the access is reverted to the cm33_cpu0
domain.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-08-13 11:09:32 +01:00