Commit graph

126,787 commits

Author SHA1 Message Date
Yurii Lozynskyi
c15920613d drivers: counter: add PSC3M5 counter driver
- Add a new counter driver implementation based on the PDL for
  Infineon CAT1B devices. This enables support for hardware
  counters on the PSC3M5 platform.
- Add IFX_TCPWM_Counter_DeInit and IFX_TCPWM_Counter_Init
  macros to include/zephyr/drivers/timer/ifx_tcpwm.h
  and sort all of the macros in that file

Signed-off-by: Yurii Lozynskyi <yurii.lozynskyi@infineon.com>
2025-09-22 17:50:00 -04:00
Fin Maaß
435af8d0cd maintainers.yml: litex: move kgugala to collaborator
move kgugala from maintainers to litex collaborators.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-09-22 17:49:44 -04:00
Fin Maaß
4af744cca1 maintainers.yml: litex: promote maass-hamburg to maintainer
promote maass-hamburg to litex maintainer.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-09-22 17:49:44 -04:00
Cla Mattia Galliard
1e4bc2855e net: connection: Unconditionally forward into packet sockets
When handling packets for inputing into packet-sockets, unconditionally
forward them, so that they may be handled by the rest of the network
stack after.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
2025-09-22 17:49:19 -04:00
Benjamin Cabé
8f4b253ac8 scripts: replace pykwalify with jsonschema
Converted `arch-schema.yml`, `board-schema.yml`, and `soc-schema.yml`
from PyYAML format to JSON Schema format, including baking in some of
the validation rules that were deferred to ad hoc Python right into the
schemas (e.g. mutual exclusivity of certain fields).

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-22 17:49:08 -04:00
Benjamin Cabé
d7a5d84b1c boards: snps: use correct revision scheme
revisons must be major.minor.patch so add the missing patch

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-22 17:49:08 -04:00
Benjamin Cabé
50d3699172 drivers: i2c: i2c_dw: drop unnecessary include
Including soc.h is causing issues - drop as it's not needed
Fixes e.g. the below:
west build -p -b em_starterkit@2.2.0/emsk_em7d \
     tests/drivers/build_all/w1 -T drivers.w1.build

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-22 17:49:08 -04:00
Jeremy Truttmann
a5bacc757c drivers: ethernet: lan865x: enable PHY access through generic ethernet_api
This is needed for accessing the PHY device through the Ethernet
network interface.

Signed-off-by: Jeremy Truttmann <jetstreeam.code@outlook.com>
2025-09-22 13:35:28 -04:00
Marcio Ribeiro
55f093d20a tests: drivers: i2s_api: fix verify_buf_const()
Allows verify_buf_const() to be compliant with the configuration parameter
CONFIG_I2S_TEST_ALLOWED_DATA_OFFSET to work the same way as verify_buf()

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-09-22 13:35:12 -04:00
Szymon Janc
893f90f042 bluetooth: hci: userchan: Improve discardable events handling
This mimics IPC transport behavior where BR/EDR Inquiry events as
well as LE Extended Advertising Report (carring legacy PDU) are
considered discardable.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2025-09-22 13:34:59 -04:00
Thorsten Klein
64723f6b4f scripts: west_commands: list sdk from env variable ZEPHYR_SDK_INSTALL_DIR
Users can specify a Zephyr SDK installation directory using the
`ZEPHYR_SDK_INSTALL_DIR` environment variable. This variable must be
taken into account when listing all installed SDKs, such as with the
`west sdk list` command.

Signed-off-by: Thorsten Klein <thorsten.klein@bshg.com>
2025-09-22 13:33:01 -04:00
Benjamin Cabé
d0b31db64c doc: _scripts: gen_boards_catalog.py: prefer webp over png over jpg
The heuristics for guessing "best" image file for a given board will now
prefer webp over png over jpg as there is a good chance that when we
need to fall back to _any_ image for the lack of a better match, a webp
image, if one exists, will be the best image to use.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-22 13:31:51 -04:00
Benjamin Cabé
7586db6e46 doc: _scripts: gen_boards_catalog.py: improve image guessing heuristics
When a board or shield is named boardfoo_is_awesome, we now explicitly
look for images with a name that starts with one of the segments of the
board/shield name ; i.e.: boardfoo_is_awesome.imgext, then
boardfoo_is.imgext, then boardfoo.imgext.

