Commit graph

136,983 commits

Author SHA1 Message Date
Peter Mitsis
77ad7111e1 kernel: Rename move_thread_to_end_of_prio_q()
All instances of the internal routine move_thread_to_end_of_prio_q()
use the current thread. Renaming it to move_current_to_end_of_prio_q()
to reflect that.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-11-25 17:37:52 +00:00
Peter Mitsis
ffc6c8839b kernel: Rename z_move_thread_to_end_of_prio_q()
The routine z_move_thread_to_end_of_prio_q() has been renamed to
z_yield_testing_only() as it was only both only used for test code
and always operated on the current thread.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-11-25 17:37:52 +00:00
Beleswar Prasad Padhi
7e6215e140 scripts: west_commands: Log a hint for rate-limit failure during install
`west sdk install` may fail with a GitHub API rate-limit (HTTP 403)
error. This typically occurs when the command is run multiple times
after previous failures, which is common for new users setting up
the project. Currently, the thrown exception only links to a generic
GitHub rate-limit documentation page, which may be confusing to users.

Users can bypass the rate limit by authenticating with GitHub using a
Personal Access Token. The install script supports this via the
`--personal-access-token` argument. Therefore, detect rate-limit related
failures and print a helpful message suggesting the use of this
argument or netrc based authentication.

Signed-off-by: Beleswar Prasad Padhi <b-padhi@ti.com>
2025-11-25 17:37:19 +00:00
Qingsong Gou
25318f9623 tests: drivers: rtc: Add tests support on sf32lb52_devkit_lcd board
Add tests support on sf32lb52_devkit_lcd board

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2025-11-25 17:36:45 +00:00
Qingsong Gou
23e8e3bb3f drivers: rtc: sf32lb: add rtc alarm support
Add rtc alarm support for sf32lb platform

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2025-11-25 17:36:45 +00:00
Qingsong Gou
f730c7cdf9 dts: bindings: rtc: sf32lb: fix alarms-count missing
Add alarms-count to rtc node

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2025-11-25 17:36:45 +00:00
Daniel Leung
29c478361a tests: kernel/smp: rework signals in stress test
The k_poll signal and event code is reworked a bit such that
signal is raised and event is processed only when appropriate.
We want to avoid changing the internal of event and signal
objects at the same time we try to raise the signal (which
changes the internal states too).

In addition, print out some information on how many signals
raised and received to indicate we are actually switching
all related threads.

Fixes #98136

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-11-25 17:36:16 +00:00
Bjarki Arge Andreasen
034d3d3325 nordic: nrf54h: bicr: allow for custom bicr.json in application
Allow placing a custom bicr.json file in the application source
folder which will be used instead of the default one in the
boards folder. Also allows setting a custom name to use for the
file so multiple files can be placed in either boards or app dirs
and selected with Kconfig (prj.conf or <board>.conf)

The following will take precedence over the bicr.json file in the
board folder:

