Commit graph

126,787 commits

Author SHA1 Message Date
Declan Snyder
de6b5dba60 scripts: flash: Add west config for flash skip rebuild
Add a west config option to skip rebuilds by default or not when doing
west flash. Also add corresponding symmetrical CLI options.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-10-20 11:22:52 -04:00
Khoa Tran
f424ac2853 tests: drivers: rtc: Add tests support for RTC driver on Renesas RA
Add tests 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
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
Khoa Tran
6035038a2e dts: arm: Add rtc device node for Renesas RA family
Add rtc device node to support rtc
driver on Renesas RA SoCs:
- r7fa8d1bhecbd
- r7ka8p1kflcac
- r7fa8m1ahecbd
- r7fa4l1bd4cfp

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-20 11:19:13 -04:00
Khoa Tran
ab8b5764b2 drivers: rtc: Initial driver support for RTC on Renesas RA
Add driver support for RTC on Renesas RA

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-20 11:19:13 -04:00
Khoa Tran
95eafaef9a drivers: clock_control: Add clock control driver for sub-clock on Renesas
RA family

Add clock control driver support for sub-clock Renesas RA family

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-20 11:19:13 -04:00
Khoa Tran
c42fc3aed1 soc: renesas: ra: Add battery backup support for RA8 family
Add support for the battery backup (VBAT) functionality on
Renesas RA8 family. This allows the RTC to retain timekeeping
data when the main power supply is lost by switching to the
VBAT domain automatically. This commit add support for these
SoC series: ra8m1, ra8p1, ra8d1

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-20 11:19:13 -04:00
Khoa Tran
5c64067880 dts: arm: renesas: ra: Add battery backup node for Renesas
RA8 family

Add a battery backup (VBAT) node to the device tree for the Renesas
RA8 family. This enables support for RTC VBAT domain switching when main
power is lost.

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-20 11:19:13 -04:00
Khoa Tran
93b1fe2ee6 dts: bindings: renesas: Add battery backup node bindings for
Renesas RA family

Add dts bindings for the battery backup (VBAT) node used
on the Renesas RA family.

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-10-20 11:19:13 -04:00
Duy Nguyen
c73ecab2d4 manifest: Update hal_renesas commit ID to support Renesas RA RTC
This commit update the hal_renesas to support Renesas RA RTC

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2025-10-20 11:19:13 -04:00
Sebastian Bøe
e57676a4f5 soc: nordic: nrf54h: uicr: Improve deps for uicr/zephyr/zephyr.hex
uicr/zephyr/zephyr.hex needs to be built after all other zephyr
images.

Instead of adding a dependency on uicr, we check the sysbuild_images
property to find images.

