Commit graph

126,787 commits

Author SHA1 Message Date
Guillaume Gautier
308e219ea5 drivers: pwm: stm32: use kernel clock instead of dedicated function
Now that the timer kernel clocks are defined in device tree, use the
clock get API to fetch the clock frequency instead of calculating the
value in the driver.
Removes the now unused function get_tim_clk.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
2ab5452b32 drivers: counter: stm32: use kernel clock instead of dedicated function
Now that the timer kernel clocks are defined in device tree, use the
clock get API to fetch the clock frequency instead of calculating the
value in the driver.
Removes the now unused function counter_stm32_get_tim_clk.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
2cccfda4cf dts: arm: st: wl: add support for timer kernel clock
Add support for timer kernel clock for STM32WL.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
4ccef2d443 dts: arm: st: wba: add support for timer kernel clock
Add support for timer kernel clock for STM32WBA.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
af762bd51a dts: arm: st: wb: add support for timer kernel clock
Add support for timer kernel clock for STM32WB.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
525227e28a dts: arm: st: u5: add support for timer kernel clock
Add support for timer kernel clock for STM32U5.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
234f1450ce dts: arm: st: u0: add support for timer kernel clock
Add support for timer kernel clock for STM32U0.

Contrary to other series, on U0, TIMPCLK is always equal to PCLK, so no
need to define it, we can use PCLK directly.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
e180737aec dts: arm: st: l5: add support for timer kernel clock
Add support for timer kernel clock for STM32L5.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
492558f5a2 dts: arm: st: l4: add support for timer kernel clock
Add support for timer kernel clock for STM32L4.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
be85642714 dts: arm: st: l1: add support for timer kernel clock
Add support for timer kernel clock for STM32L1.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
7e7c145e90 dts: arm: st: l0: add support for timer kernel clock
Add support for timer kernel clock for STM32L0.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
3ba81b31bd dts: arm: st: h7rs: add support for timer kernel clock
Add support for timer kernel clock for STM32H7RS.

Define a new property for the timer prescaler in the RCC binding of H7RS.

Also fix the clock bus of TIM16 and TIM17 (they are on APB2 instead of 1)

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
7c44ebe493 dts: arm: st: h7: add support for timer kernel clock
Add support for timer kernel clock for STM32H7.

Define a new property for the timer prescaler in the RCC binding of H7.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
1614da68c7 dts: arm: st: h5: add support for timer kernel clock
Add support for timer kernel clock for STM32H5.

Define a new RCC binding for H5 with the timer prescaler property (timpre).

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
e2882b7c06 dts: arm: st: g4: add support for timer kernel clock
Add support for timer kernel clock for STM32G4.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
11d5f30ba5 dts: arm: st: g0: add support for timer kernel clock
Add support for timer kernel clock for STM32G0.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
7a612f3f2d dts: arm: st: f7: add support for timer kernel clock
Add support for timer kernel clock for STM32F7.
The STM32F7 RCC clock driver complies with st,stm32f4-rcc
driver variant.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
9c4fc612b8 dts: arm: st: f2: add support for timer kernel clock
Add support for timer kernel clock for STM32F2.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
231d75ae29 dts: arm: st: f4: add support for timer kernel clock
Add support for timer kernel clock for STM32F4.

Define a new RCC binding to add the timer prescaler property (timpre).
This new binding is used for all STM32F4 except F405/F407/F415/F417 who do
not support it.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
136bed1aaa dts: arm: st: f3: add support for timer kernel clock
Add support for timer kernel clock for STM32F3.
Also reorganizes the timer instances:
- TIM3 is not available on F301, F318, F302x6 or x8, but is available for
  all others
- TIM4 is available on F302xB and higher, F303xB and higher, F358, F398,
  F373 and F378
- TIM7 is not available on F301, F318, F302, but is available for all
  others
- TIM8 is only available on F303xB and higher, F358 and F398
- TIM20 is only available on F303xD and xE,and on F398

