Commit graph

126,787 commits

Author SHA1 Message Date
Mahesh Mahadevan
94f93405c1 dts: nxp: Add sleep-output property
This property allows a user to specify the operation of a
pin in sleep mode.
By default, pins are configured to be output low in sleep mode.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-08-12 21:33:34 +02:00
Marcin Szkudlinski
01d35752a4 mm: add sys_mm_drv_map_* functions with region check
the commit adds sys_mm_drv_map_page_safe and sys_mm_drv_map_region_safe
functions, wrappers for sys_mm_drv_map_region and sys_mm_drv_map_region,
with additional check if a mapped region fits into given memory range

Using of those prevents collisions and/or hijacking of virtual memory

Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
2025-08-12 21:33:20 +02:00
Marcin Szkudlinski
3d461ee435 mm: add application access to unused_l2_start_aligned marker
this marker is an address of the very first byte not used by the linker,
with alignment to cacheline

Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
2025-08-12 21:33:20 +02:00
Marcin Szkudlinski
51d3c7aa07 mm: add external control to virtual memory regions
this commit removes creation of virtual memory regions from
Zephyr, allowing the application to create required regions

It is up the application to use virtual memory as needed,
zephyr however is keeping the table and ensures no memory
addresses overlaps

Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
2025-08-12 21:33:20 +02:00
Tim Pambor
7c0e4aecac samples: sensor_shell: Wait for prompt before sending command
Wait for prompt before sending command to ensure shell is ready.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-08-12 21:33:00 +02:00
Tim Pambor
df1e6f5290 serial: uart_native_pty: IRQ support
Add support for the interrupt-driven API. Interrupts are
emulated using a polling thread.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-08-12 21:33:00 +02:00
Van Petrosyan
00cee2c98d drivers: charger: add generic custom value types to property union
Add simple, typed containers for custom properties

Signed-off-by: Van Petrosyan <van.petrosyan@sensirion.com>
2025-08-12 21:32:35 +02:00
Ilya Tagunov
6a427995b0 soc: snps: rmx: replace custom buildlib with generic RMX linker option
Do not use the custom buildlib configuration for the RMX series as it
was replaced with several even more specific configurations in the
recent MWDT release. Pass the generic RMX option to the linker instead.

Signed-off-by: Ilya Tagunov <Ilya.Tagunov@synopsys.com>
2025-08-12 21:32:18 +02:00
Ilya Tagunov
d8a1e858a1 arcmwdt: linker: append -Hlld option only for ARC architecture
The option -Hlld of the MWDT linker is relevant only for classic ARC.
It is incompatible with ARC-V platform options like -av5rmx.

Signed-off-by: Ilya Tagunov <Ilya.Tagunov@synopsys.com>
2025-08-12 21:32:18 +02:00
Krzysztof Chruściński
0a51a1714d drivers: timer: nrf_rtc: Fix custom wrapping
Use channel 0 for RTC wrapping. Skip that channel when processing
channels.
Fix algorithm that prevents setting CC=0 when custom wrapping is used.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-08-12 21:31:55 +02:00
Jeppe Odgaard
7c796c417e shell: mqtt: add configurable delays
Allow changing delays via Kconfig values.

Use identical delay (`SHELL_MQTT_WORK_DELAY_MS`) for connect, subscribe and
process work instead of varying 1 or 2 second delay.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-08-12 21:31:35 +02:00
Henrik Brix Andersen
badfa0933e manifest: update net-tools to include CAN bus support
Update the net-tools revision to include support for managing host CAN
interfaces (e.g. zcan0 as used by the Zephyr native Linux SocketCAN
driver).

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-08-12 21:31:14 +02:00
Piotr Kosycarz
8d5823d814 tests: boards: nrf: xip: extend timeout
Flashing ext flash is long.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-08-12 21:30:55 +02:00
Emil Gydesen
965bcd6312 Bluetooth: CAP: Implement unicast to broadcast handover
Implement the unicast to broadcast handover procedure,
as per the Bluetooth CAP specificiation.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-12 12:35:57 +02:00
Jakub Zymelka
c535d6e5d1 drivers: adc: nrfx_saadc: Add support for DMM
Add support for DMM which manages cache and dedicated memory spaces.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2025-08-12 12:35:48 +02:00
Abderrahmane JARMOUNI
cafc00cc74 tests: kernel: mem_heap: enhance k_heap_free() API coverage
Enhance k_heap_free() API coverage by testing NULL free & double free
edge cases

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-08-12 12:35:38 +02:00
Abderrahmane JARMOUNI
e79be024e4 tests: kernel: mem_heap: enhance k_heap_calloc() API coverage
Enhance k_heap_calloc() API coverage by testing overflow and zero-size
edge cases

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-08-12 12:35:38 +02:00
Abderrahmane JARMOUNI
7f57759f9d tests: kernel: mem_heap: add k_heap_aligned_alloc() coverage
add test coverage for k_heap_aligned_alloc() k_heap API

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-08-12 12:35:38 +02:00
Artur Hadasz
9a1fe30199 bootloader: mcuboot: Changes needed to support AES256
This commit adds changes which are necessary to support
the AES256 encryption algorithm in mcuboot.