- <app>/bicr.json
- <app>/bicr_foo.json + CONFIG_SOC_NRF54H20_BICR_NAME="bicr_foo.json"

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-11-25 17:35:23 +00:00
Pieter De Gendt
5421bfc9c7 doc: releases: 4.4: Add entries for Ethernet MAC address configuration
Add an entry with the symbols introduced for Ethernet MAC address
configuration.
Add removed symbols to the migration guide.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-11-25 16:21:30 +00:00
Pieter De Gendt
cf0d1b877e drivers: ethernet: sam_gmac: Use ethernet MAC configuration
Rework the Atmel SAM GMAC driver to read a MAC address from the provided
NVMEM cell instead of using I2C commands directly.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-11-25 16:21:30 +00:00
Pieter De Gendt
9445d5dc32 tests: drivers: ethernet: Add MAC address configuration tests
Add a test suite for validating MAC address configuration variations.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-11-25 16:21:30 +00:00
Pieter De Gendt
604efc4e0f drivers: ethernet: eth_test: Add MAC configuration support
Add structs to the vnd,ethernet test driver for MAC address configuration
support.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-11-25 16:21:30 +00:00
Pieter De Gendt
509b2c4688 dts: bindings: ethernet: Add nvmem-consumer to ethernet-contoller
Turn ethernet controller devicetree nodes into NVMEM consumers. Allow
passing mac-address cells.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-11-25 16:21:30 +00:00
Pieter De Gendt
7bc538a8ee drivers: ethernet: Add Helper function to load MAC address
Given an ethernet MAC configuration struct, load a MAC address into a
provided array.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-11-25 16:21:30 +00:00
Pieter De Gendt
d513f8e3b5 include: zephyr: net: ethernet.h: Add MAC address configuration
Add MAC address configuration struct and macros.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-11-25 16:21:30 +00:00
Saravanan Sekar
d837c9531e net: lib: ocpp: cleanup outdated code from initial design
Cleanup outdated code from initial design.

Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
2025-11-25 16:07:44 +00:00
Peter van der Perk
5f95facee0 include: zephyr: arch: add GCC/Clang check for CFI support
Add a preprocessor check to ensure that DWARF Control Flow Integrity (CFI)
headers are only included when building with GCC or Clang toolchains, as
CFI support is currently limited to these compilers. This prevents
unsupported compilers from including architecture-specific CFI headers.

Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
2025-11-25 16:07:29 +00:00
Jukka Rissanen
5e4aa5e75e tests: net: all: Compile test network packet filter code
Add pkt_filter library to be compile tested by network all tests.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-25 16:06:56 +00:00
Jukka Rissanen
2d7d56964c net: shell: filter: Convert to use Zephyr APIs
The filter shell used POSIX symbols so replaced them by
Zephyr APIs.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-25 16:06:56 +00:00
Jukka Rissanen
f53e6041b7 tests: net: all: Compile test tftp library code
Add tftp library to be compile tested by network all tests.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-25 16:06:56 +00:00
Jukka Rissanen
7a84027de2 net: tftp: Replace POSIX symbols by Zephyr network API symbols
Replace "struct sockaddr" by "struct net_sockaddr" as that is
the remaining of the POSIX symbols found in the tftp library.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-25 16:06:56 +00:00
Jukka Rissanen
016b2f2237 tests: net: all: Compile test PTP library code
Add PTP library to be compile tested by network all tests.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-25 16:06:56 +00:00
Jukka Rissanen
e458197499 net: ptp: Convert to use Zephyr network APIs
Couple of POSIX API leftovers replaced by Zephyr network APIs.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-25 16:06:56 +00:00
Jukka Rissanen
afedd24451 drivers: ethernet: net: Replace POSIX symbols by Zephyr ones
The native_sim Ethernet driver was still using POSIX symbols,
so convert these to use Zephyr ones.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-25 16:06:56 +00:00
Jukka Rissanen
a01256a233 samples: net: Replace POSIX symbols by Zephyr ones
These samples were still using POSIX symbols without enabling
POSIX APIs, so convert these to use Zephyr ones.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-25 16:06:56 +00:00
Jukka Rissanen
34a1e5411e samples: net: Convert to use POSIX APIs
Convert coap_download and coap_upload to use POSIX APIs just to be
consistent with other samples in sockets directory.

Replace non-POSIX network symbols by POSIX ones in the network
samples. We do not want to have network samples that mix both
Zephyr network API with the relevant POSIX API like
zsock_socket() and socket() etc.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-25 16:06:56 +00:00
Chris Friedt
94e07d235b tests: posix: headers: remove testsuite
Remove the tests/posix/headers testsuite.

A large part of this testsuite was originally feeling-out what types,
functions, and other declarations were expected in POSIX headers when
CONFIG_POSIX_API was not selected.

Really, libraries and applications should generally not expect to be able
to use POSIX headers in particularly meaningful ways when POSIX APIs are
not enabled.

The portions of the testsuite that check for the existence of declarations
and symbols when POSIX APIs are configured also effectively duplicates
the implicit tests of simply compiling code and testsuites.

Also, given that CONFIG_POSIX_API is effectively deprecated, it does not
make a lot of sense to maintain the testsuite.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-11-25 16:06:46 +00:00
Mathieu Choplain
3db76f0373 samples: st: power_mgmt: wkup_pins: correct overlay for Nucleo-F103RB
The overlay indicated the pin was active-low with a pull-up resistor, but
the hardware forces a pull-DOWN which makes the pin active-HIGH instead.
Also add a comment indicating that the pin is not wired to a button and
a short (to Vdd!) must be applied via a jumper wire.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-25 16:06:35 +00:00
Jamie McCrae
ae2b4a44dc mgmt: mcumgr: grp: img_mgmt: Fix detecting where a slot resides
Fixes an issue introduced in commit
32615695ad which wrongly did not
check what the residing device was on before determining if a
slot was part of a partition area

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-11-25 16:06:23 +00:00
Sebastian Bøe
f324a1540f soc: nordic: ironside: Add counter service
Add counter service.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2025-11-25 16:06:00 +00:00
Haoran Jiang
d70234fa2a boards: sifli: sf32lb52_devkit_lcd: Add sys-clk-src
Add sys-clk-src.

Signed-off-by: Haoran Jiang <halfsweet@halfsweet.cn>
2025-11-25 16:05:46 +00:00
Haoran Jiang
8321842d72 drivers: clock_control: sf32lb_rcc: Add RCC configuration driver
Add RCC configuration driver.

Signed-off-by: Haoran Jiang <halfsweet@halfsweet.cn>
2025-11-25 16:05:46 +00:00
Haoran Jiang
5eb9d202d6 dts: arm: sifli: sf32lb52x: Improve the RCC definition for sf32lb
Add the RCC configuration
binding on the sf32lb52 platform.
- sys-clk-src
- peri-clk-src
- mpi1/2-clk-src
- A
- usb-div

