Commit graph

17,121 commits

Author SHA1 Message Date
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
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
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
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
Benjamin Cabé
371c4d51ef include: drivers: dai: fix doxygen syntax
Fix bad doxygen comments for a few enums and structs

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-20 16:33:03 +02:00
Olivier Lesage
90113e68ea bluetooth: host: Combine main and sub mode CS step options
Not all combinations of main mode and sub mode are valid, so to make it
harder to select incorrect parameters, the main mode and sub mode
enums are combined into one.

Now the user chooses any valid option in enum bt_conn_le_cs_mode.

Signed-off-by: Olivier Lesage <olivier.lesage@nordicsemi.no>
2025-08-20 16:30:57 +02:00
Camille BAUD
d68418c068 drivers: clock_control: Add BL70x clock control
Adds clock_control driver for BL70x

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-08-20 16:30:48 +02:00
Emil Gydesen
31a3315d61 Bluetooth: BAP: Replace bt_bap_iso with bt_iso_chan for streams
Modify the struct bt_bap_stream to have a direct reference to the
bt_iso_chan, rather than having a reference to the parent
bt_bap_iso.

This change will allow users to more easily and directly access
the bt_iso_chan, instead of getting the reference via
bt_bap_ep_get_info.
Additionally, this allows users to access the bt_iso_chan for
streams that are not codec configured, and thus not have a
bt_bap_ep reference.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-20 13:46:02 +02:00
Emil Gydesen
25247fa401 Bluetooth: ISO: Expose CIG_ID, CIS_ID, BIG_Handle and BIS_Number
Expose the IDs, handles and numbers of CIGs, BIGs, CISes and BISes
via the ISO info struct. This information may be needed by higher
layer (such as the Basic Audio Profile (BAP)) or used as indexes
for arrays in the application layer.

The location of the CIG_ID, CIS_ID, BIG_Handle and BIS_Number
are moved to the location struct inside of struct bt_conn_iso
instead of being stored directly in it.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-20 13:46:02 +02:00
Camille BAUD
0ab46a6d9c drivers: clock_control: Add BL61x clock control
Adds clock_control driver for BL61x

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-08-20 13:45:26 +02:00
Hein Wessels
70a8be66de drivers: gpio: esp32: correct comment about pin drive strength
The comment about which drive strength option is high or low was
wrong and this commit fixes it. For example, ESP32_GPIO_DS_ALT
results in GPIO_DRIVE_CAP_0 being used which is the weakest
option according to the HAL file espressif-esp32-gpio.h.

Signed-off-by: Hein Wessels <heinwessels93@gmail.com>
2025-08-20 13:45:16 +02:00
Benjamin Cabé
ad0f411f5f include: video: group video-controls.h under main video Doxygen group
Ensure the "Video Controls" do not show up as a top level device API
but are rather folded into the main video Doxygen group.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-20 09:29:28 +02:00
Alain Volmat
7d447a1dda drivers: clock: stm32: add PLLSAI2 support (common + L4)
Add stm32 common clock handling for the SAI2 PLL.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-08-20 09:28:02 +02:00
Alain Volmat
0abbc2f0f3 drivers: clock: stm32: add PLLSAI1 support (common + L4)
Add stm32 common clock handling for the SAI1 PLL.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-08-20 09:28:02 +02:00
Alain Volmat
d646b9b267 include: dt-bindings: stm32_clocks: add stm32l4+ bindings header
On stm32l4+ series, the SAI1 and SAI2 clock source selection fields
are within a different register hence a different binding header
file is introduced to allow proper field usage on those platforms.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-08-20 09:28:02 +02:00
Benjamin Cabé
f4a85bbaa9 include: drivers: consolidate emulation headers
Do not clutter the "Device Drivers" documentation with emulation
headers.
Ensure each emulated device API appears both in the device group as
well as "Emulator interfaces" (e.g. bbram_emul is showing up in
both BBRAM docs as well as Emulator Interfaces docs)

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-20 02:43:24 +02:00
Mahesh Mahadevan
4da30d01b8 drivers: mcux_os_timer: Handle counter overflow in Power Mode 3
The counter that is used in Power Mode 3 to track System time could
overflow for large timeouts.
Add an API that the power system could use to ignore wakeup events
from the timer.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-08-19 23:35:32 +02:00
Mahesh Mahadevan
ac7451e6af drivers: timer: Move MAX_WAIT to header file
Move MAX_WAIT define to the system timer header file
so system timer drivers can use this define.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-08-19 23:35:32 +02:00
Benjamin Cabé
1b97f4b2b0 include: usbc: doc: Group all USB-C API in same doxygen Group
Put every header defined in include/zephyr/drivers/usb_c/ into the same
doxygroup (`usb_type_c`) so as to not clutter the top-level
`io_interfaces` group with multiple USB-C related groups.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-19 20:47:57 +02:00
Benjamin Cabé
8de9e05dfb include: drivers: input: add @file tag to analog_axis headers
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-19 19:18:38 +02:00
Benjamin Cabé
b1358efd84 include: drivers: input: enhance Doxygen documentation for pmw3610
Complete the Doxygen documentation for this input driver, put in
input_interface_ext group.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-19 19:18:38 +02:00
Benjamin Cabé
487ea79700 include: drivers: input: add missing @file command to input_kbd_matrix.h
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-19 19:18:38 +02:00
Benjamin Cabé
b3c85b37df include: drivers: input: add missing @file command to input_touch header
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-19 19:18:38 +02:00
Benjamin Cabé
94231fd096 include: drivers: input: add missing @file command to input_hid header
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-19 19:18:38 +02:00
Benjamin Cabé
93dda038a2 include: drivers: input: add Doxygen documentation for keymap utilities
Add docs and group under input_interface Doxygen group.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-19 19:18:38 +02:00
Benjamin Cabé
f355788ca5 include: drivers: input: enhance Doxygen documentation for ra_ctsu
Complete the Doxygen documentation for this input driver, put in
input_interface_ext group.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-19 19:18:38 +02:00
Benjamin Cabé
81cdd69fc8 include: drivers: input: enhance Doxygen documentation for paw32xx driver
Complete the Doxygen documentation for this input driver,
put in input_interface_ext group.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-19 19:18:38 +02:00
Benjamin Cabé
05478edacb include: drivers: input: enhance Doxygen documentation for pat912xx driver
Complete the Doxygen documentation for this input driver,
put in input_interface_ext group.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-19 19:18:38 +02:00
Benjamin Cabé
56a527321e include: drivers: input: enhance Doxygen documentation for CY8CMBR3xxx
Complete the Doxygen documentation for this input driver,
put in input_interface_ext group.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-19 19:18:38 +02:00
Benjamin Cabé
0c006d7523 include: drivers: input: add Doxygen group for hw-specific API extensions
new input_interface_ext group can be used for grouping device-specific
input API extensions together.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-19 19:18:38 +02:00
Benjamin Cabé
9105152e57 include: drivers: input: fix doxygen for input_touchscreen_common_config
properly document the struct fields

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-19 19:18:38 +02:00
Benjamin Cabé
0ff45a6d9f include: drivers: input: add @file command to input.h
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-19 19:18:38 +02:00
Sri Surya
3d91929346 drivers: pinctrl: Add pinctrl driver for Apollo2 SoC
This commit adds pinctrl support for Apollo2 SoC.

