Commit graph

126,787 commits

Author SHA1 Message Date
Andrew Perepech
2b38bcb6d7 soc/mediatek/adsp: Add cpuclk driver for mt8188
Add cpuclk driver for mt8188 platform. Note that the cpuclk driver is
not yet ported, it works only with mt8188.

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
2025-09-30 19:36:47 +02:00
Andrew Perepech
96d654bbc8 west.yml: Update hal_xtensa revision
Update hal_xtensa revision to add HAL integration for mt8186/88
and mt8196 DSP processors.

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
2025-09-30 19:36:47 +02:00
Andrew Perepech
a75d6a40b6 drivers/timer: Fix build error when run by twister
Fix undefined reference to z_sys_timer_irq_for_test

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
2025-09-30 19:36:47 +02:00
Andrew Perepech
5960d36a7d boards/mediatek: Add configs for mt8195, mt818X
Add configs for mt8195 and mt818X platforms to build them outside of SOF
environment and run by twister

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
2025-09-30 19:36:47 +02:00
Andrew Perepech
fc8c17fd23 drivers/timer: Fix timer IRQ enable bit on MT818X and MT8195
MT818X and MT8195 use the same timer IRQ enable bit as MT8196

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
2025-09-30 19:36:47 +02:00
Andrew Perepech
87a449762d drivers/timer: Fix timer clock source initialization for MT818X
Fix timer clock source initialization for MT8188, MT8186 platform.
Add 26Mhz define that is specific for MT818X.

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
2025-09-30 19:36:47 +02:00
Andrew Perepech
d77db24739 boards/mediatek: Include AFE dts from the board device tree
Include AFE dai definitions from the board device tree for MT8188
and MT8195 platforms

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
2025-09-30 19:36:47 +02:00
Andrew Perepech
b5adc3dc19 soc/mediatek/adsp: Fix enable/disable timer interrups for MT8188
On MT8188 platform timer interrupts must also be enabled/disabled in
MTK_ADSP_IRQ_EN register in addition to xtensa_irq_enable(),
xtensa_irq_disable()

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
2025-09-30 19:36:47 +02:00
Andrew Perepech
35a198c4ad soc/mediatek/adsp: Fix ELF .sof_entry section flags
Add 'ax' flags for .sof_entry ELF section so it merges properly with
.z_xtensa_vectors ELF section

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
2025-09-30 19:36:47 +02:00
Pierrick Guillaume
b7eec0fe24 cmake: linker: separate toolchain_ld_options() calls for grouped flags
Fixes #91045

Adding NO_SPLIT in the TOOLCHAIN_LD_FLAGS list caused every flags in the
list to be checked together by the linker. This caused issues where
incompatible flags was passed together, and the result was that none was
propagated to the linker.

By using separate variables, we can achieve the initial goal of NO_SPLIT to
only group a sub-set of flags.

Signed-off-by: Pierrick Guillaume <pguillaume@fymyte.com>
2025-09-30 19:36:37 +02:00
Erik Andersson
5ad9494835 drivers: i2c_stm32_v2: Abort on DMA error
If configuration of DMA is unsuccessful then
abort transaction and return with an error code

Signed-off-by: Erik Andersson <erian747@gmail.com>
2025-09-30 17:59:04 +03:00
Erik Andersson
624d9c143a drivers: i2c_stm32_v2: Refactor end of master transfer
The stm32_i2c_master_mode_end function can be
replaced with a simple irq disable and giving to
the device sync semaphore

Signed-off-by: Erik Andersson <erian747@gmail.com>
2025-09-30 17:59:04 +03:00
Erik Andersson
789e1d2d43 drivers: i2c_stm32_v2: Bus error errata fix
Don't abort transaction on bus error in master mode
according to errata sheet

Signed-off-by: Erik Andersson <erian747@gmail.com>
2025-09-30 17:59:04 +03:00
Erik Andersson
a3e63022c0 drivers: i2c_stm32_v2: DMA fixup
Adapt DMA implementation to match changes
introduced by new interrupt handler

