Commit graph

126,787 commits

Author SHA1 Message Date
Felix Wang
c11cf177c7 drivers: timer: Use prescale_glitch_filter for prescale setting
In eb785ef, "prescaler" has been deprecated and
"prescale_glitch_filter" is used for prescale setting.

This patch removes "prescaler" parameter and use
"prescale_glitch_filter" to simplify code and fix build
error caused by "precsaler" parameter.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2025-10-22 09:04:33 +02:00
Nicolas Pitre
b5363d5fff kernel: usage: Fix CPU stats retrieval in z_sched_cpu_usage()
The z_sched_cpu_usage() function was incorrectly using _current_cpu
instead of the requested cpu_id parameter when retrieving CPU usage
statistics. This caused it to always return stats from the current CPU
rather than the specified CPU.

This bug manifested in SMP systems when k_thread_runtime_stats_all_get()
looped through all CPUs - it would get stats from the wrong CPU for
each iteration, leading to inconsistent time values. For example, in
the times() POSIX function, this caused time to appear to move backwards:

  t0: utime: 59908
  t1: utime: 824

The fix ensures that:
1. cpu pointer is set to &_kernel.cpus[cpu_id] (the requested CPU)
2. The check for "is this the current CPU" is correctly written as
   (cpu == _current_cpu)

This fixes the portability.posix.muti_process.newlib test failure
on FVP SMP platforms where times() was reporting backwards time.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2025-10-22 09:04:13 +02:00
Yong Cong Sin
5149463f79 shell: modules: devmem: support 64-bit read & write
Add support for 64-bit devmem operations for 64-bit devices.

Signed-off-by: Sergii Vystoropskyi <vistorop@meta.com>
Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
2025-10-22 09:03:55 +02:00
Jordan Yates
cc257ddd75 modem: cellular: configurable initialisation priority
Make the initialisation priority of cellular modems configurable, and
move it earlier in the sequence by default to provide room for devices
to be initialised later.

The updated default value is set to one earlier than
`GNSS_INIT_PRIORITY`, as LTE modems often embed a GNSS modem, whose
driver may depend on the baseline modem driver (GNSS user pipes, etc).

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-22 09:03:42 +02: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
Aksel Skauge Mellbye
440755bd9e soc: silabs: Move Kconfig symbols for HAL selection to HAL
The Kconfig symbols for selecting HAL content should be part
of the HAL module integration, not defined by the SoC. Split the
symbols between the Series 0/1 Gecko HAL and Series 2 SiSDK HAL
when moving them.

For now, the Series 0/1 HAL symbols retain their name, while new
names consistent with the symbols already defined in the module
integration layer are used for the Series 2 HAL.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-22 09:03:15 +02:00
Aksel Skauge Mellbye
5d0e9f5cca soc: silabs: Move Series 2 specific defconfigs to Series 2
Series 2 specific defconfigs for Bluetooth related options should
be set in the Series 2 specific defconfig file.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-22 09:03:15 +02:00
Aksel Skauge Mellbye
d9e9f24cdf soc: silabs: Move Kconfig symbol for SE to HAL
Move the Kconfig symbol for the SE HAL to hal_silabs.
Select the symbol in the entropy driver rather than unconditionally
at the SoC level.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-22 09:03:15 +02:00
Aksel Skauge Mellbye
fab26ef69e soc: silabs: Move Series 2 specific TRNG symbol to Series 2 Kconfig
CRYPTO_ACC_GECKO_TRNG only applies to Series 2. Don't define it at
the top level.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-22 09:03:15 +02:00
Aksel Skauge Mellbye
2781be95c5 soc: silabs: Remove duplicate Kconfig symbol
COUNTER_GECKO_STIMER is defined by the counter driver. It should
not be present in SoC Kconfig.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-22 09:03:15 +02:00
Aksel Skauge Mellbye
cf1fbbcf83 soc: silabs: Move Kconfig symbol for clock/device init to HAL
Kconfig symbols for selecting HAL content should be part of the
HAL module integration, not defined in the SoC tree.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-22 09:03:15 +02:00
Aksel Skauge Mellbye
2b54dfa8aa soc: silabs: Select PM implementation per family directly
The indirection through a backend symbol for PM implementation
isn't necessary. Define symbol for PM HAL in HAL Kconfig, and
leverage it at SoC level.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-22 09:03:15 +02:00
Aksel Skauge Mellbye
4602300a27 soc: silabs: Move Kconfig symbol for sleeptimer to HAL
Kconfig symbols for selecting HAL content should be part of the
HAL module integration, not defined in the SoC tree. Define the
sleeptimer symbol for WiSeConnect and SiSDK since both use it.

