Commit graph

126,787 commits

Author SHA1 Message Date
Jamie McCrae
15744c2701 dts/boards: nordic: nrf5340: Split partition into s and ns versions
Splits up partition configuration for nrf5340-based cpuapp board
targets for secure and non-secure versions, the secure version now
has an extra 16KiB per slot which was previously wrongly reserved
for TF-M partitions which the secure board target does not use

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-09-03 11:02:52 +02:00
Tony Han
6c1b1dc600 board: atmel: sam: remove warning suppress for duplicate unit-address
As the compiling warning "duplicated unit-address" been solved by
using a common parent node, remove the suppress from makefiles.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-09-03 08:56:44 +02:00
Tony Han
06fc36e496 drivers: ethernet: sam_eth: get the register address from parent node
Get the register address from the common parent node as the device
tree updated in the last commit.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-09-03 08:56:44 +02:00
Tony Han
17981d2db9 dts: arm: atmel: refactor to use common parent nodes for sam ethernet
The ethernet mac and mdio share registers, refactor them to have common
parent nodes.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-09-03 08:56:44 +02:00
Benjamin Cabé
c62985fd4b doc: usb: re-organize doxygen groups for usb hardware
USB host, device, Type-C, and BC1.2 are now all grouped under a
top-level USB entry in the "Device drivers" doxygen group.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-03 08:56:35 +02:00
John Gietzen
e7709ec329 boards: st: Add I3G4250D gyroscope for stm32f411e_disco board
Add support for I3G4250D gyroscope that is present on D revisions
of the stm32f411e_disco board.

Signed-off-by: John Gietzen <john@gietzen.us>
2025-09-03 08:56:27 +02:00
John Lin
a5c33fda39 boards: raspberrypi: rpi_pico: Add MCUboot variants
Add MCUboot variants to RPI Pico / Pico W and SysBuild parititions:
 - rpi_pico/rp2040/mcuboot
 - rpi_pico/rp2040/w/mcuboot

Add MCUboot variants to RPI Pico 2 / Pico 2 W and SysBuild partitions:
 - rpi_pico2/rp2350a/m33/mcuboot
 - rpi_pico2/rp2350a/w/m33/mcuboot

Signed-off-by: John Lin <john.lin@beechwoods.com>
2025-09-03 08:56:17 +02:00
Henrik Brix Andersen
36f78b52b7 scripts: valgrind: suppress missing clean-up in nct_new_thread()
Suppress memory leaks detected by valgrind originating from
nct_new_thread(), part of the native_sim CPU thread emulation.

This covers calls to posix_new_thread() as well, since this function simply
calls nct_new_thread (but may be optimized out by the compiler).

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-09-03 06:10:49 +02:00
Fabio Baltieri
867676c906 twister: pass flash_command to the harness
Add the necessary logic to pass the custom flash_command to the pytest
harness.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-09-03 06:10:37 +02:00
Fabio Baltieri
a31f784e95 twister: add a --flash-command flag
Currently twister requires west to flash a board, either directly using
west-flash or indirectly through the cmake flash target.

Add an option to specify a custom flash script, this is passed a
build-dir and board-id flags so it can be used to implement custom
flashing scripts in a system that does not use west.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-09-03 06:10:37 +02:00
Jonas Berg
5857aee4ab boards: shields: Add Sparkfun RV8803 RTC shield
Product photo from
https://www.sparkfun.com/sparkfun-real-time-clock-module-rv-8803-qwiic.html

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 06:10:16 +02:00
Jonas Berg
30fbfffb67 boards: shields: Add Adafruit AHT20 temp and humidity sensor shield
Product photo from https://learn.adafruit.com/assets/91687
with the licence CC BY 3.0

