Commit Graph

119916 Commits

Author SHA1 Message Date
Karol Lasończyk
d55ee09e1a dts: nordic: Fix GPREGRET addresses for nRF54LM20A
Fix for wrongly addressed GPREGRET space.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
2025-07-31 10:53:43 +01:00
WenBin Zhang
d01edb10e1 tracing: Fix k_mem_slab_free tracing systemview
Fix k_mem_slabe_free tracing error.

Signed-off-by: WenBin Zhang <freey7955@gmail.com>
2025-07-31 10:53:30 +01:00
Hui Bai
1198d78898 hostap: Update 11k roaming mechanism
With this changes, device will check if AP support Neighbor Report or
not before trigger roaming. No need to issue 11k command to enable 11k,
if AP supports Neighbor Report, device will trigger 11k roaming with
priority.

Signed-off-by: Hui Bai <hui.bai@nxp.com>
2025-07-31 10:53:19 +01:00
Flavio Ceolin
56e2b01e53 bt: controller: Use proper flexible array
0 length array is a GNU extension. Use proper C99 flexible
array.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-07-31 10:52:49 +01:00
Flavio Ceolin
4ae867b12d bt: audio: Use proper flexible array
0 length array is a GNU extension. Use proper C99 flexible
array.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-07-31 10:52:49 +01:00
Flavio Ceolin
39cf9bd0c0 net: ip: Use proper flexible array
0 length array is a GNU extension. Use proper C99 flexible
array.

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2025-07-31 10:52:49 +01:00
Flavio Ceolin
1ccf9391bc shell: Use proper flexible array
0 length array is a GNU extension. Use proper C99 flexible
array.

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2025-07-31 10:52:49 +01:00
Flavio Ceolin
eaaa2e197d log: multidomain: Use proper flexible array
0 length array is a GNU extension. Use proper flexible array.

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2025-07-31 10:52:49 +01:00
Flavio Ceolin
805701da49 bt: host: Use proper flexible array
0 length array is a GNU extension. Use proper C99 flexible
array.

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2025-07-31 10:52:49 +01:00
Vit Stanicek
9969ae59d9 samples: rtxxx-amp: Enable mimxrt700_evk/mimxrt798s/hifi4
Add remote target selection. Explicitly enable GPIO support in
amp_blinky. Disable peripherals driven from the hifi4 domain in the
cm33_cpu0 domain to overcome resource conflicts. Select mailboxes for
amp_mbox. Set CONFIG_DMA_TCD_QUEUE_SIZE for amp_audio_output and
amp_audio_loopback. Select i2s devices for amp_audio_loopback.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-07-31 10:52:33 +01:00
Vit Stanicek
837e745b06 samples: amp_audio_loopback: Change sample rate and initial block count
Decrease the sample frequency to 16 kHz to accomodate memory
constraints. As the SAI driver in RX mode requires more than a certain
amount of blocks to be free, change count of those prefilled.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-07-31 10:52:33 +01:00
Luis Ubieda
eb09070b8c tests: rtio: Add testcase to demonstrate multishot aborted on errors
By forcing IODEV test to throw errors and verifying no more CQE's are
coming through after the forced error.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2025-07-31 10:52:08 +01:00
Luis Ubieda
18b3faa4cd tests: rtio: iodev: fix: Add missing early return when error occurs
It appears this had not been exposed as the testsuite does not
exercise forcing errors for the IODEV. However, in the upcoming
testcase for error-handling of multi-shot items, it will be required.

Placed as standalone patch for the sake of clarity.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2025-07-31 10:52:08 +01:00
Luis Ubieda
d3628fc284 rtio: multishot: Stop resubmitting multishot items on error
As an error-handling strategy. The client then can recover from this
depending on the error and the number of occurrences.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2025-07-31 10:52:08 +01:00
Luis Ubieda
7b4644cb50 rtio: executor: split handling of one-shot and multi-shot completions
As their handling is not that similar and mixing them both affects
code readability. This patch does not affect functionality and does
not break any testsuite under rtio API.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2025-07-31 10:52:08 +01:00
Luis Ubieda
5505182b43 rtio: Assert multishot flag is not combined with txn or chained
There's no use-case covering this case and enforcing it will allow
simplify the logic for processing items with each of these items when
mutually exclusive.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2025-07-31 10:52:08 +01:00
Kesavan Yogeswaran
2aba39d870 cmake: Define zephyr_generated_headers as an interface library
Define `zephyr_generated_headers` as an interface library rather than a
custom target. This allows CMake libraries to depend on this target
AND propagate the dependency if needed using target_link_libraries.

Example:

If some user header includes offsets.h, even transitively, then
offsets.h must be generated before any source file that includes that
header is compiled. This can be captured by defining a library `foo` for
the header with a public link dependency on zephyr_generated_headers
using `target_link_libraries(foo zephyr_generated_headers)`. The
ordering dependency on the generated offsets.h header will then
propagate to `foo` and any libraries that link against `foo`, even
transitively. This was not possible before this CL because one cannot
use custom targets as public link dependencies with
target_link_libraries.

