Commit graph

126,787 commits

Author SHA1 Message Date
Etienne Carriere
b78ada18b1 include: zephyr: dt-bindings: clock: stm32u5: fix refman reference
Correct references to STM32U5 series reference manual.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-03-26 16:19:09 +01:00
Etienne Carriere
175662eb72 include: zephyr: dt-bindings: clock: stm32n6: fix refman reference
Correct references to STM32N6 series reference manual.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-03-26 16:19:09 +01:00
Etienne Carriere
b228c075ad include: zephyr: dt-bindings: clock: stm32n6: add clock source IDs
Add some clock source identifiers that were missing for stm32n6xx
platforms.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-03-26 16:19:09 +01:00
Etienne Carriere
ce63ccfc5d include: drivers: clock_control: stm32n6 CPU clock selection macros
Add STM32_CPUCLK_SRC_* macros as helper macros to select which source
clock feeds the CPU clock on a STM32N6 SoC.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-03-26 16:19:09 +01:00
Tomasz Moń
75109707e3 usb: device_next: Do not add serial number without HWINFO
For many devices iSerialNumber is not required. The only device class
currently supported in Zephyr that requires iSerialNumber is MSC. If the
serial number is not available then iSerialNumber must be 0. Failure to
read the string descriptor for non-zero iSerialNumber fails USB Command
Verifier Chapter 9 tests.

When USBD_DESC_SERIAL_NUMBER_DEFINE() was used without CONFIG_HWINFO
then it did lead to runtime failure when requesting the string (thus
failing certification).

Fail USBD_DESC_SERIAL_NUMBER_DEFINE() at build-time if CONFIG_HWINFO is
not set to prevent the surprise at runtime. Only define serial number
descriptors if CONFIG_HWINFO is enabled.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-03-26 16:18:56 +01:00
cyliang tw
ca0f5f6924 tests: drivers: spi: spi_loopback: support numaker_m55m1
Add support for Nuvoton numaker board numaker_m55m1.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2025-03-26 11:34:17 +01:00
cyliang tw
30be9dae6f dts: arm: nuvoton: add spi nodes for numaker m55m1x
Update m55m1x.dtsi for spi support.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2025-03-26 11:34:17 +01:00
Sebastian Głąb
0d7f6d156c tests: boards: nrf: qdec: Add nRF54L20pdk to platform_allow
Enable test execution on nRF54L20pdk.
Overlay was already added.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-03-26 11:33:20 +01:00
Jamie McCrae
5c027f270e drivers: sensors: kconfig: Add sort
Adds sort to individual sensor Kconfigs and sorts them

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-03-26 11:33:11 +01:00
Jamie McCrae
f6730f7db3 drivers: serial: kconfig: Fix unsorted additions
Fixes Kconfig files that have not been added in the right place

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-03-26 11:33:11 +01:00
Ivan Iushkov
ded9c1f44d bluetooth: CS: add bt_le_cs_get_antenna_path()
added function to calculate antenna path
based on the antenna permutation index and
total number of antenna paths

Signed-off-by: Ivan Iushkov <ivan.iushkov@nordicsemi.no>
2025-03-26 11:32:57 +01:00
Michał Stasiak
99198dc550 dts: nordic: nrf54l20: add comparator node
Added missing comparator node to nRF54L20 devicetree.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2025-03-26 11:32:47 +01:00
Tomasz Moń
6e3f8d4967 drivers: udc_dwc2: Set control endpoint CNAK only when necessary
SETUP data is unconditionally ACKed by the controller. Other DATA
packets sent to OUT control endpoint 0 (i.e. OUT Data Stage packets
and OUT Status Stage packet) are ACKed by the device only if the
endpoint was enabled with CNAK bit set.

