Commit graph

12,113 commits

Author SHA1 Message Date
Sylvio Alves
d68fbf451e samples: boards: espressif: add lp core timer wakeup sample
Add LP core timer wakeup sample for ESP32-C6. The LP core
wakes periodically via LP timer alarm, signals the HP core,
re-arms the timer using shared memory configuration, and
halts until the next cycle.

The HP core tracks wake count using RTC_DATA_ATTR and
enters deep sleep via sys_poweroff(). Sleep duration is
configurable via CONFIG_ULP_LP_CORE_LP_TIMER_SLEEP_DURATION_US.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-25 18:05:16 -06:00
Sylvio Alves
2489056f91 samples: boards: espressif: add lp core gpio wakeup sample
Add LP core GPIO wakeup sample for ESP32-C6. The LP core
configures LP_IO_0 as input with pull-up and low-level
interrupt using the Zephyr GPIO API, then halts. When the
pin is pulled low, the LP core wakes and signals the HP
core via ulp_lp_core_wakeup_main_processor().

The HP core tracks wake count using RTC_DATA_ATTR and
enters deep sleep via sys_poweroff().

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-25 18:05:16 -06:00
Michele Sardo
9686c403f2 samples: net: openthread: add NUCLEO-WBA65RI support
Adds board-specific configuration and devicetree overlay for the
ST NUCLEO-WBA65RI. This enablement allows the OpenThread coprocessor
sample to run using the UART_ASYNC_API by default on this target.

Included changes:
- boards/nucleo_wba65ri.conf: Sets UART ASYNC API.
- boards/nucleo_wba65ri.overlay: Configures DMA and UART nodes.

Signed-off-by: Michele Sardo <msmttchr@gmail.com>
2026-02-25 13:18:07 +01:00
Waqar Ahmed
5a69c851f9 samples: uart: async_api: Add NUCLEO_L4R5ZI board support
Add support of NUCLEO_L4R5ZI in async API sample with DMA-enabled
LPUART1 devicetree overlay.

Configuration:
- DMA1 channel 5 for TX (DMAMUX slot 34)
- DMA1 channel 4 for RX (DMAMUX slot 35)
- LPUART1 on pins PG7 (TX) and PG8 (RX)
- Baud rate: 115200

Tested on hardware with loopback configuration.

Signed-off-by: Waqar Ahmed <waqaryounasawan@outlook.com>
2026-02-25 13:07:00 +01:00
Matthias Plöger
7cd3b3c5ef samples: boards: stm32: pwm mastermode
Add an sample for usage of the timer/pwm mastermode configuration.
Timer is configured to generate 2 TRGO events per pwm period to the
interconnect matrix.

Signed-off-by: Matthias Plöger <matthias.ploeger@phoenixcontact.com>
2026-02-25 13:04:05 +01:00
Alberto Escolar Piedras
0d4a73400c pmci: mctp: samples: Remove unnecessary include
These samples do not seem to need the unistd.h header, but including it
limits us to C libraries which have it, which as it is a POSIX
extension is not all.
So let's not include it so we do not limit ourselves unnecessarily.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2026-02-24 16:07:26 -06:00
Sylvio Alves
9cdd4be660 soc: espressif: esp32c6: add lp core coprocessor support
Add ULP LP core coprocessor support including:
- Kconfig options for wakeup sources (LP timer, LP IO)
- LP core startup assembly with BSS clear and vector table
- HP core initialization and LP core binary loading
- Deep sleep poweroff with ULP wakeup enable
- Linker script updates for LP core memory sections

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-24 16:04:32 -06:00
Sylvio Alves
6caf9f6f37 dts: espressif: esp32c6: reorganize lp sram memory layout
Reorganize ESP32-C6 LP SRAM into dedicated memory regions:
- ulp_shm: ULP shared memory for LP core communication
- ipc_shm: IPC shared memory for mbox driver
- lp_rtc: RTC data section for deep sleep persistence
- retainedmem: retained memory region with zephyr,retained-ram

Reduce main LP SRAM from 16K to 15K to accommodate the new
dedicated regions in upper LP SRAM. Update mbox overlay
references from shmlp to ipc_shm nodelabel.

Remove deep_sleep and retained_mem board overlays that are no
longer needed with the updated base DTS.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-24 16:04:32 -06:00
Sylvio Alves
4d1976e1b1 soc: espressif: rename ULP_ Kconfig symbols to ESP32_ULP_
Add ESP32_ vendor prefix to all ULP Kconfig symbols to follow
Zephyr naming conventions. This affects Kconfig definitions,
source files, linker scripts, sample configs, and documentation.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-24 16:04:32 -06:00
Tobias Kässer
e29602e48a samples: sensor: accel_trig: add activity detection and error reporting
Enhance accel_trig sample with activity detection support and
improved error reporting for testing interrupt functionality.