Depending of the SoC version, some timers have access to one or two
distinct clock sources. Timers with NO_SEL selection only have access
to the base TIMPLCKx clock, those defined with TIMx_SEL(0) can use another
source clock: STM32_SRC_TIMPLLCLK. That's why some clocks are redefined.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
9b6ec7e69e dts: arm: st: f1: add support for timer kernel clock
Add support for timer kernel clock for STM32F1

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
898f99e672 dts: arm: st: f0: add support for timer kernel clock
Add support for timer kernel clock for STM32F0

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
f3caba8639 dts: arm: st: c0: add support for timer kernel clock
Add support for timer kernel clock for STM32C0

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Guillaume Gautier
142f62a911 drivers: clock: stm32: add support for timer kernel clock
Add initial support for timer kernel clock for STM32.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-21 13:06:58 +02:00
Marek Matej
bbae11a878 samples: subsys: ipc: openamp sysbuild targets
* Add missing ESP32 targets
* Fix typo in target name

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-08-21 13:06:06 +02:00
Emil Gydesen
555dbcda7c doc: releases: Bluetooth: Add note for GMAP BGS new requirement
Add note for the new requirement for the GMAP BGS role. There is
no GMAP sample or any changes in-tree that need to be updated for
this, so the best we can do, without implement a whole new sample,
is to refer to the BAP broadcast assistant sample.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-21 11:10:23 +02:00
Emil Gydesen
eac0f93484 doc: Bluetooth: Update GMAP version to 1.0.1
Zephyr now supports GMAP version 1.0.1.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-21 11:10:23 +02:00
Emil Gydesen
8b6162aec3 Bluetooth: GMAP: Add requirement for Broadcast assitant for BGS
As per GMAP 1.0.1, the BGS role now requires support for the
BAP Broadcast Assistant.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-21 11:10:23 +02:00
Benjamin Cabé
1d50a6af9c include: drivers: gpio: add gpio.h @file to doxygen group
This helps anchoring the file to the proper section in the online
documentation when browsing by file.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-21 11:09:22 +02:00
Benjamin Cabé
f393f83d06 include: drivers: gpio: gpio_utils doxygen improvements
add a missing doc + actually show up the utilities from the gpio_utils.h
header file in the doxygen documentation.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-21 11:09:22 +02:00
Benjamin Cabé
235704f040 include: dt-bindings: gpio: add to existing doxygen group
Redefining the gpio_interface group is bad Doxygne practice, add to
existing group instead.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-21 11:09:22 +02:00
Benjamin Cabé
6377b1ff84 include: dt-bindings: gpio: add vendor headers to gpio_interface_ext
Group the vendor headers into the doxygen group used for device-specific
GPIO API extensions as opposed to have them clutter top-level GPIO docs

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-21 11:09:22 +02:00
Benjamin Cabé
fca7d8a8d5 include: drivers: gpio: add doxygen group for vendor extensions
Add a new doxygen group for device-specific GPIO API extensions and
put vendor header files in it.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-21 11:09:22 +02:00
Benjamin Cabé
96979bed2c include: llext: fix doxygen docs for LLEXT_TEMPORARY_BUF_LOADER
fix comment style so that it's proper doxygen

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-21 11:08:58 +02:00
Chang An
6c936eb5ba samples: Bluetooth: Fix compatibility with Google Pixel unicast audio
Update BAP unicast server samples to work with Google Pixel:

Fix sink/source location count to match actual sink/source count,
  preventing "Codec channel setup fail" errors on phone

Increase ATT prepare count from 1 to 2 to handle phone sending
Codec Config for 3 ASEs simultaneously, avoiding Codec Config
failures during recording

Signed-off-by: Chang An <chang.an_1@nxp.com>
2025-08-21 11:08:47 +02:00
Rafal Dyla
8876a3bbd2 modules: hal_nordic: nrfs: Disabling subscription
- Code optimization for platforms which don't use subscription feature
in the temperature service.
- Test adaptation to code changes

Signed-off-by: Rafal Dyla <rafal.dyla@nordicsemi.no>
2025-08-21 11:08:09 +02:00
Tomasz Bursztyka
347fb0a75a drivers: pwm: Use DEVICE_API relevantly on mspm0 driver
It was missing thus it was not possible to get a valid answer
from DEVICE_API_IS().

