Commit graph

136,983 commits

Author SHA1 Message Date
Tomasz Moń
614dd5738e drivers: usb: dwc2: Do cache operations on ownership change
Perform cache operations in thread context when the buffer ownership
changes between USB stack and UDC driver. This offers clearly measurable
throughput increase on Mass Storage when double buffering is enabled.
When endpoint operations are not double buffered the difference is
negligible. The positive side effect is reducing number of operations
performed in interrupt context.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-11-24 17:35:58 +01:00
Erwan Gouriou
47650a46bd dts: arm: st: wba6: Add missing i2c nodes
i2c2 and i2c4 were missing from soc description.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-11-24 17:35:31 +01:00
Håvard Reierstad
6bb0e982ad Bluetooth: Host: Add legacy pairing test config
Adds the `CONFIG_BT_SMP_LEGACY_PAIR_ONLY` Kconfig option to force
devices to use legacy pairing. This has a dependency on
`CONFIG_BT_TESTING` as it is only intended for testing purposes, and use
of legacy pairing is discouraged.

Signed-off-by: Håvard Reierstad <haavard.reierstad@nordicsemi.no>
2025-11-24 17:35:19 +01:00
Liu Qian
a2ca8b9b0a device: remove duplicate code
API z_device_state_init has already defined in init.c

Signed-off-by: Liu Qian <liuqian.andy@picoheart.com>
2025-11-24 17:33:13 +01:00
Chen Xingyu
b6e79199b5 boards: m5stack: cores3: Correct touchscreen axis
X and Y are swapped

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2025-11-24 17:32:58 +01:00
Torsten Rasmussen
18594c217c cmake: remove quotes around SUBALIGN
Quotes around `"SUBALIGN ${SUBALIGN}"` results in the parameters to
become a text string with a space, and therefore will give the warning

> CMake Warning at /.../extensions.cmake:5197 (message):
>  zephyr_linker_section(NAME ...) given unknown arguments: SUBALIGN 4
> Call Stack (most recent call first):
>   /.../extensions.cmake:5333 (zephyr_linker_section)
>   /.../CMakeLists.txt:x (zephyr_iterable_section)

Remove the quotes so that `SUBALIGN` and the value are correctly treated
as argument name and value.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2025-11-24 17:31:51 +01:00
Robert Lubos
8b91d3abc3 net: websocket: Fix truncated string warning on copying
WS_MAGIC is a constant string and when calculating lengths for copying
we always exclude the NULL terminator. In result, using strncpy() for
copying can generate a warning about truncated string, as WS_MAGIC will
always be truncated from the NULL terminator. Therefore replace
strncpy() with memcpy() as it seems more appropriate for this case.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-11-24 17:30:22 +01:00
Jordan Yates
dda100cb28 tests: zbus: publish_stats: update thresholds
`zbus_chan_pub_stats_msg_age` returns milliseconds, while `clock_window`
is in clock ticks. Update the thresholds to refer to the same 50ms
window as `clock_window`.

Fixes #99500.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-11-24 17:30:13 +01:00
Mathieu Choplain
0ee6ec0617 soc: st: stm32: wkup_pins: enable retention for STM32WBA wake-up pins
In order for wake-up pins to behave properly in Standby mode on STM32WBA,
the I/O Standby Retention must be enabled. (It only comes in effect when
the SoC does enter Standby mode, and has no effect otherwise).

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-24 17:30:03 +01:00
Muhammed Asif
c3e7e55bb4 boards: microchip: pic32cx_sg41_cult: Add clock support
- Updates the clock from 48MHz to 120MHz
- Adds the xosc related nodes to board file.

Signed-off-by: Muhammed Asif <muhammed.asif@microchip.com>
2025-11-24 17:29:54 +01:00
Ayush Singh
a9fa2ef116 drivers: adc: cc13x2_cc26x2: Fix PM
- Currently, ADC driver does not implement any PM related constraints.
  Due to this, when using it with PM enabled (example ieee802154, which
  enabled PM by default), it will stall the system.
- Similar to pwm driver, disable standby when ADC is sampling. The
  variable standby_disabled is just a flag to ensure that we disable (or
  enable) standby only when ADC driver selects it. Otherwise, it is
  possible to have a condition where ADC enabled PM and ieee802154
  disables it.
- This follows what TI SDK ADC driver does [0].