In the future, WiSeConnect should include the SiSDK configuration
and reuse it instead of redefining everything itself. This is a
larger scale refactor that this commit doesn't start tackling.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-22 09:03:15 +02:00
Aksel Skauge Mellbye
6786b4824f soc: silabs: Sort Series 2 dependencies
Sort symbol selections for Series 2 SoCs.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-22 09:03:15 +02:00
Aksel Skauge Mellbye
e9c51f9b95 boards: silabs: Remove unused defconfig symbols
Remove DCDC defconfigs from Series 2 boards. These have no effect,
Series 2 derives DCDC configuration from devicetree.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-22 09:03:15 +02:00
Lauren Murphy
a7be1ffb46 boards: intel_adsp: add ace40 sim .dts
Adds missing intel_adsp_ace40_nvl_sim.dts.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2025-10-22 09:03:00 +02:00
Lauren Murphy
b3a7eeaa79 soc: intel_adsp: winstream only if not sim
Simulator console will not be used if winstream is
selected for simulators.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2025-10-22 09:03:00 +02:00
Lauren Murphy
7f42d4c1c2 boards: intel_adsp/ace: remove kconfig to skip 2nd core flow
This removes CONFIG_INTEL_ADSP_SIM_NO_SECONDARY_CORE_FLOW for
both ACE15 and ACE30 simulator, as the latest simulator no
longer requires this workaround.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2025-10-22 09:03:00 +02:00
Lauren Murphy
e8a14b2494 soc: intel_adsp: send fwready msg for sim
Sends FWREADY message for simulator.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2025-10-22 09:03:00 +02:00
Anas Nashif
24e094ef5e lib: move cpu_load into lib/os
Move cpu_load to lib/os, as this functionality on its own does not
justify being a subsystem on its own.

Fixes #95498

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-10-22 09:02:38 +02:00
Alexander Apostolu
70951ee985 include: zephyr: drivers: sensor.h: updated doxygen for get_frame_count
Updated Doxygen for sensor_decoder_api.get_frame_count().

* Reworded grammar
* Changed channel to chan_spec to reflect data type
* Changed return value from ENOTSUP to EINVAL to be consistent with
    sensor_decoder_api.decode()

Signed-off-by: Alexander Apostolu <apostolu240@gmail.com>
2025-10-22 09:01:21 +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
Dan Kalowsky
fd25c976e2 MAINTAINERS: move TF-A to non-maintained
Former maintainers povergoing and sgrrzhf have not been active for several
releases despite attempts to contact them. Instead of keeping PRs and
releases gating on having them respond remove them from the maintainers
list until they can return.

Unfortunately this moves TF-A from maintained to odd fixes.

Signed-off-by: Dan Kalowsky <dkalowsky@amperecomputing.com>
2025-10-22 08:58:52 +02:00
Gerard Marull-Paretas
f1fa897fbd dts: bindings: mtd: jedec,qspi-nor: set qspi bus
This binding is meant to sit on a QSPI bus.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-10-22 08:58:21 +02:00
Gerard Marull-Paretas
464bd3e649 dts: bindings: mtd: sifli,sf32lb-mpi-qspi-nor: set qspi bus type
This node defines a QSPI bus type.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-10-22 08:58:21 +02:00
Zhaoxiang Jin
08d394ade8 boards: nxp: Unify the use of macros
For nxp's board.c, the macro used in some places is
'DT_NODE_HAS_STATUS(DT_NODELABEL(<node_label>),okay)', and the
macro used in some places is
'DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(<node_label>))'.
The purpose of this PR is to unify the use of macros
and use the latter.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-10-22 08:58:06 +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
Mario Paja
222416f71c drivers: i2s: stm32 sai add support for stm32f4xx series
STM32F4xx series shares several DMA configurations with
the other platforms. These changes aim to enable platform
specific DMA configuration and align them to other platforms.

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-10-22 08:57:45 +02:00
Mario Paja
0dde13e02e dts: st: f4: enable sai1 in stm32f4xx series
These changes enable SAI1 A & B nodes in STM32F4xx series.

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-10-22 08:57:45 +02:00
Tom Chang
4ab41ed47b drivers: ps2: npcx: update registers for NPCKn variant
This commit updates register definition for NPCKn variant to match the
datasheet.