Fixes: zephyrproject-rtos/zephyr#96144

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-22 13:31:51 -04:00
Rafał Kuźnia
92b1346f91 drivers: ieee802154: nrf5: Add temporary API migration code
The transmit functions will return an error code, instead of a boolean
value. To prepare for this, the API calls are temporarily implemented in
two variants, for old and new API declarations.

The presence of new API will be detected by the use of
NRF_802154_TX_FUNCTIONS_RETURN_ERROR_CODE macro, which will be
unconditionally defined by a newer nrf-802154 driver.

Signed-off-by: Rafał Kuźnia <rafal.kuznia@nordicsemi.no>
2025-09-22 13:31:17 -04:00
Dong Wang
1730c0daab soc: ish: Disable D0i3 low-power state for ISH
- It's not fully enabled.
- Chrome ISH cannot reach such deep low-power state for current scenarios.
- Chrome ISH's panic info mechanism needs SRAM content kept with ISH
reset, but D0i3 has whole SRAM banks power-off.

Signed-off-by: Dong Wang <dong.d.wang@intel.com>
2025-09-22 13:30:55 -04:00
Dong Wang
980e0b070f west.yml: hal_intel: Update to latest revision
- Add the ISH latest code enhancements for SEDI drivers.
- Adjust PM code directory structure.
- Refactor PM code.
- Build AON code in a dedicated lib libish_aontask.a for easy use in
ish_aon.ld file.
- Seperate one zephyr cmake build file to many for different modules.

Signed-off-by: Dong Wang <dong.d.wang@intel.com>
2025-09-22 13:30:55 -04:00
Dong Wang
57ae93e8e3 soc: ish: Move PM init into power.c and connect IRQs in it
- Add SOC interrupt properties and interrupt-names ("reset_prep", "pcidev",
  "pmu2ioapic") to intel_ish5 DTS files so PM IRQs are discoverable via DT.
- Move SEDI PM initialization and IRQ setup into ISH SOC PM init:
- Remove the direct call to sedi_pm_init() from soc_early_init_hook in
soc.c.
Previously SEDI code has those IRQ numbers hard coded and calls Zephyr APIs
to connect IRQs, which should be avoided.

Signed-off-by: Dong Wang <dong.d.wang@intel.com>
2025-09-22 13:30:55 -04:00
Dong Wang
64cbfb90f7 soc: intel_ish: Simplify ISH AON linker script
- Remove per-object AON macros and replace with explicit KEEP entries
  referencing libish_aontask.a for .text/.rodata/.data/.bss.
- Introduce __ish_aon_start / __ish_aon_end linker symbols.
- Rename GROUP from AON to ISH_AON for clarity.
It's not good to specify source file names in linker script.

Signed-off-by: Dong Wang <dong.d.wang@intel.com>
2025-09-22 13:30:55 -04:00
Dong Wang
b64e30b119 soc: intel_ish: Improve ISH PM logging
- cleanup header files included.
- Rename LOG_MODULE_REGISTER from pm_service to ish_pm and use
  CONFIG_PM_LOG_LEVEL.
- Guard verbose debug traces so they only print for suspend-to-RAM/long
  idle states, reducing runtime noise.
- Promote an unsupported power state message from LOG_DBG to LOG_ERR.

No functional change to power handling; changes are limited to logging
and verbosity control.

Signed-off-by: Dong Wang <dong.d.wang@intel.com>
2025-09-22 13:30:55 -04:00
Alberto Escolar Piedras
621255fc95 doc: board native_sim: Mention that now we support FUSEv3 also
How to select it, and what packages can be used.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-09-22 13:30:46 -04:00
Alberto Escolar Piedras
b86e52bd6f subsys/fs/fuse: Support using libfuse3
Support using FUSE v3, instead of FUSE v2.

FUSE v3 has been out for a couple of years now, so most distributions
have it.
But note the FUSE library (and its v3 branch) is currently unmaintained,
and older distributions do not ship it.

Some Linux distros have transitioned their packages away from fuse2.
Which results in less atention in these distros to fuse2, and therefore
a higher likelyhood that there would be distribution issues with the
corresponding packages.
There is also some likelihood the fuse2 packages may be eventually
droped by some of these.

So let's support either version, with a kconfig adapting to either API
and their quirks.

Note that both the fuse2 and fuse3 library code have quite a few
sideeffects on the process that uses it.