Signed-off-by: Sri Surya <srisurya@linumiz.com>
2025-08-19 18:00:41 +02:00
Kapil Bhatt
f48a66121a net: zperf: Improve UDP multicast upload
UDP multicast uploads did not produce zperf-compatible server stats,
so the client waited for and tried to decode a non-existent reply,
causing “Unexpected response flags” and misleading
“LAST PACKET NOT RECEIVED!!!” output.

This change treats multicast as client-only: after sending
the negative-id FIN it does not wait for or decode server stats,
Instead transmits the FIN a few times to help receivers detect test end.
The shell prints a clear “Statistics (client only)” summary for multicast
and suppresses the error when client stats are valid.

Unicast behavior is unchanged.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
2025-08-19 14:16:05 +02:00
Minh Tang
3f13f25752 drivers: adc: Initial support for ADC driver on RX130
Add driver code and devicetree for 12-bit ADC on
RX130 MCU

Signed-off-by: Minh Tang <minh.tang.ue@bp.renesas.com>
2025-08-19 14:15:41 +02:00
Jakub Zymelka
138f977704 drivers: adc: nrfx: enable negative values for single-ended ADC readings
The ADC driver API already supports ADC readings which can return signed
values, these are differential readings. In Nordic's datasheet, we have
a mode called "single ended", but its just a name. "Single ended" is a
differential reading, with the negative channel tied to GND. This is not
compatible with zephyrs definition of a single ended reading.

To support Nordic's "single ended" mode, the user must configure
a differential reading, with the negative input tied to ground, which
the saadc driver can then use to configure the reading as Nordic SAADC
"single ended", and return negative values as expected.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2025-08-19 13:02:21 +02:00
Khaoula Bidani
d2be504eeb drivers: clock_control: add HSI_DIV on STM32L0
Enable support for HSI_DIV and its use as a clock source on STM32L0 SoCs.

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
2025-08-19 12:27:17 +03:00
Pavel Vasilyev
8de6705ec3 drivers: bluetooth: Align bt_hci_send behavior on error
This change alignes HCI drivers behavior with Host expectation. That is:
if an HCI driver managed to send a packet to Controller, the HCI driver
also unreferences it. If the HCI driver didn't manage to send the
packet to Controller and returns an error code, it does not unreferences
buffer.

This change aligns the behavior of HCI drivers with the Host's
expectations. Specifically:
- If an HCI driver successfully sends a packet to the Controller, the
  HCI driver also unreferences it.
- If the HCI driver fails to send the packet to the Controller and
  returns an error code, it does not unreference the buffer.

Fixes #94445

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-08-18 22:01:15 +02:00