Signed-off-by: Artur Hadasz <artur.hadasz@nordicsemi.no>
2025-08-12 12:35:31 +02:00
Muzaffar Ahmed
445e993491 net: l2: wifi: Fix get RTS threshold in Wi-Fi shell
Changed the number of mandatory options of `rts threshold` to 1, so as
to allow no arguments for querying.

Signed-off-by: Muzaffar Ahmed <muzaffar.ahmed@silabs.com>
2025-08-12 12:35:22 +02:00
Tim Lin
e98920d695 drivers/i2c: it51xxx: Fix build assert to check port number instead of inst
Currently the build assert checks the number of I2C instances as
the available I2C target mode, which is incorrect.
This patch updates the build assert to check the I2C port_num instead,
since IT51xxx only supports I2C target mode on ports 0 to 2.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-08-12 09:56:19 +03:00
Jamie McCrae
637082efb0 lorawan: Imply soft-se instead of selecting it
This allows the software secure enclave to be changed to a
different implementation, which currently is not possible

Signed-off-by: Jamie McCrae <spam@helper3000.net>
2025-08-12 09:56:06 +03:00
Fabio Baltieri
2705260b27 cmake: deprecate the flash debug debugserver attach rtt targets
These call west right now, tell the user to call west directly instead.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-08-12 09:55:47 +03:00
Fabio Baltieri
ee5b5f30fe twister: always call flash directly
Drop the logic to use the generator "flash" target, that is using west
anyway, always call flash directly anyway so that those targets can be
deprecated.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-08-12 09:55:47 +03:00
Bill Waters
77a62d1b5b linker: noint memory region location
- There are linker file directives that must come at the
  start of the noinit region.  For example, the directive
  that allow that section to not exist in RAM before a
  certain address (. = MAX(ABSOLUTE(.), 0x34002000);).
- Before this update, those could only be added to the end
  of that region.  They will now have the option to be at the
  beginning or the end.

Signed-off-by: Bill Waters <bill.waters@infineon.com>
2025-08-12 09:55:12 +03:00
Ian Morris
e18cf0cfab boards: renesas: ek_ra8d1: added mikrobus node labels
Added mikrobus_serial, mikrobus_spi and mikrobus_header node
labels to EK-RA8D1 device tree board definition, allowing
compatible shield boards to be used.

Signed-off-by: Ian Morris <ian.morris.vf@renesas.com>
2025-08-12 09:54:57 +03:00
Aaron Fong
c9d50b6339 drivers: intc_dw: support multiple instances
Update the initializers to support platforms with multiple instances
of the DesignWare interrupt aggregator. Also ensure that the initialize
function calls irq_enable(). The calculation of the _sw_isr_table entry
also now takes CONFIG_GEN_IRQ_START_VECTOR into account.

Signed-off-by: Aaron Fong <afong@tenstorrent.com>
2025-08-12 09:54:43 +03:00
Hake Huang
d627d56b19 tests: display: add test case using display_harness
add a test case for display using  display harness

Signed-off-by: Hake Huang <hake.huang@nxp.com>
Co-authored-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-08-12 09:54:27 +03:00
Hake Huang
9e551f5877 twister: harness: add display harness
display harness to validate display content