[0]: 507c93efc8/source/ti/drivers/adc/ADCCC26XX.c (L186)

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-11-24 17:29:44 +01:00
Emil Gydesen
4c54eef0d0 Bluetooth: BAP: Fix bad check for ASE state for CIS connect
A CIS may be connected in either the QoS Configured state
or the enabling state. The QoS Configured state is the
earliest state it is allowed, due to it being the first
state where the CIS_ID and ASE_ID are paired.
The enabling state is the "last" state it is allowed,
as if the ASE is in the streaming, disabling or releasing
state we should not allow/expect a CIS connection to happen.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-11-24 17:28:58 +01:00
Henrik Brix Andersen
0b06f2751f dts: bindings: i2c: gpio: add description for SDA/SCL pin configuration
Add recommendations for how to configure the GPIOs used as SDA/SCL pins.

Fixes: #95903

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2025-11-24 17:26:49 +01:00
Krzysztof Chruściński
84ccc54fda drivers: cache: nrf: Allow execution of sys_cache_instr_invd_all
Driver did not allow to execute any invalidate all operation.
This operation should not be allowed for data cache as it will lead to
undefined behavior but it is ok to invalidate instruction cache.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-11-24 17:26:35 +01:00
Allen Zhang
d83f249e20 doc: boards: nxp: mcxw23_evk: Updated the index.rst
Added the links to MCXW23-EVK website, user manual and design files

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
2025-11-24 17:25:43 +01:00
Ayush Singh
239e5a6b2f drivers: adc: cc13xx_cc26xx: Fix includes
- Include device specific headers even if the header files end up being
  the same.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-11-24 17:25:24 +01:00
Lucien Zhao
e1bf67139d dts: arm: nxp: add missed sub-parts dtsi files
add back missed sub-parts dtsi files for mcxe31x

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-11-24 17:23:56 +01:00
Hui Bai
d073ae1bf5 drivers: wifi: Update debug level of wakeup source dump function
Update wakeup source dump function to DBG level. This function will
print and clear wakeup source registers of NXP wifi chips with
CONFIG_WIFI_LOG_LEVEL_DBG enabled. By changing debug level of this file,
user can avoid wakeup source clear.

Signed-off-by: Hui Bai <hui.bai@nxp.com>
2025-11-24 17:23:43 +01:00
Hui Bai
c0715601b2 west.yml: Sync hal_nxp repo
Sync hal_nxp repo

Signed-off-by: Hui Bai <hui.bai@nxp.com>
2025-11-24 17:23:43 +01:00
Hui Bai
0f8228f410 drivers: wifi: Add new config CONFIG_NXP_WIFI_WAKE_TIMER_ENABLE
Added new config CONFIG_NXP_WIFI_WAKE_TIMER_ENABLE and enable it for NXP
wifi chips.

Signed-off-by: Hui Bai <hui.bai@nxp.com>
2025-11-24 17:23:43 +01:00
Haoran Jiang
eb8d8a50b2 boards: sifli: sf32lb52_devkit_lcd: enable crc
Enable CRC device

Signed-off-by: Haoran Jiang <halfsweet@halfsweet.cn>
2025-11-24 17:23:13 +01:00
Haoran Jiang
2e7c1d1816 drivers: crc: add crc driver for sf32lb platform
Add crc driver for sf32lb platform

Signed-off-by: Haoran Jiang <halfsweet@halfsweet.cn>
2025-11-24 17:23:13 +01:00
Haoran Jiang
e25f29560a dts: arm: sifli: sf32lb52x: define crc instances
Add crc device bindings for sf32lb platform

Signed-off-by: Haoran Jiang <halfsweet@halfsweet.cn>
2025-11-24 17:23:13 +01:00
Haoran Jiang
1a67d5753c dts: bindings: crc: sf32lb: add sifli,sf32lb-crc
Add crc device bindings for sf32lb platform

Signed-off-by: Haoran Jiang <halfsweet@halfsweet.cn>
2025-11-24 17:23:13 +01:00
Eemil Visakorpi
1d70b705b0 twister: Fix serial open for UART devices that do not immediately appear
Testing on linux, --flash-before argument did not work to wait for jlink
upload to complete. Instead Serial port opening throws file not found. The
fix ensures that the code waits for the serial port to appear before
attempting to connect. Tested on a proprietary platform with virtual UART
through usb.