Signed-off-by: Erik Andersson <erian747@gmail.com>
2025-09-30 17:59:04 +03:00
Erik Andersson
b4aa7e7087 drivers: i2c_stm32_v2: Remove obsolete functions
stm32_i2c_msg_read and stm32_i2c_msg_write
for interrupt mode is replaced by a common
function: stm32_i2c_irq_xfer

Signed-off-by: Erik Andersson <erian747@gmail.com>
2025-09-30 17:59:04 +03:00
Erik Andersson
34b756f803 drivers: i2c_stm32_v2: Rework interrupt handler
- Rework transaction flow  to better match reference manual
and errata sheet for STM32 I2Cv2 peripheral
- Handle message transactions larger than 255 bytes in isr
- Combine stm32_i2c_msg_write and stm32_i2c_msg_read into
one common function stm32_i2c_irq_xfer when using interrupts

Signed-off-by: Erik Andersson <erian747@gmail.com>
2025-09-30 17:59:04 +03:00
Erik Andersson
066bb5f30e drivers: i2c_stm32_v2: Add DMA helpers
To prepare for further patches and separation
of interrupt/DMA modes from polled, this commit
introduces two helpers for starting and stopping
DMA transfers

Finsishing DMA transfers are also moved from
interrupt handlers to thread after beeing wokenen
by semaphore

Signed-off-by: Erik Andersson <erian747@gmail.com>
2025-09-30 17:59:04 +03:00
Jilay Pandya
cf3dddf573 drivers: stepper: step_dir: fix 87698
During testing with teensy 4.0 it was discoverd that toggling
at high frequencies led to missed steps. As per the datasheets
of step-dir drivers an active edge needs to be maintained for
a certain timerperiod, for a step to be executed.

Instead of toggling pin twice instantaneously, the current fix
halves the step period and the step-pin is toggled on the timeout
of the respective timing source.

rework stepper stepper stop

set step pin to low if the driver does not support dual edge
and increment/decrement the actual position by one

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-09-30 17:58:27 +03:00
Jilay Pandya
5cb7e92c19 tests: stepper_api: adjust timing timeout tolerance
Adjust CONFIG_STEPPER_TEST_TIMING_TIMEOUT_TOLERANCE_PCT
in order to pass the tests

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-09-30 17:58:27 +03:00
Andrej Butok
22adf152dc fs: zms: nxp: Add .conf for frdm_mcxn236.conf
- Adds frdm_mcxn236.conf board configuration
  for ZMS sample and ZMS test.
- Its Flash write-size is 128, which requires special configuration.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-09-30 17:58:03 +03:00
Robert Robinson
617da7a744 manifest: Update hal_nordic to pull latest mdk 8.72.4
Update hal_nordic to pull mdk 8.72.4 with mdk changes for nRF7120.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2025-09-30 17:57:51 +03:00
Seppo Takalo
dac7a0fe06 modem: cmux: Clean debugging a bit
Full CMUX frames are way too much to fill the debug log
so disable those by default.
Sometimes it is enough to see the CMD and response types, without
hexdump.
Added also debug messages for opening and closing events.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-09-30 17:57:40 +03:00
Andrzej Głąbek
f0f5f8cdef drivers: mspi_dw: Fix race condition in RX interrupt handling
Refactor a bit the RX FIFO handling to prevent RX transfers performed
in Single IO mode from getting stuck when they are suspended due to
the empty TX FIFO and cannot be resumed because there is no further
interrupt in which the TX FIFO could be filled properly with dummy
bytes above its transfer start level.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-09-30 17:57:29 +03:00
Gerard Marull-Paretas
b59b09b76e soc: sifli: sf32: sf32lb52x: allow configuring bootrom flash delays
Boot ROM will by default set on/off delays to 0ms before jumping to
firmware. This patch adds an option to to configure the on/off delays to
non-zero values. A flash power cycle guarantees to put the external
flash into a known state before executing code from it. This is required
if using 4-byte address mode in the external flash, as the boot ROM will
always use 3-byte address mode when reading from external flash, causing
a potential deadlock situation requiring a power-cycle (known errata).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-30 17:57:17 +03:00
Gerard Marull-Paretas
1fb060a133 dts: arm: sifli: sf32lb52x: define RTC backup registers
Define RTC backup registers.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-30 17:57:17 +03:00
Gerard Marull-Paretas
5a25fda816 dts: bindings: retained_mem: add sifli,sf32lb-rtc-backup
Add binding for the SiFli SF32LB RTC backup registers.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-30 17:57:17 +03:00
Gerard Marull-Paretas
3184e7e19b dts: arm: sifli: sf32lb52x: define rtc
Add node for RTC peripheral.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-30 17:57:17 +03:00
Gerard Marull-Paretas
62aa9d7232 dts: bindings: rtc: add sifli,sf32lb-rtc
Add bindings for SF32LB RTC.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-30 17:57:17 +03:00
Grzegorz Swiderski
335e1c2a97 Revert "fs: zms: Add FLASH_MAP dependency"
This reverts commit 77f19eb1b5.