Signed-off-by: Tom Chang <CHChang19@nuvoton.com>
2025-10-22 08:57:04 +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
Khoa Nguyen
4eefeb34b5 dts: arm: renesas: ra: Add support NPU on Renesas ra8p1 SoC dts
Add support NPU on Renesas ra8p1 SoC dts

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-10-22 08:56:25 +02:00
Khoa Nguyen
f7563b72ee soc: renesas: ra: Select the Ethos-U NPU configuration for RA8P1
Select the Ethos-U NPU configuration for RA8P1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-10-22 08:56:25 +02:00
Khoa Nguyen
1daa161960 drivers: misc: ethos_u: Add support NPU on Renesas devices
Add support NPU driver on Renesas devices

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-10-22 08:56:25 +02:00
Venkatesh Odela
44b6327fb8 drivers: ethernet: phy: ti_dp83867: Fix warnings
Wrapp the 'done:' label with #if DT_ANY_INST_HAS_PROP_STATUS_OKAY
to avoid unused label warnings when reset_gpios is not defined.

Move declaration of 'val' under the corresponding #if block to limit
its scope and prevent “unused variable” warnings.

Signed-off-by: Venkatesh Odela <venkatesh.odela@amd.com>
2025-10-22 08:56:01 +02:00
Tien Nguyen
5341c88365 driver: flash: Add a macro to define the 32KB block size in spi_nor.h
Add a macro to define the 32KB block size in spi_nor.h

Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-22 08:55:53 +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
Tien Nguyen
aaaee6f380 tests: driver: 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
f01d90bba2 boards: renesas: Add flash support for RZ/A3UL, N2L, T2M
Add flash support for RZ/A3UL, N2L, T2M

Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-22 08:55:53 +02:00
Tien Nguyen
a481d4cab9 soc: renesas: Add flash memory regions for RZ/A3UL
Add flash memory regions for RZ/A3UL

Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-22 08:55:53 +02:00
Tien Nguyen
61209f6999 dts: renesas: Add flash support for RZ/A3UL, N2L, T2M
Add SPIBSC node for RZ/A3UL
Add XSPI node for RZ/T2M, N2L

Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-22 08:55:53 +02:00
Tien Nguyen
8359c4dbd9 driver: flash: initial support for Renesas RZ/A3UL, T2M, N2L
This driver is based on the XSPI driver for Renesas RZ/T2M and N2L,
and the SPIBSC driver for Renesas RZ/A3UL from the HAL.

Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-22 08:55:53 +02:00
Tien Nguyen
6a3a76f809 hal: renesas: manifest: Update commit id for hal_renesas
Update commit id for hal_renesas to support Flash driver
for Renesas RZ/A, T, N series

Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-22 08:55:53 +02:00
Henrik Grunmach
dbc16f4e46 dts: soc: nxp lpc55xxx: Add SWO support
Add ITM to common device tree and set the correct clock config
when using SWO as a logging backend

Signed-off-by: Henrik Grunmach <henrik.grunmach@rohde-schwarz.com>
2025-10-22 08:55:31 +02:00
Camille BAUD
3c224b4cbe boards: Add DMA to supported for bflb boards
Adds the dma to supported for testing

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-10-22 08:55:21 +02:00
Camille BAUD
b3d88c751a drivers: clock_control: Update clock control to support new peripherals
Guarantees De-gating the peripherals.

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-10-22 08:55:21 +02:00
Camille BAUD
5eb694e68a drivers: dma: Introduce BFLB DMA driver
Introduce BFLB's DMA.

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-10-22 08:55:21 +02:00
Camille BAUD
520ea0fa9a dts: bflb: Add DMA node for BFLB SoCs
Adds the DMA node

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-10-22 08:55:21 +02:00
Camille BAUD
1bef0eaaa3 west.yml: Update hal_bouffalolab revision
Update hal revision to fix double defines
and missing bl70x dma defines

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-10-22 08:55:21 +02:00