Signed-off-by: Eemil Visakorpi <eemil@doublepoint.com>
2025-11-24 17:22:22 +01:00
Ayush Singh
0b173063fe soc: ti: simplelink: cc13x2x7_cc26x2x7: Add poweroff support
- Tested on BeagleConnect Freedom with
  samples/boards/ti/cc13x2_cc26x2/system_off

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-11-24 17:22:06 +01:00
Make Shi
f88eb16d7c Bluetooth: AVRCP: enable full browsing commands
This change implements full AVRCP Browsing support on both CT/TG,
and included all public APIs and callbacks, and add shell commands
for testing.

Signed-off-by: Make Shi <make.shi@nxp.com>
2025-11-24 17:21:27 +01:00
Make Shi
497d3bba43 Bluetooth: AVRCP: Add alloc_buf callback and browsing RX pool
Introduce an optional alloc_buf() callback into AVCTP so that each
session can decide which RX buffer pool to use. Provided a dedicated
RX pool for the AVRCP browsing channel.
Also provided BT_AVRCP_BROWSING_L2CAP_MTU for configure.

Signed-off-by: Make Shi <make.shi@nxp.com>
2025-11-24 17:21:27 +01:00
Make Shi
3d57125247 bluetooth: avrcp: align enums and response struct naming
Drop the 'U' suffix from enum hex literals keep style consistent
and rename `bt_avrcp_list_app_setting_attr_rsp` to the clearer.

Signed-off-by: Make Shi <make.shi@nxp.com>
2025-11-24 17:21:27 +01:00
Bartlomiej Buczek
1a5180d350 samples: drivers: jesd216: add nrf54l15dk cases.
Extend jesd216 sample with nrf54l15dk cases. These platforms have
jesd216 compatible flash memories on board.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2025-11-24 17:21:13 +01:00
Bartlomiej Buczek
bbf2695915 test: drivers: flash: common: Add sfdp case for nrf54l15 tests.
Add case for using flash with some parameters read with runtime sfdp
instead of dt declarations.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2025-11-24 17:21:13 +01:00
Bartlomiej Buczek
1028fc27b3 tests: drivers: adc: Enable tests for nrf54h20 PPR.
Fill in necessary config files with test data.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2025-11-24 17:20:35 +01:00
Dave Joseph
3474deee3d drivers: firmware: Clock control TISCI driver support
Support added for clock control using TISCI for devices using the binding
ti,k2g-sci-clk. This driver relies on the TISCI layer to make calls to the
DMSC core to set and get the clock rate and retrieve clock status.

Signed-off-by: Dave Joseph <d-joseph@ti.com>
2025-11-24 17:20:24 +01:00
Lyle Zhu
e7cb176018 Bluetooth: tester: Add command to send connectionless data
Add command `BTP_L2CAP_CONNLESS_SEND` to send connectionless data with
specific PSM.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-11-24 17:19:20 +01:00
Lyle Zhu
efcbb1f060 Bluetooth: tester: Classic: change L2CAP server count to 2
If CONFIG_BT_CLASSIC is enabled, change the count of L2CAP server to 2.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-11-24 17:19:20 +01:00
Lyle Zhu
4450c9b96c Bluetooth: tester: Classic: L2CAP: Support local busy
If the option BTP_L2CAP_CONNECT_V2_OPT_HOLD_CREDIT or
BTP_L2CAP_LISTEN_V2_OPT_HOLD_CREDIT is set, set the local flag
`hold_credit`. When the data received, holds the buffer and returns
the error code `-EINPROGRESS`.

The held buffers will be released if the L2CAP channel disconnect
callback is triggered. Or only of the held buffers will be released
if the L2CAP BTP command `credits` is received.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-11-24 17:19:20 +01:00
Lyle Zhu
1e9493393d Bluetooth: tester: L2CAP: Set TX data buffer count to windows size
If `CONFIG_BT_CLASSIC` and `CONFIG_BT_L2CAP_MAX_WINDOW_SIZE` are
defined, set the TX data buffer count to
CONFIG_BT_L2CAP_MAX_WINDOW_SIZE. Or, set the TX data buffer count to
CHANNELS.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-11-24 17:19:20 +01:00
Lyle Zhu
b9e1f53b1f Bluetooth: tester: Add BTP command BTP_L2CAP_LISTEN_V2
Add a new BTP L2CAP command BTP_L2CAP_LISTEN_V2 to extend the L2CAP
server feature.