Signed-off-by: Hake Huang <hake.huang@nxp.com>
Co-authored-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-08-12 09:54:27 +03:00
Quy Tran
c1d0dfdd06 tests: drivers: flash: Add config for test driver flash size
Add config TEST_DRIVER_FLASH_SIZE for Renesas RX130

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-08-12 09:54:10 +03:00
Quy Tran
15ac9af103 soc: renesas: rx: Update linker for using code flash
- RDP flash driver type1 requires copy code from ROM
to RAM to program/erase on code flash region

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-08-12 09:54:10 +03:00
Quy Tran
3e20f6e6b8 boards: renesas: Add support for flash driver on RSK-RX130-512kb board
Add flash driver support on RSK-RX130-512kb

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-08-12 09:54:10 +03:00
Quy Tran
aadf381bdf dts: rx: Add dts property for flash driver on RSK-RX130-512kb
Add dts for flash controller includes code and data flash region
on RSK-RX130-512kb

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-08-12 09:54:10 +03:00
Quy Tran
56ec47c62d drivers: flash: Add flash driver support for RX with flash type 1
- Add support for flash driver on RX with flash type 1
- Add bindings for flash driver on RX

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-08-12 09:54:10 +03:00
Michal Smola
add9e60c1d drivers: i2c: mcux_lpi2c: Support split role interrupts
Some NXP SoCs have dedicated interrupts for controller and target roles.
The i2c_mcux_lpi2c driver connects only one interrupt.
Add connection of the second interrupt, if enabled, to support SoCs with
split role interrupts.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
2025-08-11 15:59:07 -04:00
Andrey Dodonov
98db4d975c net: lib: http_server: prevent busfault if socket family is AF_UNSPEC
If webserver uses custom socket creation,
and it's family is AF_UNSPEC, net_sprint_addr will return NULL,
which leads to LOG_DBG crashing with busfault.
Add NULL check for that.

Signed-off-by: Andrey Dodonov <Andrey.Dodonov@endress.com>
2025-08-11 15:57:35 -04:00
James Smith
a317f194b9 boards: silabs: xg22_ek2710a: add support for pwm-leds
Add support for pwm-leds on xG22-EK2710A boards.

Signed-off-by: James Smith <james@loopj.com>
2025-08-11 13:24:10 -05:00
Robert Lubos
5e75627d1c tests: net: socket: udp: Add tests for resetting peer address
Verify that resetting peer address with AF_UNSPEC address family work as
expected.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-08-11 13:23:42 -05:00
Robert Lubos
09cbd286c5 net: connection: Use NET_CONN_*_PORT_SPEC flag when comparing ports
The NET_CONN_LOCAL/REMOTE_PORT_SPEC flags were set on the connection but
not really used. At the same time, when remote address was being
cleared, only the flag was unset, but the actual port number left
intact. This could lead to false port comparisons when remote address
was cleared from the connection context.

In order to avoid that, use the NET_CONN_*_PORT_SPEC flags to determine
whether to compare local/remote ports instead of checking the port value
right away (which may not be valid anymore if the flag is unset).

Also align with MISRA rules when comparing flags in other cases.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-08-11 13:23:42 -05:00
Robert Lubos
841035a2d6 net: connection: Fix mixed up comments
Local/remote address port comments were mixed up in the flags
documentation.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-08-11 13:23:42 -05:00
Robert Lubos
271e0c54ed net: context: Reset peer address on connect with AF_UNSPEC
As per POSIX, for non-connection-mode sockets the peer address should be
reset if AF_UNSPEC family type is provided to the connect() call:

  "If the sa_family member of address is AF_UNSPEC, the socket's peer
   address shall be reset.""

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-08-11 13:23:42 -05:00
Johann Fischer
b8b04075fb samples: video: capture: remove stray USB legacy stack configuration
The legacy USB device stack configuration used in the board
configuration overlay files has been deprecated. It is not causing CI
failures because the board lacks a test feature 'video' and is filtered
out in CI.

Besides the deprecated configuration, the sample code does not enable
the USB device stack, so it is not used anyway. Even if it were needed,
the correct way to enable logging via USB CDC ACM would be to use the
cdc-acm-console snippet.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-11 13:22:56 -05:00
Chris Friedt
821c142443 posix: sysconf: declare sysconf macro values more reliably
The `sysconf()` implementation in Zephyr can be macro-based or
library-based. Both approaches use the same set of runtime-invariant
definitions in `sys/sysconf.h`.