Signed-off-by: Kesavan Yogeswaran <hikes@google.com>
2025-07-31 10:51:43 +01:00
Tomasz Chyrowicz
b62965849a boards: Add nRF52840 dongle bare variant
Add a variant for builds that use debugger to flash the dongle,
effectively overwriting the stock nRF5 SDK bootloader.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2025-07-31 10:51:21 +01:00
Dmitrii Sharshakov
33f08a634d dts: boards: various: remove code-partition for RP2350
Updated linker scripts no longer necessitate that.

Users who employ a bootloader in their design should be able to adjust
partitioning more easily, removing IMAGE_DEF with a Kconfig if needed.

Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
2025-07-31 10:50:41 +01:00
Dmitrii Sharshakov
cbe6a716d3 soc: rp2350: add IMAGE_DEF using rom_start linker script
Use this approach for a simpler flow and to make relocation of images
into RAM easier.

Also do not force-select CONFIG_XIP (which is a default anyway), since
RP2350 can boot from SRAM.

Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
2025-07-31 10:50:41 +01:00
Mike J. Chen
2dc6793261 soc: imxrt5xx: add fusion f1 dsp backtrace support
Add needed backtrace helpders routines and enable
backtrace for the Xtensa Fusion F1 DSP in the
IMXRT595S.

Signed-off-by: Mike J. Chen <mjchen@google.com>
2025-07-31 10:49:54 +01:00
Martin Hoff
476e5c5fc6 tests: application_development: add new test for ram-based isr
This commit introduces the new test ram_context_for_isr that shows
how to configure an application (prj.conf, CMakeLists.txt, etc.) in
order to enable full ISR execution with a RAM context.

It resolves the issue of flash latency affecting real-time constraints
during ISR execution.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-07-30 17:37:43 -04:00
Martin Hoff
d5f67d04ee arch: split dynamic interrupt symbol
This commit introduces the SRAM_SW_ISR_TABLE option which is selected by
DYNAMIC_INTERRUPT. It allows splitting the DYNAMIC_INTERRUPT option into
two parts:

 - One for the relocation of the ISR vector table in RAM
 - One for the inclusion of functions needed to install ISRs dynamically

The goal is to later only select the relocation of the ISR vector table in
RAM and not all the associated functions from the dynamic interrupt
mechanism.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-07-30 17:37:43 -04:00
Chun-Chieh Li
426c3d1935 drivers: misc: ethos_u: support nuvoton numaker m55m1x
This adds frontend of arm ethos-u core driver for nuvoton numaker m55m1x.
Special notes include:
1. Leaving application overriding dcache flush/invalidate weak functions
   for cacheable NPU buffer
2. Configuring macs_per_cc to 256 in arm ethos-u core driver to match
   m55m1x ethos-u RTL config

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2025-07-30 17:37:27 -04:00
Chun-Chieh Li
84b305ac03 MAINTAINERS: add hal_ethos_u collaborator
Add Chun-Chieh Li "ccli8" as collaborator for hal_ethos_u driver

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2025-07-30 17:37:27 -04:00
Magpie Embedded
dec8a04508 modules: hal: infineon: Add Kconfig option for pullups in Wifi Host Driver
This option allows board configurations to specify how to set the SDIO
pull ups when the SPI bus goes to sleep, using the Infineon WHD.
This is a board specific value.

Signed-off-by: Magpie Embedded <magpieembedded@gmail.com>
2025-07-30 17:36:05 -04:00
Chun-Chieh Li
e9fee35b02 drivers: wifi: esp_at: fix AT+CIPSEND premature timeout
For TCP socket, this fixes AT+CIPSEND command with too short timeout.
ESP modem replies SEND OK/SEND FAIL dependent on network traffic
condition, so this timeout config changes as Kconfig option for being
configurable by user.

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2025-07-30 17:35:30 -04:00
Nick Brook
d7fb46ac04 cmake: Merge in DTS_ROOT from sysbuild
Merging in DTS_ROOT from sysbuild allows applications to specify a custom
DTS_ROOT path for the application via sysbuild.

Signed-off-by: Nick Brook <nrbrook@gmail.com>
2025-07-30 17:34:39 -04:00
Mario Paja
b5ab475ac1 samples: i2s: output: add nucleo_u385rg_q
Add nucleo_u385rg_q overlay and SAI conf
in samples/drivers/i2s/output

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-07-30 17:34:19 -04:00
Mario Paja
81eba04491 dts: st: u3: enable sai node for stm32u3xx
Define SAI nodes for STM32U3xx series

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-07-30 17:34:19 -04:00
Andrey Dodonov
286362087d net: http: service: extend HTTP service with config
Update the HTTP service API to allow setting per-service configuration,
currently it is only custom socket creation callback,
but in the future it can be extended with other parameter