In Buffer DMA mode controller will lock up in following scenario:
  * OUT EP0 is not enabled, e.g. OUT Status Stage has finished
  * Host starts Control Write transfer, i.e. sends SETUP DATA0 and
    device ACKs (regardless if endpoint is enabled or not)
  * host sends OUT Data Stage (OUT DATA1)
      - software enables endpoint to be able to receive next SETUP data
	while host is transmitting the OUT token. If CNAK bit is set
        alongside the EPENA bit, the device will ACK the OUT Data Stage.
        If CNAK bit is not set, the device will NAK the OUT Data Stage.

When the lockup occurs, from host perspective the OUT Data Stage packet
was successfully transmitted. This can result in host starting IN Status
Stage if there was only one OUT Data Stage packet. This in turn results
in device never getting the DOEPTINT0 SetUp interrupt. Besides just not
getting the SetUp interrupt, any subsequent control transfer won't be
noticed by device at all.

The lockup was first observed while stress testing. The host was issuing
endless sequence of Control Write, Control Read, Control Write, Control
Read, ... commands. When the controller did lock up in Buffer DMA mode,
from host perspective the device was timing out all control transfers.

Avoid the Buffer DMA lockup by setting CNAK bit only when necessary.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-03-26 11:32:33 +01:00
Seppo Takalo
05abdf5d0b net: lwm2m: Deprecate LWM2M_ENGINE_MESSAGE_HEADER_SIZE
Kconfig value LWM2M_ENGINE_MESSAGE_HEADER_SIZE added
an extra headroom for CoAP packet sizes so that
if CoAP Block-Wise transfer block-size is configured
to be same as LWM2M_COAP_MAX_MSG_SIZE, the full
payload block would usually fit to the datagram.

This causes too much confusion to be usable.
CoAP headers and options vary on sizes, and there is
no runtime limitations that we should check the
header size against.

Only real limitation is the CoAP packet size, which
must fit into the UDP datagram with typical DTLS headers.

Only limitation for CoAP block-size then is that
it must fit into the CoAP message with all the headers
and options. But as the option sizes, like path, vary,
it must be checked runtime.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-03-26 11:32:23 +01:00
Pieter De Gendt
044a94f06a net: lib: coap: coap_server: Use eventfd instead of socket pair
Convert the socket poll logic to use a more lightweight eventfd file
descriptor instead of a socket pair.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-03-26 08:55:45 +01:00
Martin Thiede
338371e483 boards: nucleo_h755zi_q: fix debugging
This fix uses the stm32h745i-disco openocd configuration instead of the
st_nucleo_h745zi configuration as the latter seems to be broken in
openocd as shipped by zephyr-sdk-0.17.0.

Signed-off-by: Martin Thiede <martin.thiede@accenture.com>
2025-03-26 08:55:37 +01:00
Martin Thiede
5f935da80d boards: nucleo_h755zi_q: add CAN support on M7
Add CAN support by configuring fdcan1 in the device tree for the M7
core. As with other H7xx boards, it will be clocked by pll2 which is
also turned on.

Updated documentation.

Tested on nucleo_h755zi_q board.