Tested with the command mentioned on the index.rst page.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 06:10:01 +02:00
Jonas Berg
5f5638b1cb boards: shields: Add Adafruit DPS310 pressure sensor shield
Product photo from https://learn.adafruit.com/assets/87727
with the license CC BY-SA 3.0

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 06:09:41 +02:00
Jun Lin
e9d470b2f4 ec_host_cmd: shi: npcx: not reset when receiving bad data
When the SHI driver receives data from the host and finds it is invalid
(due to a checksum error or an unsupported protocol version),
it currently resets the state machine, initializes the output buffer,
and waits for CS de-assertion. Upon CS de-assertion, the driver resets
the state machine and initializes the output buffer again. This commit
removes the first redundant reset and re-initialization in the function
`shi_npcx_bad_received_data()`, improving the driver’s efficiency.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
2025-09-03 06:09:25 +02:00
Mario Paja
5af3adf66f drivers: i2s: stm32_sai: fix h7xx DMA configuration
This change fixes STM32H7xx dma configuration.
PeriphInc and MemInc should be the same for both directions.
MemDataAlignment should be set to DMA_MDATAALIGN_HALFWORD

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-09-03 01:44:22 +02:00
Jonas Berg
12a8eaf47d boards: shields: Add Adafruit APDS9960 proximity sensor shield
Product photo from https://learn.adafruit.com/assets/89850

Tested with the command mentioned on the index.rst page.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:43:07 +02:00
Jonas Berg
7428a84667 boards: shields: Add Adafruit 24LC32 EEPROM shield
Product photo from https://learn.adafruit.com/assets/123033
with license CC BY-SA 3.0.

Tested with the command mentioned on the index.rst page.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:42:31 +02:00
Jonas Berg
97d5bae13f boards: shields: Add product photos to some shields
The photos are from
https://learn.adafruit.com/assets/13421
https://learn.adafruit.com/assets/31967
https://learn.adafruit.com/assets/9187
and have the license CC BY-SA 3.0

I have cropped the photos, downsampled to width 500 px and
converted to webp.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:42:10 +02:00
Aditya Chopra
32789e550d drivers: sensor: paj7620: Fix potential integer overflow in driver
Fix Coverity issue CID 524766: A potential integer overflow could occur
in paj7620_set_sampling_rate() due to multiplication of
sensor_value->val1 instance(which is of type int32_t) with 1000000
without typecasting it to int64_t.

Fixes #90482

Signed-off-by: Aditya Chopra <adityachopra2912@gmail.com>
2025-09-03 01:41:47 +02:00
Jonas Berg
89d1c52687 boards: shields: Add Adafruit VCNL4040 proximity sensor shield
Product photo from https://learn.adafruit.com/assets/78982
with license CC BY-SA 3.0

Tested with command mentioned in the index.rst page.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:40:17 +02:00
Mario Paja
a5107fbc0a drivers: i2s: stm32_sai set mem_block to NULL after STOPPING
Set mem_block to NULL after the STOPPING command in order to exit
TX callback at the end of the buffer transmission.

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-09-03 01:40:09 +02:00
Mario Paja
abb3c2a472 drivers: i2s: stm32_sai fix tx callback mem_block release
This change fixes a wrong buffer release on tx callback which
was not correctly fixed by
https://github.com/zephyrproject-rtos/zephyr/pull/94696.

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-09-03 01:40:09 +02:00
Jonas Berg
2581729925 boards: shields: Add Adafruit HT16K33 LED matrix shield
Product photo from https://learn.adafruit.com/assets/87051
with the license CC BY-SA 3.0

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:37:48 +02:00
Vinayak Kariappa Chettimada
eba31282e8 samples: Bluetooth: observer: Extended Scanning on BBC Micro Bit board
Add configuration overlay file to support observer sample
with Extended Scanning on BBC Micro Bit board.

Due to slow CPU, there will be assertions, and this commit
(for now) validates build-only. And the sample may run for
a duration until it asserts.

Asserts:

- ASSERTION FAIL [start_us == (aux_start_us + 1U)]
  @ WEST_TOPDIR/zephyr/subsys/bluetooth/controller/ll_sw/
  nordic/lll/lll_scan_aux.c:359
  This will happen for small aux offset value, definitely
  for the 300 us because CPU usage latency to setup such
  auxiliary PDU reception on nRF51 is high due to slow CPU.

