Commit graph

12,113 commits

Author SHA1 Message Date
Daniel Kampert
cc3c0d04cf drivers: sensor: Add driver for MAX32664C
- Add DTS for MAX32664C
- Add driver for MAX32664C
- Add example for MAX32664C Heart rate measurement with Bluetooth
- Add private attributes and channels for health measurement

Closes: #93473

Signed-off-by: Daniel Kampert <DanielKampert@kampis-elektroecke.de>
2025-10-22 18:35:14 +03:00
Zhaoxiang Jin
b0a0aba444 samples: i2s_codec: Enable nxp micfil sample
Enable nxp micfil sample with 'CONFIG_USE_DMIC=y',
you can hear the voice played from the on-board micphone.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-10-22 18:34:20 +03:00
Lei Xu
3efbbe66c1 samples: fs: fs_sample: Increase CONFIG_MAIN_STACK_SIZE for imx91
Increase CONFIG_MAIN_STACK_SIZE to 8192 to avoid possible crash.

Signed-off-by: Lei Xu <lei.xu@nxp.com>
Signed-off-by: Jiafei Pan <jiafei.pan@nxp.com>
2025-10-22 18:34:09 +03:00
Quang Le
d92a870a10 samples: drivers: spi: Add support for RZT2M
Enable SPI driver sample for RZT2M

Signed-off-by: Quang Le <quang.le.eb@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-22 15:59:39 +03:00
Jonas Berg
df9af472b9 boards: shields: Add Adafruit LPS22 pressure sensor shield
Product photo from https://learn.adafruit.com/assets/91880

Tested with the command in the index.rst file.

Compile testing of the overlay file is done with the
samples/sensor/pressure_polling sample.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-10-22 09:03:28 +02:00
Adrian Friedli
46507d626c samples: basic: blinky: fix readme
Update description to match code snippet.

Signed-off-by: Adrian Friedli <adi@koalatux.ch>
2025-10-22 09:00:50 +02:00
Mario Paja
e3005ec508 samples: i2s: output: add nucleo_f429zi
Add nucleo_f429zi board in samples/drivers/i2s/output

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-10-22 08:57:45 +02:00
Khoa Nguyen
21c4bcbecb samples: modules: tflite-micro: Support tflm_ethosu for ek_ra8p1
Add support sample app `tflm_ethosu` for Renesas ek_ra8p1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-10-22 08:56:25 +02:00
Tien Nguyen
b270174b7e samples: drivers: spi_flash: Add Flash driver for RZ/A3UL, T2M, N2L
Add Flash driver for RZ/A3UL, T2M, N2L

Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-22 08:55:53 +02:00
Tien Nguyen
480e539d23 samples: driver: jesd216: Add Flash driver for RZ/A3UL, T2M, N2L
Add Flash driver for RZ/A3UL, T2M, N2L

Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-22 08:55:53 +02:00
Stanley Huang
a78bf4f180 board: Rename raytac_an54l15q_db to raytac_an54lq_db_15
Renamed raytac_an54l15q_db to raytac_an54lq_db_15.

Signed-off-by: Stanley Huang <stanley@raytac.com>
2025-10-22 08:52:18 +02:00
Titouan Christophe
b677e828d0 drivers: crypto: hash_pkt.in_buf is now constant
Previous commit made the input buffer of the hash packet constant.
Let's therefore adapt typing where used, and remove inappropriate
casts of constant buffers to non-constant ones.

All the "backend" hashing functions already take a constant input,
these changes only affect the "plumbing" between the Zephyr crypto
API and the actual implementation where applicable.

Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
2025-10-21 22:55:24 +03:00
John Batch
1bb33cde81 drivers: adc: Adding Infineon HPPASS ADC samples
Adding files to allow running the following samples for the
Infineon HPPASS SAR ADC driver on the PSOC C3 family of MCUs:
  * samples/drivers/adc_dt
  * samples/drivers/adc_sequence

Signed-off-by: John Batch <john.batch@infineon.com>
2025-10-21 22:54:55 +03:00
Mathieu Choplain
bccf183531 samples: subsys: usb: testusb: improve usage instructions
Add some content in the testusb sample's README to provide a few more hints
that can be handy for USB newcomers trying to get the sample running along
with testusb.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 22:54:06 +03:00
Nicolas Pitre
d93561da68 samples: zbus: benchmark: Filter SMP from benchmark_sync test
The benchmark_sync test produces incorrect results on SMP systems due to
a race condition between the producer thread and subscriber threads that
only occurs with parallel execution.

Thread configuration:
- Producer thread: priority 5 (lower priority, runs later)
- Subscriber threads (8): priority 3 (higher priority, runs first)

Expected behavior on uniprocessor:
  1. Producer publishes message
  2. Subscriber immediately preempts producer (priority 3 < 5)
  3. Subscriber processes message, calls atomic_add(&count, 256)
  4. Producer resumes, continues to next message

  Result: All messages counted before producer checks final count.