Signed-off-by: Martin Thiede <martin.thiede@accenture.com>
2025-03-26 08:55:27 +01:00
Henrik Brix Andersen
b933c4ec65 doc: releases: migration-guide: 4.2: mention NEORV32 board variants
Mention that NEORV32 processor templates are now supported via board
variants and clarify the NEORV32 version compatibility entry.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-03-26 08:55:10 +01:00
Henrik Brix Andersen
348faba41f boards: others: neorv32: update documentation
Update the NEORV32 board documentation to list the supported board targets
and describe how to customize these to match custom NEORV32
implementations.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-03-26 08:55:10 +01:00
Henrik Brix Andersen
957ecf3a42 boards: others: neorv32: add minimalboot board variant
Add a MinimalBoot board variant for the NEORV32 board. The software
configuration of this board matches the NEORV32 "MinimalBoot" processor
template.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-03-26 08:55:10 +01:00
Henrik Brix Andersen
d866ca9018 boards: others: neorv32: add up5kdemo board variant
Refactor the existing NEORV32 board to become a UP5KDemo board variant for
the NEORV32 board. The software configuration of this board matches the
NEORV32 "UP5KDemo" processor template.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-03-26 08:55:10 +01:00
Henrik Brix Andersen
c2b3a2e393 boards: others: neorv32: do not enable CONFIG_GPIO by default
Do not remove CONFIG_GPIO by default for the NEORV32 board.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-03-26 08:55:10 +01:00
James Roy
e38cc894e3 drivers: counter: Fix incorrect error codes
Unimplemented interfaces should return
-ENOSYS instead of -ENOTSUP.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-03-26 08:54:58 +01:00
James Roy
d9f3ee4bb0 doc: releases: Add a counter release entry
Add the counter_reset function in the counter
subsystem to reset the counter value to zero.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-03-26 08:54:58 +01:00
James Roy
bcbf69ed9f drivers: counter: nrf: Add nrfx-timer implementation
Implement the '.reset' interface in the nrfx-timer driver
to allow the upper layers to use the counter_reset
function.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-03-26 08:54:58 +01:00
James Roy
d019aea47b drivers: counter: Add native-posix implementation example
Implement the '.reset' interface in the native-posix driver
to allow the upper layers to use the counter_reset
function.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-03-26 08:54:58 +01:00
James Roy
355d904c67 drivers: counter: Add counter_reset function
Add a counter_reset function to the counter subsystem
to reset the counter value to zero. Introduce
a reset interface at the driver layer to implement
the counter_reset function.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-03-26 08:54:58 +01:00
Jonas Spinner
a65e93a47d device: fix typo in device_deinit
Fix minor typo s/responsability/responsibility.

Signed-off-by: Jonas Spinner <jonas.spinner@burkert.com>
2025-03-26 07:09:00 +01:00
Håvard Reierstad
77b6035fce Bluetooth: Host: Doc: Name enums in gap.h
Names the enums declared in `gap.h` and replaces references to them
with Doxygen references (@ref).

Signed-off-by: Håvard Reierstad <haavard.reierstad@nordicsemi.no>
2025-03-26 07:08:44 +01:00
Jakob Riepler
7512eb0b65 drivers: fix support for U-Blox M10 modules with M8 driver
The U-Blox M10 seems to interleave UBX and NMEA messages in a way that
confuses the M8 driver leading to missing the same message that directly
follows the UBX part every time (leading to no navigation updates).
As the driver does not parse the UBX blocks during normal operation anyways
it can just be disabled.

Signed-off-by: Jakob Riepler <jakob+zephyr@chaosfield.at>
2025-03-26 07:08:27 +01:00
Ryan McClelland
248f7971e4 drivers: i3c: stm32: fix ibi build issue
Use the correct 'place' for the hj_pm_lock variable