Signed-off-by: Haoran Jiang <halfsweet@halfsweet.cn>
2025-11-25 16:05:46 +00:00
Gang He
562afb6279 driver: bluetooth: hci: sifli: Add SF32LB Bluetooth HCI driver
Add Bluetooth driver for SF32LB chipsets.

Signed-off-by: Gang He <ganghe@sifli.com>
2025-11-25 16:05:02 +00:00
Gang He
0b28125aae module: hal_sifli: Add IPC zephyr porting header file
Add SF32LB IPC zephyr porting header file.

Signed-off-by: Gang He <ganghe@sifli.com>
2025-11-25 16:05:02 +00:00
Gang He
8dbfa3daf3 module: hal_sifli: Overwrite SiFli HAL delay function with k_sleep
SiFli HAL is using HAL_Delay_us to delay for certain microseconds.
This is a weak function. I overwrites this function with Zephyr k_sleep.

Signed-off-by: Gang He <ganghe@sifli.com>
2025-11-25 16:05:02 +00:00
Gang He
d3e2e3d077 module: hal_sifli: Add CMakefile script for bluetooth HCI driver
Add CMakefile script needed for Bluetooth HCI driver.

Signed-off-by: Gang He <ganghe@sifli.com>
2025-11-25 16:05:02 +00:00
Gang He
2565b99fcf board: sifli: sf32lb52_devkit_lcd: Add mailbox in board device tree
Add mailbox in board devicetree, used in Bluetooth HCI driver.

Signed-off-by: Gang He <ganghe@sifli.com>
2025-11-25 16:05:02 +00:00
Gang He
6305063de2 driver: bluetooth: hci: sifli: Add configuration for SF32LB HCI driver
Add configuration for SiFli SF32LB chipset Bluetooth HCI driver.

Signed-off-by: Gang He <ganghe@sifli.com>
2025-11-25 16:05:02 +00:00
Gang He
6437340bf3 soc: sifli: sf32: Add configuration for Bluetooth HCI driver support
Add configuration support for Bluetooth HCI driver.

Signed-off-by: Gang He <ganghe@sifli.com>
2025-11-25 16:05:02 +00:00
Gang He
289d999c38 module: sifli: kconfig: Add Bluetooth HCI driver configuration
Add SiFli Bluetooth HCI driver configurations.

Signed-off-by: Gang He <ganghe@sifli.com>
2025-11-25 16:05:02 +00:00
Gang He
4451cfc89d dts: arm: sifli: add definition for memory non-cachable
Memory used by Bluetooth LCPU should be no-cachable.

Signed-off-by: Gang He <ganghe@sifli.com>
2025-11-25 16:05:02 +00:00
Gang He
062e223c49 dts: arm: sifli: sf32lb52x: define mailbox
Mbox is hardware interface between Application HCPU and Bluetooth LCPU.

Signed-off-by: Gang He <ganghe@sifli.com>
2025-11-25 16:05:02 +00:00
Gang He
44b4ae6d76 west.yml: hal_sifli: Update to latest revision
- Add Bluetooth HCI driver support for SF32LB chipsets

Signed-off-by: Gang He <ganghe@sifli.com>
2025-11-25 16:05:02 +00:00
Jisheng Zhang
55856d130a boards: st: stm32h750b-dk: Fix sdram available size
According to UM2488 section 6.12[1], the available SDRAM size is only 8MB
by hardware design, though 128Bit SDRAM is connected.

Link: https://www.st.com/resource/en/user_manual/um2488-discovery-kits-with-stm32h745xi-and-stm32h750xb-mcus-stmicroelectronics.pdf [1]
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
2025-11-25 13:07:44 +01:00
Jisheng Zhang
c6cb9b6543 boards: st: stm32h745i_disco: m7: Fix sdram available size
According to UM2488 section 6.12[1], the available SDRAM size is only 8MB
by hardware design, though 128Bit SDRAM is connected.

Link: https://www.st.com/resource/en/user_manual/um2488-discovery-kits-with-stm32h745xi-and-stm32h750xb-mcus-stmicroelectronics.pdf [1]
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
2025-11-25 13:07:44 +01:00
Robert Lubos
741ce37f28 net: config: sntp: Asynchronous resynchronization
Make SNTP resynchronization asynchronous, so that it doesn't block the
system work queue while waiting for response.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-11-25 13:07:13 +01:00
Robert Lubos
550e0b866c net: config: sntp: Add helper symbols for resync timeouts
For more concise code.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-11-25 13:07:13 +01:00
Robert Lubos
a1e4047e38 net: config: sntp: Add helper function to set clocks
Move the code responsible for setting clocks into a helper function,
as it'll be reused with asynchronous resynchronization.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-11-25 13:07:13 +01:00
Thorsten Klein
d7829271bb doc: develop: west: add documentation for west blobs caches
Documentation for west blobs `--cache-dirs` and `--auto-cache`,
respectively config options `blobs.cache-dirs` and `blobs.auto-cache`.

Signed-off-by: Thorsten Klein <Thorsten.Klein@bshg.com>
2025-11-25 13:06:06 +01:00