Also, we check it as late possible by using the cmake_language(DEFER
DIRECTORY feature. Which will ensure that running this code will be
one of the last things that the CMake sysbuild program does at
Configure time.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2025-10-20 12:00:00 +02:00
Ren Chen
b5dddedcf0 dts: bindings: it8xxx2-power-elpm: add latch-enable property
This commit adds `latch-enable` property to power elpm child
node and marks the `polarity` property as required.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2025-10-20 11:59:31 +02:00
Ren Chen
0d886da068 soc: it8xxx2: move gpio-q and elpm initial to early preparation hook
Relocate the initialization of the gpio-q group and the elpm
module to early SoC preparation hook. The elpm xlpout signal
is connected to the main power rail and is driven by firmware
after bootup. Initializing these modules early ensures that
the power rail remains stable and does not drop.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2025-10-20 11:59:31 +02:00
Robert Lubos
98e0ddecc0 net: lib: sntp: Fix transmit timestamp
Fix the transmit timestamp value sent in SNTP queries:

 * Use sys clock as a time source instead of the uptime,
 * As NTP epoch is different from Unix epoch (starts in 1900), adjust
   the seconds value with appropriate offset,
 * Finally, adjust the fraction calculation to the nanoseconds value
   from struct timespec. Do the math in 64-bit to avoid overflows and do
   the division at the end for more accurate results.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-10-20 11:58:59 +02:00
Cheng Chang
f5dd765e88 bluetooth: shell: a2dp: fix warning when enable sink or source only
add #if defined() to control unused codes.

Signed-off-by: Cheng Chang <cheng.chang@nxp.com>
2025-10-20 11:57:53 +02:00
Andrzej Kuros
e5b1ff11ef modules: hal_nordic: nrf_802154: remove setting of deprecated macro
The macro `NRF_802154_TX_STARTED_NOTIFY_ENABLED` has been removed
from the nRF 802.15.4 Radio Driver.
Setting it in CMakeLists.txt became pointless and is removed.

Signed-off-by: Andrzej Kuros <andrzej.kuros@nordicsemi.no>
2025-10-20 11:57:35 +02:00
Lyle Zhu
cf7ab6985f Bluetooth: Classic: HFP: Fix fixed MTU issue
The MTU of HFP HF or AG is fixed value. It cannot be configured.

Fix the issue to make the MTU of RFCOMM is consistency with the MTU
of L2CAP.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-10-20 11:57:26 +02:00
Gerard Marull-Paretas
a5e8386723 boards: sf32lb52_devkit_lcd: enable watchdog
Enable watchdog node, add alias used in samples and add 'watchdog' to
the supported list (for twister).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-10-20 11:57:13 +02: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
Quy Tran
f49e20c1bc tests: drivers: uart: Add overlay for uart_async_api test
Add overlay and conf for ek_rx261 and fpb_rx261

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-20 11:57:03 +02:00
Quy Tran
336abc6a78 drivers: serial: add contition for tx_buf_len check in async api
Add condition checking for uart async api of Renesas RX

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-20 11:57:03 +02:00
Quy Tran
2b24a923f7 dts: renesas: rx: Add dtc support for RX261 dts
Add dtc support on RX261, and support dtc for uart

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-20 11:57:03 +02:00
Quy Tran
a34dafd724 soc: renesas: rx: Add dtc support for Renesas RX261
Add dtc support for RX261 and ram section for dtc vector
table

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-20 11:57:03 +02:00
Siratul Islam
07571d4b35 boards: riscv: Add support for WeAct Studio ESP32-C3-Mini
Add board support for WeAct Studio ESP32-C3-Mini, a compact
development board based on ESP32-C3FH4 with 4MB internal flash.

Features:
- ESP32-C3 RISC-V single-core @ 160MHz
- 400KB RAM, 4MB flash
- USB Serial/JTAG for flashing and debugging
- Wi-Fi 802.11b/g/n and Bluetooth 5 LE
- On-board blue LED (GPIO8)
- Boot button (GPIO9)
- Exposed GPIOs: 0-10, 18-19, 20-21

Supported peripherals:
- USB Serial/JTAG
- I2C (GPIO0, GPIO1)
- SPI (GPIO3-6)
- GPIO
- Watchdog
- TRNG
- Wi-Fi
- Bluetooth

Signed-off-by: Siratul Islam <sirat4757@gmail.com>
2025-10-20 11:56:35 +02:00
Fabio Baltieri
245881ad73 drivers: leds_strip: rename modulino smartleds to pixels
Rename the modulino pixels driver to use the official marketing name,
the "smartleds" one was picked incorrectly from the source code of the
on board mcu of the module itself, but that was clearly out of date.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-10-20 11:56:08 +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
Seppo Takalo
72701683be drivers: modem: cellular: Close down CMUX before shut down
Properly close down the CMUX channel before shutting down
the modem.

The CMUX Close-Down command should indicate the remote end
to clean up, even if we don't have shutdown script or power-key GPIO.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-10-20 11:55:43 +02:00
Seppo Takalo
a9bc72a22a modem: cmux: Send disconnect event only after responding to CLD
If we immediately send disconnected event when CLD is received,
we might close the UART pipe before the response is actually send.

Also, shutdown_handler should not retry indefinitely.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-10-20 11:55:43 +02:00
Seppo Takalo
822a501828 modem: cmux: Handle CLD response
Instead of dropping all responses, handle the CLD.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-10-20 11:55:43 +02:00
Siratul Islam
635f739295 boards: arm: add support for WeAct STM32G030 Core Board
This patch adds support for the WeAct Studio STM32G030 Core Board,
a compact and low-cost development platform based on the STM32G030F6P6
microcontroller.

Main features:
- STM32G030F6P6 MCU (32 KB Flash, 8 KB SRAM)
- User LED
- Exposed SWD header for programming/debugging
- UART1 (PB6/PB7) as default console
- I2C2 (PA11/PA12) and SPI1 (PA1/PA6/PA7) peripheral mapping
- 3.3V or 5V input power options with onboard regulator

The board has been tested with the following Zephyr samples:
- samples/basic/blinky
- samples/hello_world

Signed-off-by: Siratul Islam <sirat4757@gmail.com>
2025-10-20 11:55:29 +02:00
Robert Lubos
524b91972e doc: net: sockets: Document mbed TLS limitation for non-blocking case
mbedtls_ssl_write() function has a limitation, that when the function
returns MBEDTLS_ERR_SSL_WANT_WRITE, the consecutive call to this
function have to contain the same data as the previous call. As there
doesn't seem to be a viable workaround for this at the socket layer
(other than dropping non-blocking support which is not an option), we
need to carry this requirement for non-blocking sockets as well,
therefore document this case in secure sockets documentation.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-10-20 11:55:18 +02:00
Aleksander Wasaznik
27b56955d6 Bluetooth: Host: Invoke tx callbacks when channel is deleted
When bt_l2cap_send_pdu() succeeds, it transfers buffer ownership to the
stack, which must eventually invoke the provided callback. This contract
is honored in all paths where transmission becomes impossible:

- Normal transmission: callback invoked with err=0 after HCI Number of
  Completed Packets event (tx_notify_process)
- Send errors (after tx allocated): callback invoked with err=-ESHUTDOWN
  via conn_tx_destroy
- Send errors (before tx allocated): callback invoked with the specific
  error code in send_buf error_return path
- Connection disconnect: callbacks invoked with err=-ESHUTDOWN via
  process_unack_tx -> conn_tx_destroy for all PDUs in tx_pending

However, when a channel is deleted (l2cap_chan_del), PDUs remaining in
the tx_queue are dropped without invoking their callbacks, violating the
ownership contract.

Fix this by extracting and invoking any non-NULL callbacks from the
closure stored in buf->user_data before releasing the buffers. The
callback is invoked with err=-ESHUTDOWN, making this path analogous to
process_unack_tx: both drain queues of unsent PDUs when transmission
becomes impossible due to external events (channel deletion vs connection
disconnect). The only difference is the buffer lifecycle stage - in
l2cap_chan_del, PDUs are still in tx_queue (closure in buf->user_data),
while in process_unack_tx, they've progressed to tx_pending (callback in
bt_conn_tx struct).