By now we continue defaulting to fuse2 as it is the most common.
But users can select to use the v3 if they have an issue w v2 or want
to start trying out using v3.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-09-22 13:30:46 -04:00
Alberto Escolar Piedras
24252e2ac4 subsys/fs/fuse: Avoid possible race
Avoid a possible race between the FUSE thread and the Zephyr threads
during init.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-09-22 13:30:46 -04:00
Alberto Escolar Piedras
129e50cd34 subsys/fs/fuse: Misc build fixes
FUSE_INCLUDE_DIRS should be passed to the native_simulator build.
If there is several fuse libraries installed, we need to ensure the
bottom side of the driver is built with the correct include paths.
(These includes are irrelevant for the Zephyr side build)

Support having a list of include paths instead of single one.

Support having a list of libraries to link to instead of a single one.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-09-22 13:30:46 -04:00
Benjamin Cabé
7be280cee6 bluetooth: mesh: access: doxygen improvements
A few straightforward cleanups to existing documentation to improve
coverage and properly hide internal macros.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-22 13:30:13 -04:00
Johan Hedberg
1548ca98fc doc: release process: Update the timeline for the release announcement
Update the timeline so that the release timeline announcement goes out two
weeks prior to rc1. This way developers have more time to ensure that their
features will make it to the next release. Also add a reminder of the
release timeline one week prior to rc1.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2025-09-22 13:30:01 -04:00
Jun Lin
55cdcdce86 drivers: pwm: npcx: fix word register access check placement
Because the PWM module mixes byte and word register together, the driver
adds an assertion check by writing a pattern to the 2-byte register
`PRSC`, reading it back, and performing a comparison. However,
the `PRSC` register cannot be written when the bit 7 (the PWR bit) in
register `PMWCTLn` is set to 1. This commit moves the assertion check to
a proper place to ensure the write is valid.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
2025-09-22 13:29:53 -04:00
Ioannis Karachalios
617d8ae6bd tests: memc: Update yaml to support Smartbond platforms
Testing with external PSRAM memory requires that an extra overlay file
be defined. Twister requires that platform name along with qualifier be
declared.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2025-09-22 13:29:36 -04:00
Ioannis Karachalios
4195770b62 soc: renesas: smartbond: Select ARM DWT feature
Select ARM DWT feature to suppress build warning related to null pointer
detection mechanism.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2025-09-22 13:29:36 -04:00
Ioannis Karachalios
7de1f7218b boards: renesas: da14695_dk_usb: Add missing board settings
This commit should deal adding missing board settings for da14695_dk_usb
so that the latter gets synchronized with da1469x_dk_pro.
By default, peripheral blocks, not actively referenced, should be disabled
and be enabled by application overlay files.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2025-09-22 13:29:36 -04:00
Pieter De Gendt
b846055d72 doc: contribute: style: Add Python style guidelines
Add a page describing the Python style guidelines and tooling used.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-09-22 13:29:18 -04:00
Szymon Janc
6efb6bf008 tests: Bluetooth: Tester: Always enable ISO for GAP
This is part of GAP and should be always enabled (just like periodic
advertising and others).

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2025-09-22 13:29:05 -04:00
Sebastian Bøe
38a0f713a6 soc: nordic: uicr: Add support for SECURESTORAGE
Add UICR.SECURESTORAGE configuration based on device tree partitions.
Validates partition layout and populates size fields in 1KB units.
Handles missing partitions gracefully.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2025-09-22 13:28:55 -04:00
Sebastian Bøe
d5003d996b boards: nrf54h20dk: Add secure storage partitions
Update the default memory map to include a `secure_storage_partition`,
which is divided into at most four subpartitions. These will be used to
configure UICR.SECURESTORAGE, if enabled.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2025-09-22 13:28:55 -04:00
Alejandro Perea
fa07a03155 drivers: pwm: flexpwm: Fix consecutive PWM setup
If two pwm_set_pulse_dt calls are put consecutive to each other,
the period has already been configured and they refer to the same module
but different submodule (PWM A & B), the second call fails.

LDOK with ReloadImmediate should result in immediate change of the
buffered registers, but it doesn't seem like that's the case.

To fix this, we busywait on LDOK clearance before setting new pulse values.

Fixes zephyrproject-rtos/zephyr#95653