Signed-off-by: Tomasz Bursztyka <tobu@bang-olufsen.dk>
2025-08-21 06:52:34 +02:00
Jordan Yates
3b7a797d2d lorawan: services: swap select to depends on
Switch the selects on `LORAWAN_FRAG_TRANSPORT` to `depends on`. `select`
should only be used for simple symbols without dependencies themselves.
Mixing `depends on X` and `select X` on different symbols is the primary
cause of Kconfig dependency loops.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-08-21 06:52:11 +02:00
Ren Chen
80d5ecc148 drivers: spi: it51xxx: move interrupt flags check to compile time
as title.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2025-08-21 06:51:59 +02:00
Ren Chen
d860b6f598 dts: ite: it51xxx: set high-level triggered mode for spi0 node
This commit sets the interrupt mode to high-level
triggered, as fifo mode is enabled by default
(CONFIG_SPI_ITE_IT51XXX_FIFO_MODE=y) and the fifo
mode only supports high-level triggered.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2025-08-21 06:51:59 +02:00
Ren Chen
8563510dfd driver: spi: it51xxx: enable spi clock only when spi transaction
This commit disables spi clock during idle to reduce power
consumption.

Tested with: reduce current cons. by around 0.08mA on it515xx_evb

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2025-08-21 06:51:59 +02:00
Will McGloughlin
af212ab596 boards: st: nucleo_u385rg_q: USB device support
Enable USB for the Nucleo U385RG-Q. Samples in samples/subsys/usb compile
and operate as expected.

Signed-off-by: Will McGloughlin <willem.mcg@gmail.com>
2025-08-21 06:51:46 +02:00
Will McGloughlin
d0c90f7997 dts: arm: st: stm32u3: Add USB DTS node
Add USB DTS node for STM32U3 series SoCs.

Signed-off-by: Will McGloughlin <willem.mcg@gmail.com>
2025-08-21 06:51:46 +02:00
Charles Hardin
0fe091bc46 net: dns: fix the bounds conditions on the failures and error returns
The loop condition is not the count of the actual tries since the
continue or breaks can occur on the loop and thus a failure count
can falsely match a loop count even when a query is outstanding.

This can be seen when a dual stack resolve is used for IPv4 and IPv6
that has two fds to be used and the interface has only gotten an
IPv6 address. The failures on the IPv4 will indicate a 1 and the break
on the tried attempt on the IPv6 will break the loop on a 1.

Signed-off-by: Charles Hardin <ckhardin@gmail.com>
2025-08-21 01:43:59 +02:00
Derek Snell
6d748db7c7 drivers: mipi_dbi: nxp_lcdic: add DMA_ADDR_ADJ_NO_CHANGE
Update dma_block_config for memory to peripheral transfers.

Signed-off-by: Derek Snell <derek.snell@nxp.com>
2025-08-21 01:43:50 +02:00
Dmitrii Sharshakov
a8dec5b42c boards: arm: add probe-rs runner for RP2350 boards
Add the chip parameter for probe-rs. Verified on Feather RP2350.

Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
2025-08-21 01:43:00 +02:00
Benjamin Cabé
72fdf7e7f3 include: drivers: misc: add rpi_pico pio driver in doc tree
Mount the Raspberry Pi Pico PIO driver into the Misc. drivers
doxygen group.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-20 18:47:03 +02:00
Guowei Li
49965a09b2 board: arm64: Add suport for ROC-RK3588-PC
Add initial support for the ROC-RK3588-PC AArch64 board.
It features a quad-core Cortex-A55 CPU based on the ARMv8.2 architecture.
This commit also enables SMP, allowing all four cores to run the
synchronization sample.

Signed-off-by: Guowei Li <15035660024@163.com>
2025-08-20 18:46:54 +02:00
Guowei Li
d4d9eb57a3 dts: rockchip: add rk3588
Add initial device tree support for the Rockchip RK3588 SoC.
The DTS describes:
- Four Cortex-A55 cores with PSCI enable-method
- GICv3 interrupt controller
- ARMv8 timer
- UART2 and UART3 (disabled by default)

Signed-off-by: Guowei Li <15035660024@163.com>
2025-08-20 18:46:54 +02:00
Jake Greaves
e247cc3d9c drivers: counter: stm32: config rtc prescaler from DT
Handle RTC prescaler options inside RTC counter driver

Signed-off-by: Jake Greaves <jake.greaves@analog.com>
2025-08-20 18:46:47 +02:00