Signed-off-by: Andrey Dodonov <Andrey.Dodonov@endress.com>
2025-07-30 17:32:43 -04:00
Tobias Meyer
ceadedf3ae drivers: sensor: tmp11x: add trigger for alert and pm
Allows to configure the alert or therm mode for triggers
based on the low/high temperature treshholds
Also adding simple PM

Signed-off-by: Tobias Meyer <tobiuhg@gmail.com>
2025-07-30 17:32:27 -04:00
Can Wang
afa529e2dc tests: Bluetooth: BR: Disable LOG in smp_general test suite.
Because the WRN logs from LOG module affect the test script
recognizes the string.

Signed-off-by: Can Wang <can.wang@nxp.com>
2025-07-30 17:32:12 -04:00
Raffael Rostagno
f9260ae2e5 drivers: pwm: ledc: esp32: Fix RC_FAST and REF_TICK
Depending on clock config init, some devices might be initialized
with RC_FAST clock enabled but not calibrated. Logic to detect if
clock is calibrated was fixed for this reason. Also, logic to set
RC_FAST and REF_TICK for devices with timer specific clocks (ESP32
and ESP32-S2) was also fixed.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-07-30 17:30:50 -04:00
Tahsin Mutlugun
ea7f01b172 tests: subsys: pm: Use LPTIMER as idle timer for MAX78002EVKIT board
Replace RTC with LPTIMER as the latter has a better time resolution.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
41339e2dd4 tests: subsys: pm: Use WUT as idle timer for MAX32655 boards
Use Wake-Up Timer which has a higher resolution than RTC as the sleep
timer for MAX32655 boards.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
bc94ca4994 tests: pm: power_mgmt_soc: Enable tests on MAX32657EVKIT boards
Enable SoC power management on MAX32657EVKIT secure and nonsecure
boards.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
ad938267db tests: pm: Enabled deferred logging for max32690evkit
Device goes to deep-sleep after tests finish so bytes in UART FIFO are
not transmitted. As a consequence, twister cannot receive project
success string and misinterprets the test result. Enable deferred
logging so that logs are flushed after tests.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Sadik Ozer
fa8de8b743 tests: subsys: pm: Remove unneeded flag
Not needed to disable MAX32_ON_ENTER_CPU_IDLE_HOOK flag anymore
It is not set if CONFIG_PM been defiend

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
8c33a9b252 boards: adi: max32657evkit: Change wake-up timer clock sources to INRO
Set wake-up timers' clock source to INRO as EVKIT does not have an XTAL
soldered by default.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
2a8997384d dts: arm: adi: max32657: Add Wake-Up Timer instances
Add wut0 and wut1 to max32657_common.dtsi.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
3516059509 dts: bindings: timer: max32: Make clock property optional
Some instances of timers such as wakeup timer are not tied to a clock
bus so make this property optional.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
6cc8b1645f dts: arm: adi: Update MAX32657 low power states and residencies
Set MAX32657 cpu power states as idle, standby and powerdown. Power down
mode is disabled by default and can only be entered by calling
pm_state_force. Note that residency durations may need to be updated
depending on the resolution of chosen sleep timer.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Sadik Ozer
10b3fe8d1c soc: arm: adi: MAX32657 add HAS_PM flag
Add HAS_PM flag to enable power management for MAX32657

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2025-07-30 17:25:03 -04:00
Sadik Ozer
4efec06a81 dts: arm: adi: Add MAX32657 power management states
Add basic power management states of MAX32657.
After UG/DS has been finalized the values and states
might be need to be updated.

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2025-07-30 17:25:03 -04:00
Sadik Ozer
ddf97dde7b dts: arm: adi: Add MAX32657 low power pins
Add low power pin definitions

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2025-07-30 17:25:03 -04:00
Tahsin Mutlugun
add6eb6726 soc: adi: max32: Use ceiling method to calculate exit latency ticks
The default 'near' mode results in zero exit latency ticks, which
prevents `sys_clock_set_timeout` from being called. This causes
the system to remain stuck in deep sleep modes. Use ceiling method
to obtain a nonzero exit latency tick count.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-07-30 17:25:03 -04:00
Alberto Escolar Piedras
f4794f848b doc boards/native: Remove orphan diagram
This diagram was superseded by layering_natsim.svg
When the native_posix related documentation was removed
this diagram stopped being used.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-07-30 17:24:32 -04:00
Piotr Krzyzanowski
1635e06eed tests: drivers: pwm_gpio_loopback: Add more channels
Add more channels testing nrf platforms.

Signed-off-by: Piotr Krzyzanowski <piotr.krzyzanowski@nordicsemi.no>
2025-07-30 17:23:12 -04:00
Piotr Krzyzanowski
bf017aa949 tests: drivers: pwm_gpio_loopback: Test improvement
Improve corss-channel test by setting different
duty cycle on channels. This modification will enable
detection of inter-channel effects like crosstalk.

Signed-off-by: Piotr Krzyzanowski <piotr.krzyzanowski@nordicsemi.no>
2025-07-30 17:23:12 -04:00