This dependency was misplaced. See the parent commit.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2025-09-30 15:29:59 +03:00
Grzegorz Swiderski
4a7126d457 settings: zms: Add FLASH_MAP dependency
The ZMS backend for Settings uses the `flash_area` API, which means it
requires CONFIG_FLASH_MAP to be enabled, so update Kconfig accordingly.
Note that ZMS itself does not depend on this.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2025-09-30 15:29:59 +03:00
Maximilian Werner
a88b1b86cb include: drivers: gpio_emul: add gpio_dt_spec helpers
Add gpio_dt_spec based helpers for easier access to:
* gpio_emul_input_set
* gpio_emul_output_get
* gpio_emul_flags_get

Signed-off-by: Maximilian Werner <maximilian.werner96@gmail.com>
2025-09-30 15:29:47 +03:00
Tomasz Chyrowicz
cbcf81e3a4 mcumgr: Enable permanent updates in overwrite mode
It is essential for the overwrite mode to allow confirming the secondary
slot to provide the permanent update.
This types of updates is the only mode in which the application may be
upgraded.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2025-09-30 15:29:33 +03:00
Tomasz Chyrowicz
2e0d9ed2cf mgmt: Add missing CONFIG_ prefixes
Fix the incorrect usage of Kconfig symbols and revert back the default
behavior to allow for non-active slot confirmation.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2025-09-30 15:29:33 +03:00
Ayush Singh
df18487b3c samples: net: sockets: coap_server: Add 802154 subg support
- Tested with BeagleConnect Freedom.
- Also enable build in CI similar to echo_server/client

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-09-30 15:29:23 +03:00
Ayush Singh
d553207706 samples: net: sockets: coap_client: Add 802154 Subg support
- Tested with BeagleConnect Freedom.
- Also enable building in CI.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-09-30 15:29:23 +03:00
Loic Domaigne
bfbc6365ac Bluetooth: Controller: fix assertion check for ptc value
Fix the issue reported by Coverity CID 487708. The LL_ASSERT was
performed on lll->ptc, which is a 4-bit bitfield and therefore always
succeeds. Instead, the computation (lll->nse - nse) should be checked
to ensure it falls within the 4-bit value range before assigning it
to lll->ptc.

Signed-off-by: Loic Domaigne <tech@domaigne.com>
2025-09-30 15:28:36 +03:00
Henrik Brix Andersen
24f473fef8 drivers: usb: udc: sam0: do not select CONFIG_SYS_MEM_BLOCKS
Do not select CONFIG_SYS_MEM_BLOCKS when enabling the Atmel SAM0 USB device
controller driver as the implementation does not use the system memory
blocks allocator.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-09-30 15:28:16 +03:00
Johan Alfvén
afa92dafa8 boards: mps3: Select FVP bin for Ethos-U55/Ethos-U65
Update board.cmake for corstone300_fvp to select the correct
Fast Model binary based on Ethos-U configuration.

Use the Ethos-U65 binary if ETHOS_U65 (128/256/512) is set.
Otherwise default to Ethos-U55.