Compared with BTP command `listen`, two fields are added, including
`mode` and `options`.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-11-24 17:19:20 +01:00
Lyle Zhu
3588a116bc Bluetooth: tester: Add BTP command BTP_L2CAP_CONNECT_V2
Add a new BTP L2CAP command BTP_L2CAP_CONNECT_V2 to set extend the
L2CAP connect request.
Compared with BTP command `connect`, two fields are extended,
including `mode` and `options`.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-11-24 17:19:20 +01:00
Lyle Zhu
8d97c8a4bf Bluetooth: tester: Add L2CAP ECHO REQ BTP command
Add a BTP command `BTP_L2CAP_SEND_ECHO_REQ` to send L2CAP ECHO REQ.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-11-24 17:19:20 +01:00
Lyle Zhu
ccb7084899 Bluetooth: tester: Support L2CAP BR ECHO req/rsp
Register ECHO callbacks in function `tester_init_l2cap()`.

Unregister ECHO callbacks in function `tester_unregister_l2cap()`.

Send ECHO response if ECHO request is received.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-11-24 17:19:20 +01:00
Lyle Zhu
7c3c864016 Bluetooth: tester: Support BR L2CAP channel data receiving
Add the function `br_alloc_buf_cb()` to allocate receiving buffer for
BR L2CAP channel.

Add the function `br_recv_cb()` to report the received BR L2CAP
channel data.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-11-24 17:19:20 +01:00
Lyle Zhu
c0f46f6371 Bluetooth: tester: Support L2CAP retransmission and flow-control mode
Configure the following configurations to support the L2CAP
retransmission and flow-control mode.
CONFIG_BT_L2CAP_RET=y
CONFIG_BT_L2CAP_FC=y
CONFIG_BT_L2CAP_ENH_RET=y
CONFIG_BT_L2CAP_STREAM=y
CONFIG_BT_L2CAP_FCS=y
CONFIG_BT_L2CAP_EXT_WIN_SIZE=y
CONFIG_BT_L2CAP_MAX_WINDOW_SIZE=5

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-11-24 17:19:20 +01:00
Lyle Zhu
b6f555b750 Bluetooth: tester: Support BR L2CAP send data command
If the channel id is more than ARRAY_SIZE(channels), send L2CAP data
through BR transport.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-11-24 17:19:20 +01:00
Anas Nashif
c9b01e8257 ci: set_assignee: remove size: XS label on updates
The script currently only adds the 'size: XS' label for small PRs (1
commit with ≤1 addition and ≤1 deletion), but it doesn't remove this
label if the PR grows larger after subsequent updates.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-11-24 08:47:51 +01:00
Rodrigo Peixoto
6b321eaffd doc: zbus: Adjust observer types image
Add the Async Listener type to the observer types image.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2025-11-24 08:47:40 +01:00
Peter van der Perk
8ba3999e66 tests: vector_table_relocation: Add DTCM and ITCM testcases
Expand vector table relocation with DTCM and ITCM veriants if
applicable

Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
2025-11-24 08:47:28 +01:00
Peter van der Perk
7d9e8923cc arch: arm: cortex_m: Allow VTOR to be relocated to TCM
Allows you to relocate the vector table from Flash to ITCM/DTCM to
minimize interrupt latency. TCM offers single-cycle access compared to
multi-cycle SRAM reads and even slower flash reads. This improves exception
handling speed for real-time workloads.

Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
2025-11-24 08:47:28 +01:00
McAtee Maxwell
f587c056a7 drivers: clock_control: fix clock pathing for infineon clocks
- fix fixed_factor clock_control driver
- update pse84 dts with fixes
- update psc3 dts with fixes
- update pse84_ai dts with fixes

Signed-off-by: McAtee Maxwell <maxwell.mcatee@infineon.com>
2025-11-24 08:47:15 +01:00
Jukka Rissanen
882387eeaa drivers: ieee802154: Properly namespace AF_UNSPEC by NET_AF_UNSPEC
Couple of AF_UNSPEC need to be replaced by NET_AF_UNSPEC so that
OpenThread tests will pass.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-24 08:47:05 +01:00