Race condition on SMP:
  CPU 0 (Producer):              CPU 1-3 (Subscribers):
  -----------------              ----------------------
  Publish msg 1
  k_msgq_put(sub1) ✓
                                 k_msgq_get() → processing
  Publish msg 2
  k_msgq_put(sub2) ✓
                                 k_msgq_get() → processing
  ...continues...
  Publish msg 128 ✓
  atomic_get(&count)             Still processing...
  → Reports incomplete count!    atomic_add() comes later

On SMP, the producer doesn't get preempted since it runs on a different
CPU from the subscribers. It races ahead and checks atomic_get(&count)
while subscriber threads on other CPUs are still processing messages.

Observed results:
- Non-SMP: Bytes sent = 262144, received = 262144 ✓
- SMP: Bytes sent = 262144, received = 260352 ✗ (7 messages lost)

This is a benchmark test design issue, not a zbus bug. The test assumes
subscribers complete before the producer finishes, which doesn't hold on
SMP systems. Filter SMP configurations from this test variant for now.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2025-10-21 22:52:47 +03:00
Nicolas Pitre
43371bc7ee samples: zbus: msg_subscriber: Filter SMP from pool exhaustion tests
The "_too_small" test variants intentionally configure an isolated buffer
pool with only 2 buffers to validate proper error handling when the pool
is exhausted during notification of 16 msg_subscriber observers. These
tests are likely to fail on SMP systems due to a buffer recycling race
condition:

Expected behavior (uniprocessor):
  Publisher Thread:
    1. Allocate buf1 for bar_msg_sub1 ✓
    2. k_fifo_put(sub1_fifo, buf1)
    3. Allocate buf2 for bar_msg_sub2 ✓
    4. k_fifo_put(sub2_fifo, buf2)
    5. Try allocate buf3 for bar_msg_sub3 → FAIL -ENOMEM

  Subscriber threads process messages after notification completes,
  pool exhausts at subscriber #3 as expected.

SMP race condition:
  CPU 0 (Publisher):         CPU 1 (bar_msg_sub1):  CPU 2 (bar_msg_sub2):
  ------------------         ---------------------  ---------------------
  Alloc buf1 ✓
  k_fifo_put(sub1, buf1)
                             k_fifo_get() → buf1
                             zbus_sub_wait_msg()
                             net_buf_unref()
                             → buf1 FREED!
  Alloc buf2 ✓
  (reuses buf1!)
  k_fifo_put(sub2, buf2)
                                                    k_fifo_get() → buf2
                                                    net_buf_unref()
                                                    → buf2 FREED!
  Alloc buf3 ✓
  (reuses buf1 again!)
  ...continues...
  All 16 allocations succeed!

On SMP systems, subscriber threads on other CPUs may consume and free
buffers quickly enough that they are recycled back to the pool before the
publisher's notification loop can exhaust it. The test's assumption that
notification completes before subscribers run does not hold with parallel
execution.

Since this is a test design limitation (not a zbus bug), filter SMP
configurations from these specific test variants rather than attempt to
artificially slow down subscribers or change thread priorities.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2025-10-21 22:52:47 +03:00
Eric Ocasio
196a1da504 pmci: mctp: samples: Add support for MCTP over USB.
Adds support for the USB device binding for MCTP. Binding created based on
the DMTF specification for USB Transport Binding. The overall design of
this binding follows the existing UART and I2C+GPIO bindings that already
exist in Zephyr.

Signed-off-by: Eric Ocasio <eric.ocasio@nxp.com>
2025-10-21 12:25:56 -04:00
Tim Pambor
fff32576b6 samples: canopennode: no_storage: disable program download
Boards that use MCUboot to start XIP from external flash default to
CONFIG_CANOPENNODE_PROGRAM_DOWNLOAD=y. However, in the no_storage
sample, dependencies such as CONFIG_FLASH are disabled. This causes
build errors. Work around this by explicitly disabling program download
in the no_storage sample configuration.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-21 12:23:06 -04:00
Fin Maaß
43084fe77d doc: samples: drivers: clock_control: fix dts include
fix dts include for doc

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-10-21 17:20:33 +01:00
Cla Mattia Galliard
630a496096 samples: net: QoS: Add quality of service sample
Add a sample, that shows the power of quality of service in Zephyr.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
2025-10-21 17:25:56 +03:00
Cla Mattia Galliard
a4723d4a95 samples: net: pkt_filter: Add priority filters
Add some priority filters to the sample for demonstration purpose.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
2025-10-21 17:25:56 +03:00
Dag Erik Gjørvad
de402cb465 boards: nordic: Add initial support for nRF54LM20A/ns
Add board files for nRF54LM20A/ns.
Update existing nRF54LM20A board files to support this.