Signed-off-by: Tobias Kässer <t.kaesser@gmail.com>
2026-02-24 16:01:57 -06:00
Johann Fischer
7158c64690 include: drivers: usb: rename UDC buffer to USB buffer
Rename it to USB buffers so we can use it in host support without
confusion. Keep the UDC_* macros for now, we can deprecate and remove
them later.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2026-02-24 16:01:21 -06:00
Robert Lubos
653ebccc49 samples: net: Add FTP client sample
Add a minimal FTP client sample, exposing FTP operations via network
shell.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-02-24 15:37:25 +01:00
Jose Alberto Meza
c07a731624 samples: drivers: espi: Create common Intel RVP device tree binding
Binding required does not need to be EC vendor-specific,
it simply requires 2 board GPIOs definition.

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
2026-02-24 10:37:34 +01:00
Thinh Le Cong
dcda778708 samples: boards: renesas: Add comparator sample support for fpb_ra8e1
Add comparator sample support for fpb_ra8e1 board

Signed-off-by: Thinh Le Cong <thinh.le.xr@bp.renesas.com>
2026-02-24 10:34:05 +01:00
Thinh Le Cong
b295e27b2e samples: boards: renesas: Add ELC sample support for fpb_ra8e1
Add ELC sample support for Renesas fpb_ra8e1

Signed-off-by: Thinh Le Cong <thinh.le.xr@bp.renesas.com>
Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-02-24 10:34:05 +01:00
Thinh Le Cong
48314fe3dd samples: drivers: adc: Add sample support for Renesas fpb_ra8e1
Add support for sample apps on Renesas fpb_ra8e1 board:
- samples/drivers/adc/adc_dt

Signed-off-by: Thinh Le Cong <thinh.le.xr@bp.renesas.com>
2026-02-24 10:34:05 +01:00
Thinh Le Cong
b38dbd0a06 samples: drivers: dac: Add sample support for Renesas fpb_ra8e1
Add support for sample app on Renesas fpb_ra8e1:
- samples/drivers/dac

Signed-off-by: Thinh Le Cong <thinh.le.xr@bp.renesas.com>
2026-02-24 10:34:05 +01:00
Thinh Le Cong
303ed5f586 samples: drivers: counter: Add sample support for Renesas fpb_ra8e1
Add support for sample app on Renesas fpb_ra8e1:
- samples/drivers/counter/alarm

Signed-off-by: Thinh Le Cong <thinh.le.xr@bp.renesas.com>
2026-02-24 10:34:05 +01:00
Jilay Pandya
6ccef4d773 drivers: stepper: rename dt-bindings
stepper-ctrl is used as suffix for motion control drivers
stepper-driver is used as suffix for stepper drivers in mfd devices

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2026-02-24 10:32:31 +01:00
Jilay Pandya
dc934c36be drivers: stepper: split stepper.h and rename apis
rename stepper_drv_driver_api to stepper_driver_api
rename stepper_driver_api to stepper_ctrl_driver_api

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2026-02-24 10:32:31 +01:00
Kyle Bonnici
a8c4eb7bfc dts: formatting lower case hex
Some PRs may have not been rebased to be validated using the new
dts-linter that endoced the hex values in lower case. This commit
formats the hex values in lower case for consistency.

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2026-02-23 13:31:41 -06:00
Xavier Razavet
204952a8f0 samples: openthread: shell: mcxw .conf files updated
Enabling the IEEE802154 CSL endpoint to support MCXW72 as a SEED role.
prj-ot-host.conf and sample.yaml corrected for compilation purpose.

Signed-off-by: Xavier Razavet <xavier.razavet@nxp.com>
2026-02-23 16:59:43 +00:00
Martin Moya
996feaea91 bluetooth: services: cts: Add local time information characteristic
CTS is missing the Local Time Information characteristic and this
commit adds the UUID and the full characteristic to its service.

The peripheral example has been updated as well to use this and
implement it on the example so it is easy to test it out.

Signed-off-by: Martin Moya <moyamartin1@gmail.com>
2026-02-23 16:58:13 +00:00
Ritesh Kudkelwar
cb1788da00 samples: bluetooth: clarify dynamic L2CAP channel naming
Rename fixed_chan to l2cap_chans to avoid confusion with fixed channels.

Signed-off-by: Ritesh Kudkelwar <ritesh.kumar0793@gmail.com>
2026-02-23 11:35:01 +00:00
Ritesh Kudkelwar
a35e1b2962 samples: bluetooth: add L2CAP CoC server sample
Add a simple L2CAP Connection-oriented Channel (CoC) server sample that
accepts incoming connections and exchanges data.