Note: conn_tx_destroy() cannot be used here because no bt_conn_tx struct
has been allocated yet - the closure is still in buf->user_data.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
2025-10-20 11:54:42 +02:00
Aleksander Wasaznik
70dd38a9b4 Bluetooth: Host: Add documentation for L2CAP tx buffer callbacks
Document the ownership contract and callback semantics for L2CAP
transmission buffers:

- Extend tx_queue documentation in bt_l2cap_le_chan to explain SDU/PDU
  storage, callback handling, and transmission order semantics
- Document bt_l2cap_create_frag responsibilities regarding callback
  invocation after HCI Number of Completed Packets or on disconnect
- Document bt_l2cap_send_pdu callback contract: invoked exactly once
  after transmission completes or with -ESHUTDOWN on disconnect

These documentation additions clarify the requirements for proper
buffer lifecycle management and callback invocation throughout the
L2CAP transmission path.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
2025-10-20 11:54:42 +02:00
Muhammed Asif
9295c2b6e0 boards: pcbcupid: glyph: Add minimal support for glyph_c6 board
This PR adds support for glyph c6 board based on esp32c6.
Tested using blinky,hello world and button.
Adapted from esp32c6_devkitc

Signed-off-by: Muhammed Asif <asifp3104@gmail.com>
2025-10-20 11:54:30 +02:00
muhammed asif
d912330e95 dts: pcbcupid: Add new vendor name in the vendor prefix
This PR adds the vendor name to the vendor prefix list