Signed-off-by: Dag Erik Gjørvad <dag.erik.gjorvad@nordicsemi.no>
2025-10-21 17:24:11 +03:00
Torsten Rasmussen
0371ffda18 samples: pass on board revision in sysbuild/hello_world
Pass on the board revision to remote image build if specified for the
application image board target.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2025-10-21 17:24:00 +03:00
Torsten Rasmussen
1d827bc5f8 samples: cleanup sysbuild/hello_world sample
Remove the prompt for REMOTE_BOARD.
REMOTE_BOARD should not be having a prompt or be configurable on command
line.
Instead REMOTE_BOARD should be defined based on the SoC as this will
allow creation of new boards using the same SoC, and thereby be able
to build the sample out-of-the-box for any supported SoC.

This allows us to remove several single line config files.

For SoCs with more than two CPU clusters, such as the nRF54h20, then a
choice is provided to select specific core.

Remove the REMOTE_BOARD restriction, as this sample will build and run
even for single core SoCs, and may be useful for testing other sysbuild
multi-image features even for single cores SoCs.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2025-10-21 17:24:00 +03:00
Hieu Nguyen
08ffc97e2a samples: drivers: spi: Add SPI support for Renesas RZ/V2L, A3UL
Add SPI sample support for Renesas RZ/V2L-SMARC, RZ/A3UL-SMARC

Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
2025-10-21 17:23:23 +03:00
Jukka Rissanen
5d1f6d4569 samples: Remove not needed CONFIG_ZVFS_OPEN_MAX option
The number of file/socket descriptors is now determined by
CONFIG_ZVFS_OPEN_ADD_SIZE_* options and the networking side
already sets the minimum values so the CONFIG_ZVFS_OPEN_MAX
option is not needed.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-10-21 17:22:03 +03:00
Jukka Rissanen
0215b0aad1 samples: net: Remove / replace the CONFIG_ZVFS_OPEN_MAX option
Remove unneeded CONFIG_ZVFS_OPEN_MAX config option as it is now
controlled by number of net_context i.e., CONFIG_NET_MAX_CONTEXTS

Some of the samples now use CONFIG_ZVFS_OPEN_ADD_SIZE_NET_SAMPLE
to specify the sample socket needs.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-10-21 17:22:03 +03:00
Jukka Rissanen
f39ee91940 samples: net: Allow app to control the amount of sockets used
Create a Kconfig entry that allows the application to control
how many sockets it needs.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-10-21 17:22:03 +03:00
Hou Zhiqiang
a73b55d153 samples: ipc: openamp_rsc_table: add imx93evk m33 support
Add openamp_rsc_table support on imx93evk Cortex-M33, communication
with Linux which runs on imx93 Cortex-A55.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
2025-10-21 11:42:38 +03:00
Zhaoxiang Jin
ce09e3d3c0 samples: i2s_codec: enable i2s_codec samples for frdm_mcxn236
Enable i2s_codec samples for frdm_mcxn236.
With 'CONFIG_USE_DMIC=n', you can hear the sine wave
from the codec.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-10-21 11:42:06 +03:00
Jonas Berg
78d7984ba8 boards: shields: Add Adafruit LIS3MDL magnetometer shield
Product photo from https://learn.adafruit.com/assets/86994

Tested with the command mentioned in the index.rst file.

Compile testing of the overlay file is done via the mag_polling
sample.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-10-21 11:40:50 +03:00
Tony Han
76b510c5f8 samples: pwm: add sama7g54_ek.overlay file to the blink_pwm sample
The sama7g54-ek has the LEDs those can be driven by GPIO or PWM.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-20 19:19:20 -04:00
Johann Fischer
e295a387b9 samples: usb: hid-keyboard: allow to set polling period at runtime
Add an example of how to set the polling period at runtime.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-10-20 19:19:00 -04:00
Zhaoxiang Jin
9c8d93228e samples: enable rt700 die_temp_polling sample
1. The updated regex better matches device names
for various temperature sensors. If a device name
contains hyphens, the new regex can match it.

2. enable rt700 die_temp_polling sample

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-10-20 19:18:36 -04:00
Logan Saint-Germain
4ff0457c24 samples: sensor: sensor_shell: Added channels count for sensor_shell tests
Use of the `sensor get` help. No channel provided allows the sensor_shell
to iterate through every channels. Getting the last channel gives the last
channel index and therefor the channel count. Provide futur proofing for
new channels.

Signed-off-by: Logan Saint-Germain <l.saintgermain@catie.fr>
2025-10-20 19:17:51 -04:00
Logan Saint-Germain
52d0ad2c67 drivers: sensor: max30101: Enhanced driver to support triggers
The max30101 sensor driver doesn't support triggers.
Add `.trigger_set` API and corresponding Kconfig and
device tree parameters. Add `SENSOR_CHAN_AMBIENT_LIGHT`
and `SENSOR_TRIG_OVERFLOW`.