These were previously fine, as long as POSIX limits were
guaranteed to be defined. However, some C libraries omit definitions
for runtime-invariants values and instead force the application to
query values via `sysconf()`.

The specification formally supports that approach [1]. Normally,
definitions are allowed to do so "on specific implementations where the
corresponding value is equal to or greater than the stated minimum, but
is unspecified." In practice, that is not always the case, but we need
to be able to compile `sysconf()` anyway.

Notable constants that are missing in Picolibc or Newlib include:

- AIO_LISTIO_MAX
- AIO_MAX
- AIO_PRIO_DELTA_MAX
- CHILD_MAX
- DELAYTIMER_MAX
- HOST_NAME_MAX
- IOV_MAX
- LOGIN_NAME_MAX
- MQ_OPEN_MAX
- MQ_PRIO_MAX
- OPEN_MAX
- PAGESIZE
- PAGE_SIZE
- PTHREAD_DESTRUCTOR_ITERATIONS
- PTHREAD_KEYS_MAX
- PTHREAD_THREADS_MAX
- RTSIG_MAX
- SEM_NSEMS_MAX
- SEM_VALUE_MAX
- SIGQUEUE_MAX
- SS_REPL_MAX
- STREAM_MAX
- SYMLOOP_MAX
- TIMER_MAX
- TTY_NAME_MAX

For greater portability, define those values using

1. a Kconfig-derived definition,
2. a symbolic minimum value (required by the spec), or
3. a numeric minimum value (if the required symbolic minimum is missing).

[1]
https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/limits.h.html

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-08-11 13:22:06 -05:00
Chris Friedt
ef7c4dc3aa net: lib: ocpp: use sys_clock_gettime() instead of gettimeofday()
Use the native zephyr sys_clock_gettime() call instead of the XSI
gettimeofday(), since XSI is not required here and would normally
require CONFIG_XSI_SINGLE_PROCESS to be selected.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-08-11 13:21:11 -05:00
Chris Friedt
e197c312cc net: lib: ocpp: select Kconfig for reentrant function gmtime_r()
Select CONFIG_POSIX_C_LANG_SUPPORT_R for the reentrant version of
gmtime(), gmtime_r().

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-08-11 13:21:11 -05:00
Ayush Singh
dc1d6edc0c boards: beagle: beagleconnect_freedom: Add mcumg uart to dts
- Seems most boards add the chosen property in the base devicetree as
  well, so do the same.
- Tested on samples/subsys/mgmt/mcumgr/smp_svr

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-08-11 13:20:24 -05:00
Ayush Singh
91e3915427 boards: beagleconnect_freedom: Enable swap using scratch
- The fs layout for MCUboot on bcf has the following requirements:
  - slot0 and slot1 are on different flash (say A and B).
  - flash A and B have different sector sizes (8K and 4K).
  - slot1 should be >= slot0. This is due to the fact that slot0 is in
    the soc flash. Hence want to have as much usable space as possible.

- Taking all of the above into consideration, swap using scratch seems
  to be the appropriate algorithm for bcf.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-08-11 13:20:24 -05:00
Ayush Singh
cbcac24a9a boards: beagle: beagleconnect_freedom: Resize mcuboot partitions
- MCUboot seems to work fine with 40K partition. However, it seems like
  swap using scratch algorithm does not work when slot partition size is
  not a multiple of scratch partition size. So made this partition 56K.
- Tested using samples/subsys/mgmt/mcumgr/smp_svr
- Only uses a bit over 32K. Since flash sector size is 8K, 40K partition
  seems to be a good choice with decent headroom.
- The final partition is as follows:
  - MCUboot: 56K
  - slot0: 640K
  - slot1: 640K
  - scratch 128K

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-08-11 13:20:24 -05:00
Chris Friedt
eef8e9f4f2 posix: limits: use numeric minimum values
Ensure that minimum values are numeric and align with the specification.

Define runtime invariant values using Kconfig options or constant
minimum values.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-08-11 13:19:43 -05:00
Andrej Butok
bad99fff50 drivers: nxp: flash_mcux_flexspi: add jedec_id check
- Adds JEDEC-ID check to the flash_mcux_flexspi driver
  if it is defined in DTS.
- Avoids applying DTS settings to a different flash module.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-08-11 13:19:01 -05:00