Signed-off-by: Ryan McClelland <rymcclel@gmail.com>
2025-03-26 07:08:17 +01:00
Johann Fischer
21f4a7db60 usb: device_next: always reset endpoints to defaults on SetInterface
Disable/enable endpoints even if the new alternate is the same as the
current one, forcing the endpoint to reset to defaults.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-03-26 07:08:06 +01:00
Johann Fischer
87caef4389 usb: device_next: keep loopback function transfers going
Do not report canceled transfers as an error and continue the transfers
regardless of the previous transfer status.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-03-26 07:08:06 +01:00
Dat Nguyen Duy
8c1b7acaf8 west.yml: Pick up the change to fix the ETH1 RX clock
Pick up the change from hal_nxp to fix the ETH1 RX clock on NXP S32Z

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2025-03-26 07:07:55 +01:00
Ryan McClelland
9628d97ad9 drivers: i3c: remove group addr definition
The i3c group address support is rather very incomplete here. Remove
references to it. This could all easily come back when/if group support
comes in.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2025-03-26 00:47:00 +01:00
Benjamin Cabé
ca8ad7aa4e ci: doc: bump sphinx from 8.1.3 to 8.2.3 in /doc in the doc-deps group
Bumps the doc-deps group in /doc with 1 update: [sphinx](https://github.com/sphinx-doc/sphinx).

Updates `sphinx` from 8.1.3 to 8.2.3
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v8.1.3...v8.2.3)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: doc-deps
...

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-03-26 00:46:47 +01:00
Anas Nashif
7f62d193fc ci: use gh managed tokens in workflows
Do not use custom tokens, rely on GH provided and managed tokens.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-03-26 00:46:32 +01:00
Anas Nashif
f812de81e6 ci: workflows: rename do_not_merge workflow
Add more functionality to the workflow, it is not only about not-merging
anymore.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-03-26 00:46:20 +01:00
Anas Nashif
7b1e610cc7 ci: move PR body check to a different workflow
Move PR body check to a workflow that monitors editing of PRs.
Avoids rerunnin compliance check and other heavy weights workflows on
just an edit of the PR body.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-03-26 00:46:20 +01:00
Anas Nashif
66fa04962f ci: twister: convert to pull_request
Convert twister workflow to use pull_request.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-03-26 00:46:20 +01:00
Camille BAUD
42d36867cf MAINTAINERS: Add VynDragon to relevants
Adding myself to zones I want to help support

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-03-26 00:46:08 +01:00
Anas Nashif
e98105d9db doc: releases: update LTS3 EOL date
Based on change of LTS life time and life cycle decided by the TSC.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-03-25 22:16:43 +01:00
Benjamin Cabé
9b60782ac8 ci: github: Add workflow to ensure all GH actions are pinned
This commit introduces a new workflow that checks for SHA-pinned GitHub
Actions on pull requests.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-03-25 22:16:32 +01:00
Jan Behrens
411ca58146 drivers: stepper: Added fault event
Adds a fault event to stepper_event for stall unrelated problems.

Signed-off-by: Jan Behrens <jan.behrens@navimatix.de>
2025-03-25 22:16:17 +01:00
Lars-Ove Karlsson
becfd02203 toolchain: Add IAR warning macros
Add warning macros for IAR tools analogue to CLANG and GCC.

Signed-off-by: Lars-Ove Karlsson <lars-ove.karlsson@iar.com>
2025-03-25 22:15:32 +01:00
Lyle Zhu
22ea55c7a0 Bluetooth: Classic: Move classic functions from conn.c to conn_br.c
Move functions `bt_sco_cleanup()`, `bt_conn_create_br()`,
`bt_hci_connect_br_cancel()`, and `bt_conn_get_dst_br()` from `conn.c`
to `conn_br.c`.

Change the function `bt_hci_connect_br_cancel()` to internal public
function.

Add a header file `conn_br_internal.h`. And declare the function
`bt_hci_connect_br_cancel()` in the header file.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-03-25 22:15:19 +01:00
Fabrice DJIATSA
0e1ffc7beb samples: code_relocation_nocopy: update macro to get flash size
The flash size is the second part (size) of the first reg value,

not the first part (address) of a nonexistent second reg value.

DT_REG_SIZE get a node's (only) register block size instead
DT_REG_ADDR_BY_IDX .

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-03-25 22:15:07 +01:00
Håvard Reierstad
c77587a76b Bluetooth: Host: Clarify use of identity in docs
Clarifies the use of identity in `bluetooth.h` by specifying whether the
documentation refers to the identity address, i. e. the actual address
`bt_addr_le_t`, or the identity handle, i. e. an index corresponding to
a specific identity address.

Signed-off-by: Håvard Reierstad <haavard.reierstad@nordicsemi.no>
2025-03-25 22:14:55 +01:00
Fabian Blatz
a924b133a3 boards: native_sim: Associate sdl touch instance with display
Adds the device handle for the display to the zephyr,input-touch-sdl
instance.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-03-25 22:14:40 +01:00
Fabian Blatz
9564780564 drivers: input: sdl_touch: Associate display with instance
Make the zephyr,input-sdl-touch driver be multi instance and add the
possibility to associate it with a display. The input events are only
emitted if the events occured on this display.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-03-25 22:14:40 +01:00