- ASSERTION FAIL [0]
  @ WEST_TOPDIR/zephyr/subsys/bluetooth/controller/ll_sw/
  nordic/lll/lll_scan_aux.c:592
    prepare_cb: Actual EVENT_OVERHEAD_START_US = 579
  This will happen due to CPU usage latencies scheduling
  the radio events, due to slow CPU.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-09-03 01:36:57 +02:00
Vinayak Kariappa Chettimada
53835e9524 samples: Bluetooth: observer with 10 ms continuous scanning
Updated observer sample to use 10 ms continuous scanning
parameters.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-09-03 01:36:57 +02:00
Vinayak Kariappa Chettimada
230df77993 Bluetooth: Controller: Relax radio packet pointer assignment deadline
Relax the radio packet pointer assignment deadline assertion
until access address being transmitted. The PDU buffer is
probably only needed just after access address is being
transmitted or received by the radio. This will give some
more breathing room for slow CPUs like in nRF51x SoCs.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-09-03 01:36:57 +02:00
Jonas Berg
4227016559 boards: shields: Add Adafruit LIS2MDL magnetometer shield
The product photo is from https://learn.adafruit.com/assets/88773
with license CC BY-SA 3.0

Tested with the command mentioned on the index.rst page.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:32:49 +02:00
Jeppe Odgaard
451193f2e3 drivers: sensor: explorir_m: check transceive return value in init
Check `explorir_m_uart_transceive`'s return value in `explorir_m_init` and
return the value if not 0.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-09-03 01:32:37 +02:00
Daniel Hajjar
a47f304bdf lib: libc: minimal: Refactor stdbool.h for C23
Updated minimal libc to use the type "bool" which was introduced in C23
instead of defining it as a macro.

Link: https://en.cppreference.com/w/c/header/stdbool
Signed-off-by: Daniel Hajjar <daniel.hajjar16@gmail.com>
2025-09-03 01:28:42 +02:00
Jonas Berg
222c79c1fb boards: shields: Add Adafruit DRV2605L haptics driver shield
Product photo from https://learn.adafruit.com/assets/122966
with license CC BY-SA 3.0

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:28:05 +02:00
Benjamin Cabé
81a6d60069 test: rtc: add maxim,ds3231-rtc to build_all test suite
Ensure this driver is tested in the build_all test suite.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-03 01:24:15 +02:00
Benjamin Cabé
ce024da41a test: rtc: build_all: no need for explicit status="okay"
DT node are okay by default, so drop unnecessary status="okay"
properties.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-03 01:24:15 +02:00
Benjamin Cabé
abc03fe279 drivers: rtc: ds3231: make header file private
rtc_ds3231.h only contains register definitions and bitmasks used
internally by the driver - make this header file private.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-03 01:24:15 +02:00
Benjamin Cabé
774271ad09 boards: infineon: increase boostrap size for cyw920829 soc
Fix CI issues whereby arch.arm.swap.common.no_optimizations test is
failing due to overlapping sections

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-02 19:19:40 -04:00
Jonas Berg
57126f2836 boards: shields: Add Adafruit MCP9808 temperature sensor shield
Product photo from https://learn.adafruit.com/assets/102984
with the license CC BY-SA 3.0

Tested with the command mentioned on the index.rst page.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:19:10 +02:00
Adib Taraben
4ca352b052 phy_adin2111.c: correctly assign state parameter with state from device
This fixes an unintialized variable access problem in callback.

Signed-off-by: Adib Taraben <theadib@gmail.com>
2025-09-03 01:18:54 +02:00
Aksel Skauge Mellbye
c1ead6e68a manifest: Update hal_silabs to include simplicity_sdk v2025.6.1
Update HAL to pull in latest upstream fixes for Silicon Labs
Series 2 devices.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-09-03 01:17:26 +02:00
Henrik Brix Andersen
8a29bfad2f doc: develop: west: alias: add example for auto-excluding platforms
Add an example west alias for automatically excluding certain platforms
when running Twister via west.

