Commit graph

126,787 commits

Author SHA1 Message Date
Johann Fischer
eb8f5666a6 samples: wpan_serial: use new USB device stack
Use new USB device stack.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
670df85752 samples: sensortile_box: use new USB device stack
Use new USB device stack.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
e2b01357c4 samples: hci_uart: use new USB device stack
The change only affects board nrf52840dongle_nrf52840.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
3f39e1c612 samples: modbus: use new USB device stack
Use new USB device stack.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
c2d00d51eb sample: net: remove legacy USB code from the zperf sample
Remove legacy netusb code.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
5edefa3d73 samples: usb: add a sample that covers legacy netusb
Add a sample that covers legacy CDC EEM/ECM and RNDIS functions.
Network functionality is limited to ICMP.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
84d31614c9 samples: usb: move the legacy code out of the HIC USB sample
Move the legacy code from HCI USB sample to a separate sample in the
legacy directory.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
375e8e6ccb samples: usb: move the legacy code out of the USB MSC sample
Move the legacy code from the USB MSC sample to a separate sample in the
legacy directory. Make legacy sample very simple and drop all filesystem
dependencies.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
1e50aaa6e0 samples: usb: move the legacy code out of the HID mouse sample
Move the legacy code from the HID mouse sample to a separate sample in
the legacy directory.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
a7b0f71925 samples: usb: move the legacy code out of the CDC ACM sample
Move the legacy code of the CDC ACM sample to a separate sample in the
legacy directory.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
a466cd8026 samples: usb: make console-next sample default
Move legacy console sample to legacy directory and make console-next
sample default.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
089482ee0f samples: usb: make WebUSB next sample default
Move legacy WebUSB sample to legacy directory and make WebUSB next
sample default.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
a53b49fd31 samples: usb: make USB DFU next sample default
Move legacy USB DFU sample to legacy directory and make USB DFU next
sample default.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
eb50aec6f5 sample: usb: move Audio 1.0 samples to legacy
Move Audio 1.0 headphones-microphone and headset samples that
demonstrate only legacy device stack functionality to the legacy
directory.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
57cc2868de board: remove CDC ACM serial backend legacy Kconfig defconfig
The driver for the last board, sam4l_wm400_cape, that uses the legacy
device stack was not ported in time, remove CDC ACM serial backend
configuration from this board.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Johann Fischer
b03b65a9b5 boards/snippets: use new USB device stack for CDC ACM serial
Use new USB device stack (next) for CDC ACM serial backend. Keep the
legacy configuration for the boards whose drivers are not ported.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 11:57:39 -04:00
Saravanan Sekar
4cd4839122 MAINTAINERS: Add Open Charge Point Protocol (OCPP) lib
add code owner for OCPP native stack

Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
2025-08-06 11:57:13 -04:00
Saravanan Sekar
fcefe855b0 samples: net: ocpp: Charge Point test sample
A test sample for ocpp charge point with 2 connectors, central
system steve server is used with test setup (public available)

Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
2025-08-06 11:57:13 -04:00
Saravanan Sekar
d466ee679b tests: net: ocpp: Add test suit for OCPP lib
Add test suit for OCPP lib with one complete charging session
with a random meter values.

Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
2025-08-06 11:57:13 -04:00
Saravanan Sekar
50e989a6d0 doc: ocpp: Describe Open Charge Point Protocol (OCPP) support
Describe OCPP Charge Point (CP) support and illustrate how to implement
CP sample.

Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
2025-08-06 11:57:13 -04:00
Saravanan Sekar
1a4f092348 net: ocpp: Add a support for Open Charge Point Protocol(OCPP v1.6) stack
Basic support for open charge point protocol v1.6 as native stack with
below functionality

1. Framework for ocpp stack and central system communication using RPC over
   websocket according to occp-j.
2. Core profile with basic PDU

Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
Co-authored-by: Sanjay Vallimanalan <sanjay@linumiz.com>
2025-08-06 11:57:13 -04:00
Muzaffar Ahmed
ce6ef6ac95 drivers: wifi: siwx91x: Add support for link mode query
Mapped the link mode (wireless mode) from wireless info to the wifi
status API.

Signed-off-by: Muzaffar Ahmed <muzaffar.ahmed@silabs.com>
2025-08-06 16:20:14 +02:00
Bjarki Arge Andreasen
c326bf6bc7 drivers: counter: counter_nrfx_timer: fix fast instance clock ctrl
Update handling of fast instances to take into account whether
CONFIG_CLOCK_CONTROL is enabled or not.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-08-06 17:13:11 +03:00
Gaetan Perrot
13a6dc5391 drivers: wifi: nrf_wifi: add NULL check in parse_sband
Ensure event is not NULL before accessing its members in
nrf_wifi_parse_sband().