Signed-off-by: Alejandro Perea <alejandro.perea@classified-cycling.cc>
2025-09-22 13:28:39 -04:00
Jordan Yates
9b8f68a350 tests: fs: zms: test CONFIG_ZMS_NO_DOUBLE_WRITE
Enable tests for `CONFIG_ZMS_NO_DOUBLE_WRITE=y`.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-22 13:28:28 -04:00
Jordan Yates
aa9123606c fs: zms: fix delete non-existent with cache
Fix deleting a key that doesn't exist from writing a new entry to the
filesystem when `CONFIG_ZMS_NO_DOUBLE_WRITE` and
`CONFIG_ZMS_LOOKUP_CACHE` are enabled.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-22 13:28:28 -04:00
Jordan Yates
ff020ec8a0 fs: zms: fix no-cache + no-double-write
Fix a compiler error when `CONFIG_ZMS_NO_DOUBLE_WRITE=y` and
`CONFIG_ZMS_LOOKUP_CACHE=n`.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-22 13:28:28 -04:00
Jordan Yates
1e5dea964e tests: storage: flash_map: test subpartitions
Validate that subpartitions can be used with the `flash_map` API.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-22 13:28:18 -04:00
Jordan Yates
c3221f0420 bluetooth: host: conn: handle bt_le_create_conn_cancel error
Handle the `bt_le_create_conn_cancel` call in the deferred worker
failing due to insufficient command buffers.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-22 13:28:00 -04:00
Fabrice DJIATSA
0b8379b72b tests: drivers: flash: common: test stm32h7/n6 with MemoryMapped mode
STM32N6 and STM32H7RS have an external NOR flash mounted.

Enabling CONFIG_STM32_MEMMAP is a workaround that helps us avoid dealing
with even and odd addresses during write/read operations
(see the test_read_unaligned_address testcase).
With MEMMAP enabled, we can use memcpy() instead of indirect operations
on the SPI bus for write operations, for example, which is agnostic to
flash even and odd addresses.

Additionally, setting CONFIG_TEST_DRIVER_FLASH_SIZE for STM32H7RS is
needed in the test_get_size testcase.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-09-22 13:27:48 -04:00
Tomasz Chyrowicz
c1baf2f763 mgmt: Allow to block confirming non-acive slots
In Direct XIP with revert, it should be possible to block confirmation
of the non-active slot, so only a bootable binaries are marked as valid.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2025-09-22 13:27:27 -04:00
Sai Santhosh Malae
0e93a0b25f west.yml: Update hal_silabs version
Update hal_silabs version to latest commit:
edbd418670ad8c7cad629a09df2ceee0bc23cf6d

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-09-22 13:27:01 -04:00
Sai Santhosh Malae
926f25b0fc modules: hal_silabs: Remove CMSIS references
Removed CMSIS references from wiseconnect CMakeLists
as they are no longer required with UART device runtime
PM. Keeping them adds unnecessary compilation overhead.

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-09-22 13:27:01 -04:00
Sai Santhosh Malae
088b59039d drivers: serial: uart_ns16550: Add pm support for uart_ns16550 driver
This commit enables the pm device runtime driver support
for the uart_ns16550 driver (only for devices that have an
associated power domain enabled).

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-09-22 13:27:01 -04:00
Sai Santhosh Malae
295431dad5 drivers: power_domain: siwx91x: Add power domain driver for siwx91x SoC
1. Added siwx91x power domain node in siwg917.dtsi
2. Updated UART device nodes to reference the newly added power domain.
3. Implemented power domain driver to manage power domain transitions
   for the SoC.

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-09-22 13:27:01 -04:00
Sai Santhosh Malae
77287a1877 drivers: dma: siwx91x: Sort CMakeLists.txt items
sort library sources and compile time definitions
in wiseconnect CMakeLists.txt

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-09-22 13:26:52 -04:00
Sai Santhosh Malae
4a24c8a4f5 drivers: dma: siwx91x: dma_chan_blen test app support
Add siwx917_rb4338a board overlay and config files

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-09-22 13:26:52 -04:00
Sai Santhosh Malae
380f35a76a drivers: dma: siwx91x: DTS changes for siwx91x GPDMA driver
1. Create a YAML file for gpdma node
2. Add GPDMA node in the siwx917.dtsi

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-09-22 13:26:52 -04:00
Sai Santhosh Malae
ce923eb8fc drivers: dma: siwx91x: Add siwx91x GPDMA driver
Implement GPDMA driver for siwx91x device

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-09-22 13:26:52 -04:00
Sai Santhosh Malae
a0b0173b2f drivers: dma: siwx91x: GPDMA clock initialization for siwx91x
Clock driver changes required for initializing the GPDMA clock
for the siwx91x driver

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-09-22 13:26:52 -04:00