Signed-off-by: muhammed asif <asifp3104@gmail.com>
2025-10-20 11:54:30 +02:00
Kenneth Lu
eddacedcc7 boards: rakwireless: Add support for RAK3112
The RAK3112 WisDuo is a low-power, long-range LoRaWAN module
based on the Espressif ESP32-S3

Signed-off-by: Kenneth Lu <kuohsianglu@gmail.com>
2025-10-20 11:52:49 +02:00
Felix Kolbe
689a0277f0 net: coap: Correct parameter constness in func signature
fix(coap_link_format): Correct parameter constness in func signature

For function coap_link_format:coap_well_known_core_get_len()
the request parameter is declared to be a pointer-to-const,
but the const is missing for one of the two function definitions,
that are chosen via CONFIG_COAP_WELL_KNOWN_BLOCK_WISE.

With this fix the code also compiles when enabling
CONFIG_COAP_WELL_KNOWN_BLOCK_WISE.

Signed-off-by: Felix Kolbe <felix.kolbe@gmail.com>
2025-10-20 11:52:39 +02:00
Marcio Ribeiro
1a31b0a513 tests: boards: esp32: add simplified i2s test
Adds simplified i2s test for the following platforms:
- esp32_devkitc/esp32/procpu
- esp32s2_saola

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-10-20 11:52:31 +02:00
Marcio Ribeiro
7632635026 tests: drivers: i2s_api: add esp32 boards
adds the following boards ot i2s_api test:
- esp32c3_devkitm
- esp32c6_devkitc/esp32c6/hpcore
- esp32s3_devkitc/esp32s3/procpu
- esp32h2_devkitm

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-10-20 11:52:31 +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
Marcio Ribeiro
cde048094e drivers: i2s: esp32: fix driver state management and I2S_DIR_BOTH behavior
Rework to fix state management and I2S_DIR_BOTH behavior across the driver

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-10-20 11:52:31 +02:00
Marcio Ribeiro
8397c408a9 drivers: i2s: esp32: optimize stream structs and add sanity check
Optimizes i2s_esp32_stream_data and i2s_esp32_stream_conf structs and adds
property sanity check according to soc series based on SOC_GDMA_SUPPORTED
feature

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-10-20 11:52:31 +02:00
Marcio Ribeiro
ee4da4260a drivers: i2s: esp32: log messages rework
Reworks log messages to avoid timing issues

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-10-20 11:52:31 +02:00
Marcio Ribeiro
2ef4438fe6 drivers: i2s: esp32: allow deferred processing of an empty tx queue
Allows to defer processing of an empty tx queue when tx_callback is
executed. This prevents error conditions if the tx dma interrupt is
generated too early, as occurs with esp32 and esp32s2.

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-10-20 11:52:31 +02:00
Marcio Ribeiro
1745582838 drivers: i2s: consistent use of stream state
Reworks i2s_esp32_read() and i2s_esp32_write() to allow consistent use of
stream->data->state

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-10-20 11:52:31 +02:00
Marcio Ribeiro
2232acf3b0 drivers: i2s: esp32: add missing checks
Adds missing checks regarding mem_slab and data_format during each stream
configuration

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-10-20 11:52:31 +02:00
Marcio Ribeiro
075cbe67a7 drivers: i2s: esp32: fix redundant pin configuration
Moves the pinctrl_apply_state() call to avoid calling it twice

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-10-20 11:52:31 +02:00
Marcio Ribeiro
2d19d96b9e drivers: i2s: esp32: fix last block loss
Avoids erroneous memory block freeing when stopping transfers

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-10-20 11:52:31 +02:00
Chris Friedt
169fd6a4a9 doc: release: 4.3: deprecate CONFIG_XOPEN_STREAMS
Deprecate the CONFIG_XOPEN_STREAMS Kconfig option in favour of
CONFIG_XSI_STREAMS, which matches the naming conventions of other XSI
Kconfig options and the actual Option Group name in the specification.

Please use CONFIG_XSI_STREAMS instead.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-19 20:53:48 -04: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