This adds a defensive check to avoid potential null dereference and ensures
the function returns early when event data is invalid (i.e., zero channels
or bitrates).

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-08-06 17:12:51 +03:00
Emil Gydesen
b0f1eb30fb Bluetooth: AICS: Remove bad check in handle_set_gain_op
AICS gain mode does not prevent local nor remote operations from changing
the gain setting value. The gain setting value shall simply be ignored if
in the BT_AICS_MODE_AUTO_ONLY or BT_AICS_MODE_AUTO modes, but the local
application and remote devices can still modify the gain setting value.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-06 17:12:27 +03:00
Robin Kastberg
fa165da667 iar: ltorg directive not supported
Currently this directive is not supported in EWARM 9.70.1,
it will be in future versions, but we want Zephyr 4.2
to work with IAR EWARM 9.70.1.

Signed-off-by: Robin Kastberg <robin.kastberg@iar.com>
2025-08-06 17:12:16 +03:00
Fabian Blatz
076994f492 modules: lvgl: Fix stdlib usage
LVGL already provides an implementation wrapping a C standard library into
its own lv_* functions. Add them to the CMakeLists and set the appropriate
defines for them.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-08-06 17:12:00 +03:00
Jukka Rissanen
c3c7394ff3 tests: net: dns_resolve: Increase ztest stack size
The ztest stack size might be too small for the net.dns.resolve.hostname
tests that was added recently. Increase it to 1280 bytes.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-08-06 17:11:44 +03:00
Jamie McCrae
7fefc5b898 tests: boot: test_mcuboot: Fix test for new MCUboot mode
Fixes the test by switching what modes are used

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-08-06 17:11:33 +03:00
Jamie McCrae
c15a53fb8e modules: mcuboot: Default to swap using offset
Updates a missed Kconfig with this change

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-08-06 17:11:33 +03:00
Jamie McCrae
b759b987bb tests: boot: mcuboot_data_sharing: Fix test
Fixes issues with test after the change was made to using swap
using offset

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-08-06 17:11:33 +03:00
Kesavan Yogeswaran
9f59461036 cmake: Clarify comment for zephyr_generated_headers library
Clean up the comment around the zephyr_generated_headers CMake library
to make it more accurate, now that the library is an interface library
rather than a custom target.

This is a follow-up to non-blocking feedback from
https://github.com/zephyrproject-rtos/zephyr/pull/92927.

Signed-off-by: Kesavan Yogeswaran <hikes@google.com>
2025-08-06 17:11:21 +03:00
Sean Madigan
1b7b6af785 bluetooth: host: add frame space update support
This commit adds support for the frame space update feature
to the bluetooth host.

This is mainly just a wrapper around the frame space update
HCI command and event.

Signed-off-by: Sean Madigan <sean.madigan@nordicsemi.no>
2025-08-06 17:11:04 +03:00
Sean Madigan
9bbc906b30 bluetooth: host: Fix BT_LE_LOCAL_SUPPORTED_FEATURES_SIZE define
Fix BT_LE_LOCAL_SUPPORTED_FEATURES_SIZE define, as this was
not working correctly without brackets around
CONFIG_BT_LE_MAX_LOCAL_SUPPORTED_FEATURE_PAGE.

Also fix CONFIG_BT_LE_MAX_LOCAL_SUPPORTED_FEATURE_PAGE help,
as this was talking about remote featues, where this only
applies for local features.

Also update for new CONFIG_BT_CONN_DYNAMIC_CALLBACKS kconfig

Signed-off-by: Sean Madigan <sean.madigan@nordicsemi.no>
2025-08-06 17:11:04 +03:00
Tomasz Moń
382c0dea69 drivers: udc_dwc2: Periodic Transfer Interrupt support
Add Kconfig option to enable Periodic Transfer Interrupt mode for
isochronous endpoints. The tradeoff is reduced CPU usage in exchange for
not timing out isochronous transfers.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-08-06 17:10:40 +03:00
Dominik Ermel
46051de5a7 modules: fatfs: Update FAT module version check
Update FFCONF_DEF check to match the new value in the module.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2025-08-06 17:10:28 +03:00
Dominik Ermel
4d89cb8e22 manifest: Update ELM FAT FS module
Update to version 0.16.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2025-08-06 17:10:28 +03:00
Keith Packard
4c2ac61a82 lib/libc: Provide optional check for time_t size
The LIBC_ALLOW_LESS_THAN_64BIT_TIME option disables a compile-time check
ensuring that time_t can hold 64-bit values. This check can prevent
accidental builds on targets with 32-bit time_t and the consequent 2038
issues.

This option is enabled when using the native C library as i386 glibc
uses 32-bit time_t.