This is especially useful for excluding the 32-bit native_sim target when
running on hosts systems without a 32-bit host C library
(i.e. Linux/AArch64).

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-09-03 01:16:50 +02:00
Jonas Berg
bc28fb1b19 boards: shields: Add Adafruit INA219 current sensor shield
Product photo from https://learn.adafruit.com/assets/104390
which has the license CC BY-SA 3.0

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

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:16:21 +02:00
Alexander Apostolu
b4783e5eb0 doc: hardware: peripherals: sensor: temp_polling: fix compile error
Fix compile errors in the sensor documentation for temperature
polling - extra curly braces and unused variable.

Signed-off-by: Alexander Apostolu <apostolu240@gmail.com>
2025-09-03 01:16:11 +02:00
Pisit Sawangvonganan
fa3f2e1b2a modbus: serial: rename rtu_tx_adu to modbus_rtu_tx_adu
Renamed the static function `rtu_tx_adu` to `modbus_rtu_tx_adu`
for naming consistency with `modbus_rtu_rx_adu`.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2025-09-03 01:10:49 +02:00
Benjamin Cabé
5b7bf2e68a include: drivers: rtc: counter: deprecate counter-based DS3231 driver
There is a "native" RTC driver for DS3231 now (maxim,ds3231-rtc, one of
the multiple functions implemented as MFD) so do all we can to
discourage the use of the legacy, counter-API based, driver.

Flag the compatible as deprecated.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-03 01:10:40 +02:00
Jonas Berg
17b301a753 boards: shields: Add Adafruit TSL2591 light sensor shield
Tested with the command mentioned on the index.rst page.

The product photo is from https://learn.adafruit.com/assets/95227
with the license CC BY-SA 3.0

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2025-09-03 01:10:28 +02:00
Laurentiu Mihalcea
e7fb812dbb MAINTAINERS: add entry for the firmware subsystem
The firmware subsystem has been around since Zephyr 4.0. Therefore,
add an entry for it in the MAINTAINERS file such that changes will
no longer go unnoticed. For now, nominate myself as its maintainer.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2025-09-03 01:10:13 +02:00
Lena Voytek
6ecfd5c1b1 boards: adafruit: add initial support for esp32 feather v2
The Adafruit ESP32 Feather V2 is a board that uses the Feather standard
layout. It uses an ESP32-PICO v3 02 module, and includes a USB-C
connector, LiPo battery charger, NeoPixel RGB LED, and STEMMA QT
connector.

Signed-off-by: Lena Voytek <lena@voytek.dev>
2025-09-03 01:09:58 +02:00
Raffael Rostagno
cdc3a52642 pinctrl: esp32h2: Add peripherals support
Add pinctrl defines for the following peripherals:

- SPI
- I2C
- I2S
- LEDC PWM
- MCPWM
- TWAI
- PCNT

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-09-02 21:41:09 +02:00
Raffael Rostagno
1c0e877351 dts: esp32h2: Add peripherals
Add device tree entries for the following peripherals:

- ADC
- I2C
- I2S
- LEDC PWM
- MCPWM
- PCNT
- SPI
- DMA
- TWAI
- USB serial

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-09-02 21:41:09 +02:00
Raffael Rostagno
2ff00c620a west.yml: hal_espressif: Update for ESP32-H2 peripherals
Update HAL for ESP32-H2 peripherals support.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-09-02 21:41:09 +02:00
Vincent Jardin
0fc64c1efe boards: renesas: add 3 LED support
The ek_ra4m2 board has 3 LED.

Signed-off-by: Vincent Jardin <vjardin@free.fr>
2025-09-02 21:40:53 +02:00
Yasin Ustuner
09d4c9bded tests: counter: Remove unused line
This commit removes unused line from
counter_basic_api test.

Signed-off-by: Yasin Ustuner <Yasin.Ustuner@analog.com>
2025-09-02 21:40:33 +02:00