Signed-off-by: Ritesh Kudkelwar <ritesh.kumar0793@gmail.com>
2026-02-23 11:35:01 +00:00
Ritesh Kudkelwar
3489f2997a samples: bluetooth: add L2CAP CoC client sample
Add a client sample that connects to an L2CAP CoC server and demonstrates
basic data transmission.

Signed-off-by: Ritesh Kudkelwar <ritesh.kumar0793@gmail.com>
2026-02-23 11:35:01 +00:00
Carlo Caione
b4c5ee9b66 samples: drivers: lora: add native STM32WL build tests
Add build-only test entries for the nucleo_wl55jc board using the
native LoRa backend for both send and receive samples.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2026-02-23 11:34:35 +00:00
Shontal Biton
4f66943327 drivers: counter: Add counter driver for BURTC in Silabs s2 and s3
Add support for using BURTC as regular counter,
without overriding the sleeptimer.

Signed-off-by: Shontal Biton <shontal1005@gmail.com>
2026-02-23 11:32:26 +00:00
Shontal Biton
9a7edfb850 samples: counter: alarm: change timer define name
TIMER is defined in some HAL interfaces causing multiple declaration.
Changing TIMER to SAMPLE_TIMER solves this problem.

Signed-off-by: Shontal Biton <shontal1005@gmail.com>
2026-02-23 11:32:26 +00:00
Miguel Gazquez
8a4bf07f44 samples: uart: async_api: Move k_sleep at the end of the loop
The sample has a main loop that sleep 5s every iteration. The sleep is
currently at the beginning of the loop, so we have to wait 5s before
getting the first transfer.
This make debugging with this sample troublesome.

Move the sleep of 5s at the end of the loop

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
2026-02-20 12:12:38 -08:00
Dev Joshi
925224a98e drivers: fuelgauge: add support for SOH property
This commit adds support for State-of-Health (SOH) property in the
fuel_gauge subsystem.

Signed-off-by: Dev Joshi <devbhave@qti.qualcomm.com>
2026-02-20 10:28:42 -08:00
Yassine El Aissaoui
06583dddb2 samples: bluetooth: peripheral: Add NXP board to testcase
Adding the platforms here helps maintain build
coverage for the Bluetooth subsystem on our
architecture and helps catch integration or
configuration regressions early.

Signed-off-by: Yassine El Aissaoui <yassine.elaissaoui@nxp.com>
2026-02-20 13:33:44 +01:00
Dipak Shetty
41affb0901 samples: bluetooth: add peripheral ets sample
Added elapsed time service (ETS) GATT service sample.
The sample allows the user to set the system realtime clock
on the board and read the time.

Signed-off-by: Dipak Shetty <shetty.dipak@gmx.com>
2026-02-20 13:30:34 +01:00
Emil Gydesen
dd4a01af48 Bluetooth: TBS: set_uri_scheme_list single string instead of array
Refactor bt_tbs_set_uri_scheme_list to take a single string instead
of an array of URIs. This should not affect applications much
in any way (and may actually be easier to use), but simplifies
the implementation significantly, and reduces memory footprint.

Additionally it also make the client and server more similar
as bt_tbs_client_read_uri_list just returns it as a single
string as well.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-20 10:10:38 +01:00
Benjamin Cabé
344fca3bf0 doc: samples: kernel: Add zephyr:code-sample:: directive to metairq sample
Update Meta-IRQ sample README to use `zephyr:code-sample` directive and
standardize "Meta-IRQ" naming.

Fixes zephyrproject-rtos/zephyr#104002

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-20 07:08:35 +01:00
Benjamin Cabé
5e7bd9e6ad doc: samples: kernel: add relevant-api entry to msg_queue sample
Ensures this sample is properly cross-referencing the Doxygen API group
it's demonstrating.