Signed-off-by: Johan Alfvén <johan.alfven@arm.com>
2025-09-30 15:28:06 +03:00
Alain Volmat
f8393a45e8 boards: st: remove .lvgl_buf related linker scripts on STM32
Following introduction of LV_Z_MEMORY_POOL_ZEPHYR_REGION and
LV_Z_VDB_ZEPHYR_REGION, remove the usage of the option
LV_Z_VDB_CUSTOM_SECTION and the related linker scripts for
STM32 boards & shields.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-09-30 15:27:56 +03:00
Alain Volmat
c2fe44ee98 modules: lvgl: allow usage of zephyr memory-region for mem / vdb
Allow selection of a custom section for memory-poll and / or VDB
based on zephyr memory-regions.
This takes advantages that zephyr,memory-region automatically have
sections being created, hence allowing to easily indicate into which
memory-region to store data.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-09-30 15:27:56 +03:00
Tim Pambor
00a9905f83 usb: device_next: cdc_acm: init uart config from default line coding
Initialize the UART configuration from the default line coding
when the CDC ACM device is started. This ensures that the UART
configuration matches the default line coding until the host sets
the line coding for the first time.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-09-30 15:27:33 +03:00
Erwan Gouriou
522bfd5b56 drivers: ethernet: stm32: #include sections cleanup
Clean up headers includes section:
- Remove conditional inclusions
- zephyr/, then susbystem/, standardlib, locals
- Sort alphabetically within these categories
- Remove the ones already available through _priv.h

Noticeable exception, lldp.h requires prior net_pkt.h inclusion

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-09-30 15:27:23 +03:00
Erwan Gouriou
ca6e25a03f drivers: ethernet: Move back hal_init_v2 to driver init
Since phy init is not in this function anymore, it can be moved back
to driver initialization function.

While I'm at, harmonize v1/v2 flavors of the function.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-09-30 15:27:23 +03:00
Erwan Gouriou
03eafc5381 drivers: ethernet: stm32: Remove eth_stm32_get_iface
Now that the function is not static anymore, it just adds useless overhead.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-09-30 15:27:23 +03:00
Erwan Gouriou
967f554598 drivers: ethernet: stm32: Rename functions that are not static anymore
To be able to split code, some functions were removed their static
attribute, which opens the possibility of name conflict.
Rename them by adding eth_stm32_ prefix.

Additionally, review their sorting in the header file.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-09-30 15:27:23 +03:00
Erwan Gouriou
d1d1e5744f drivers: ethernet: stm32: Split v1 and v2 code
Split V1 and V2 code from the common file of STM32 ethernet
driver.
Whenever it is possible, make use of v1 or v2 version of functions
that are call from the common file in order to maximize factorization.

Review definitions to put them where they are used.
Review header inclusions to minimize them.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-09-30 15:27:23 +03:00
Erwan Gouriou
2f23eb2c98 drivers: ethernet: stm32: Split ptp functions into a dedicated source file
In an effort to make stm32 eth driver files easier to read and maintain,
split the ptp code in a dedicated file.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-09-30 15:27:23 +03:00
Erwan Gouriou
b1a9e39006 drivers: ethernet: Rename eth_stm32_hal.c to eth_stm32hal_common.c
Keep the history on the common file before splitting v1 and v2 code from
it.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-09-30 15:27:23 +03:00
Erwan Gouriou
4429626758 Revert "drivers: ethernet: rename eth_stm32_hal.c -> eth_stm32_hal_v2.c"
This reverts commit 678e226045.
This commit was part of PR 94142 which has been merged
while a discussion was still on going on the right direction
between splitting V1 and V2 or keeping a common file.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-09-30 15:27:23 +03:00
Erwan Gouriou
88298ae555 Revert "drivers: ethernet: eth_stm32 v1/v2 are placed in separate files"
This reverts commit 29750ac05d.
This commit was part of PR 94142 which has been merged
while a discussion was still on going on the right direction
between splitting V1 and V2 or keeping a common file.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-09-30 15:27:23 +03:00