Signed-off-by: Logan Saint-Germain <l.saintgermain@catie.fr>
2025-10-20 19:17:51 -04:00
Logan Saint-Germain
8a1371c5d6 drivers: sensor: max30101: Enable support for multiple instance
The max30101 sensor driver doesn't support multiple instance.
Update Kconfig and maxim,max30101.yaml for instance based
configuration. Propagate changes over existing files.

Signed-off-by: Logan Saint-Germain <l.saintgermain@catie.fr>
2025-10-20 19:17:51 -04:00
WenBin Zhang
d7c1ec670f samples: zperf: Add STM32 eth_tx_async mode test
enable STM32 etc_tx_async mode for testing in CI

Signed-off-by: WenBin Zhang <freey7955@gmail.com>
2025-10-20 14:23:56 -04:00
Gerard Marull-Paretas
f8a76ef29c samples: drivers: jesd216: add support for SF32LB
Allow obtaining SFDP parameters using SF32LB driver.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-10-20 14:23:43 -04:00
Benjamin Cabé
312688d7ea Revert "posix: xsi: streams: deprecate CONFIG_XOPEN_STREAMS"
This reverts commit b762a43738
which was merged without enough time in review.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-20 11:28:54 -04:00
Cristian Bulacu
7503b317a6 modules: openthread: platform: Add support to query for PTR & SRV records
This commit enhances DNS upstream resolver functionality by adding
support to query for PTR and SRV records.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-10-20 11:28:08 -04:00
Valerio Setti
0854d239bf samples: subsys: updatehub: remove PSA overlay and test case
Updatehub now only use PSA Crypto API for crypto support and it
automatically enables Mbed TLS when TF-M is not available in the build,
so there is no need for neither a specific test case for PSA nor
the overlay file.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-10-20 11:26:13 -04:00
Khoa Tran
180fbf21dc samples: drivers: rtc: Add tests support for rtc driver on Renesas
RA boards

Add samples test support for RTC driver on these Renesas RA boards:
- ek_ra8m1
- ek_ra8d1
- ek_ra8p1
- ek_ra4l1

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-20 11:19:13 -04:00
Gerard Marull-Paretas
36849ca15e samples: drivers: watchdog: add support for SF32LB watchdog
So sample can be used by SF32LB based boards.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-10-20 11:57:13 +02:00
Benjamin Cabé
3bd604d819 doc: samples: remove manually added links to sample sources
The zephyr:code-sample directive automatically adds a link to the sample
source code on GitHub -- remove all manually added links that are just
redundant and subject to bitrot / copy-paste errors.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-20 11:55:55 +02:00
Marcio Ribeiro
0c1863461d boards: esp32: rework i2s pin config on dtsi, dts, and overlay files
Reworks i2s entries on esp32 pinctrl.dtsi and .dts board files and
adequates overlay files regarding to i2s samples

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-10-20 11:52:31 +02:00
Chris Friedt
b762a43738 posix: xsi: streams: deprecate CONFIG_XOPEN_STREAMS
CONFIG_XOPEN_STREAMS does not follow the pattern of other XSI Option
Groups, where the Option Group name is not the same as the feature
test macro that indicates it is supported by the implementation.

Deprecate CONFIG_XOPEN_STREAMS and rename it to CONFIG_XSI_STREAMS.

For more information, please see
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/\
V1_chap02.html#tag_02_01_05_09

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-19 20:53:48 -04:00
Alessandro Manganaro
fd51dde8f5 samples: net: wpan_serial: Excluding nucleo_wba65ri platform
As CONFIG_BUILD_ONLY_NO_BLOBS feature is not implemented for
stm32wbax socs, we have temporarily excluded
nucleo_wba65ri platform from CI build tests.

Issue https://github.com/zephyrproject-rtos/zephyr/issues/95495
will be updated accordingly

Signed-off-by: Alessandro Manganaro <alessandro.manganaro@st.com>
2025-10-17 21:06:54 -04:00
Jonas Berg
f484cc7835 boards: shields: Add Adafruit SHT40 SHT41 and SHT45 humidity shields
Product photo from https://learn.adafruit.com/assets/99220
with the license CC BY-SA 3.0

The bindings file for the sensor does not give any guidance on the
"repeatability" property, so I did choose "high".

Tested with the SHT40 and SHT41 shields (not SHT45).
Compile-testing of the overlay file is done via the dht_polling sample.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-10-17 21:04:29 -04:00
Alain Volmat
1061b8bc87 samples: video: tcpserversink: add stm32n6570_dk jpeg conf
Add conf / overlay files in order to enable the jpeg encoder
on the stm32n6570_dk.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-17 22:01:44 +03:00