A new file, validate_libc.c, is added to lib/libc to contain this and any
future libc tests. The check for CONFIG_EXTERNAL_LIBC is moved to
libc/CMakeLists.txt to ensure that this new file is always compiled.

Signed-off-by: Keith Packard <keithp@keithp.com>
2025-08-06 17:10:15 +03:00
Tim Lin
ff293bb61a drivers/flash: it51xxx: Add the M1K flash driver
The flash M1K driver supports read (up to 1K), write (1K), and
erase (4K) operations, which can be accessed via DLM.
Accessible flash regions include internal e-Flash or external SPI
flash via FSCE# or FSCE1#.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-08-06 17:09:46 +03:00
Tim Lin
6114e6a381 soc: ite: it51xxx: Prevent floating FSPI pins by enabling tri-state
To prevent FSPI pins from floating, which may cause internal leakage
and increase SoC power consumption, tri-state is enabled by default.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-08-06 17:09:46 +03:00
Johann Fischer
9d06111346 Revert "drivers: counter: sam_tc: Big fix for alarm 1"
This reverts commit 8f5daca5e5.
The CI is failing on sam4l_wm400_cape after this commit.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-06 17:09:26 +03:00
Robert Lubos
0f66e9c680 net: context: Don't assert on address family mismatch
Providing a wrong address to the connect() call by the application is no
reason to assert, connect() should just return an error in such case.
Therefore remove the faulty assert and replace it with error log
instead.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-08-06 12:16:42 +03:00
Yunshao Chiang
db02fdc8ef drivers: adc: it51xxx: fix the ADC channels sampling flow
The original code process causes the following two issues:

1. The first sample is always 0 because the `ctx` sequence in `data` is
   assigned the input sequence until the `adc_context_start_read`. As a
   result, the `while (channels) { ... }` loop is not executed, and
   `adc_enable_measurement` is not called.

2. Since the `ctx` sequence in `data` is assigned in
   `adc_context_start_read`, which occurs after the `while (channels) {
   ... }` loop, the ADC samples the previously set channel.

Signed-off-by: Yunshao Chiang <Yunshao.Chiang@ite.com.tw>
2025-08-06 12:16:30 +03:00
Ren Chen
7ac7a0e0bd soc: ite: it8xxx2: increase sspi_clk and fix clock divisor setting
This commit raises the sspi clock from 24MHz to 48MHz and
corrects the clock divisor setting for it82xx2 chips.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2025-08-06 12:16:19 +03:00
Ren Chen
4f413d85eb soc: ite: it8xxx2: disable sspi clock and automatic clock gating
This commits disables sspi clock and automatic clock gating.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2025-08-06 12:16:19 +03:00
Emil Gydesen
a74a524e3b tests: Bluetooth: Tester: Add missing target latency and PHY
The struct bt_audio_codec_cfg recently got new fields that
previously defaulted to
BT_AUDIO_CODEC_CFG_TARGET_LATENCY_BALANCED and
BT_AUDIO_CODEC_CFG_TARGET_PHY_2M but was not set by the BTP
commands.

For now we restore the previous functionality by setting the
values to the same as we did before, until the BTP commands
are changed (if they are changed).

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-06 12:16:07 +03:00
Fabio Baltieri
d9f2f70133 samples: ensure struct addrinfo is always zero initialized
There's few samples with a struct addrinfo on the stack that only
initialize some of the fields, feeding whatever is on the stack for the
rest to the getaddrinfo() code. Bumped into an issue where that
sometimes happens to set the bit of the (ai_flags & AI_NUMERICHOST),
making host resolution failing.

Add a couple of memset on the affected samples so this does not happen.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-08-06 12:15:49 +03:00
Fabio Baltieri
9fc2201502 samples: add a couple of missing freeaddrinfo
Add a freeaddrinfo() call on a couple samples using getaddrinfo(). Not
really relevant since these execute once and exit but good to have in
case someone copy paste that in a loop.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-08-06 12:15:49 +03:00
Fabio Baltieri
6ebc196008 net: sockets: getaddrinfo: use k_ variants for memory allocation
The rest of the network (and generally Zephyr subsystem code) use the k_
prefixed variants for memory allocation, which results in data goin in
the _system_heap rather than the stdlib z_malloc_heap.

The code in getaddrinfo use the z_ ones as well apart from the actual
getaddrinfo implementation, which seems like an oversight, change it to
use k_calloc and k_free as well.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-08-06 12:15:49 +03:00
Jisheng Zhang
13bdae0ad0 arch: arm: Add initial support for Cortex-M52 Core
Add initial support for the Cortex-M52 Core which is an implementation
of the Armv8.1-M mainline architecture.

The support is based on the Cortex-M55 support that already exists in
Zephyr.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
2025-08-06 12:15:23 +03:00