Also fix wording of the sample title to align with guidelines

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-20 07:08:35 +01:00
Alain Volmat
8cee805b20 samples: display: remove per board CONFIG_HEAP_MEM_POOL_SIZE
Get rid of per board CONFIG_HEAP_MEM_POOL_SIZE. The heap mem
pool size is now set globally within the sample Kconfig itself.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2026-02-20 07:08:14 +01:00
Alain Volmat
a40d717862 samples: display: define HEAP_MEM_POOL_ADD_SIZE_ for display buffer
Add a requirement of a default 65536 bytes of HEAP in order to be
able to allocate memory for drawing the rectangles of the sample.
Considering that by default the sample is drawing rectangles which
are 1/4 of the display width and have a ratio twice width vs height,
such size should allow to run the sample up to display of 1024 pixel
wide in RGB565 pixel format.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2026-02-20 07:08:14 +01:00
Alain Volmat
cdd26cf40e samples: display: display api uses uint16_t for rectangle values
display API uses uint16_t for x,y,width,height values hence uses thoses
in the sample.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2026-02-20 07:08:14 +01:00
Alain Volmat
8ad0d4995e samples: display: make unique sample exit place
Simplify error handling by having all exit point at same place
and avoid having too many #ifdef statements in the sample.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2026-02-20 07:08:14 +01:00
Alain Volmat
37c0255d2b samples: display: use DISPLAY_BITS_PER_PIXEL macro
Use the DISPLAY_BITS_PER_PIXEL macro to compute the necessary
buffer size.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2026-02-20 07:08:14 +01:00
Braeden Lane
d61e0dc819 samples: adc: Add Infineon PSOC4 board overlays
Add device tree overlays for ADC samples and tests on
CY8CKIT-041S-MAX and CY8CPROTO-041TP boards.

Configures ADC channels with pinctrl for analog inputs on
available header pins. Includes single-ended and differential
channel configurations demonstrating various ADC features.

Added overlays for:
- samples/drivers/adc/adc_dt
- samples/drivers/adc/adc_sequence
- tests/drivers/adc/adc_api
- tests/drivers/adc/adc_error_cases

Signed-off-by: Braeden Lane <Braeden.Lane@infineon.com>
Co-authored-by: Deepika R <deepika@aerlync.com>
Co-authored-by: Sayooj K Karun <sayooj@aerlync.com>
2026-02-20 07:08:02 +01:00
Maureen Helm
19c2786849 samples: sysbuild: Enable hello world for several MAX32 boards
Enables the sysbuild hello world sample application on MAX32 boards to
demonstrate using the soc's arm cortex-m4 and risc-v cores together. The
build system produces two separate application images, one for each core,
which can be flashed in two steps with the JLink runner.

1. Ensure you can access the serial console configured for the rv32 variant
   of your test board, e.g. setting JP4 and JP5 jumpers to connect LPUART
   to the USB UART connection CN1 on max32655evkit.

2. Build the sysbuild sample for your board's ARM board ID, which will
   automatically build the remote image for the board's RV32 variant, e.g.:

  $ west build -p -b max32655evkit//m4 samples/sysbuild/hello_world/ \
    -T sample.sysbuild.hello_world

3. Flash both domains at once with the JLink runner:

  $ west flash -r jlink

4. Hello world for the RV32 core will be printed to the serial console

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2026-02-20 07:03:31 +01:00
Radosław Koppel
81801a976d samples: bluetooth: peripheral_gap_svc: Adding sample
Adding a sample that presents how to implement non default GAP service
inside the application.

Signed-off-by: Radosław Koppel <r.koppel@k-el.com>
2026-02-19 09:58:49 -06:00
Fabio Baltieri
3ddbc5f9ac samples: button: fix build issue when led0 is defined but disabled
Seems like some boards have an LED that is mounted but not connected to
the gpio by default and needs a jumper or solder bridge to work, and in
that case the led0 node is defined with status = "disabled".

Rework the led_dt_spec led0 initialization to handle that and just build
with no led support.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-02-19 09:24:25 +01:00
Robert Robinson
320f3b4893 samples drivers: counter: alarm: Add support for nRF7120
After porting nRF7120 to Zephyr, all samples that were supported in
sdk-nrf must now be supported in Zephyr instead.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-02-18 14:42:51 +00:00
Robert Robinson
1c33298b40 samples: sysbuild: hello_world: Add support for nRF7120
After porting nRF7120 to Zephyr, all samples that were supported in
sdk-nrf must now be supported in Zephyr instead.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-02-18 14:42:51 +00:00
Robert Robinson
66aa83a8d3 samples: sensor: qdec: Add support for nRF7120
After porting nRF7120 to Zephyr, all samples that were supported in
sdk-nrf must now be supported in Zephyr instead.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-02-18 14:42:51 +00:00
Robert Robinson
3902ab8632 samples: drivers: i2c: rtio_loopback: Add support for nRF7120
After porting nRF7120 to Zephyr, all samples that were supported in
sdk-nrf must now be supported in Zephyr instead.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-02-18 14:42:51 +00:00
Robert Robinson
6d543bede7 samples: boards: nordic: system_off: add support for nRF7120
After porting nRF7120 to Zephyr, all samples that were supported in
sdk-nrf must now be supported in Zephyr instead.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-02-18 14:42:51 +00:00