Commit graph

113274 commits

Author SHA1 Message Date
Julien Racki
c888760663 drivers: clock: Add stm32mp13 clock
Add STM32MP13 clock driver.
Supported clocks are HSE, HSI, PLL1 and peripheral clock.

Signed-off-by: Julien Racki <julien.racki@st.com>
Co-authored-by: Arif Balik <arifbalik@outlook.com>
2025-04-04 09:35:03 +02:00
Julien Racki
d508ec42e2 dts: bindings: clock: Add stm32mp13 rcc clocks
Add STM32MP13 RCC clock bindings

Signed-off-by: Julien Racki <julien.racki@st.com>
2025-04-04 09:35:03 +02:00
Julien Racki
9e392c51cf include: dt-bindings: clock: Add stm32mp13 clock
Add STM32MP13 dt bindings for the clock definition

Signed-off-by: Julien Racki <julien.racki@st.com>
2025-04-04 09:35:03 +02:00
Julien Racki
5ee120fade include: dt-bindings: reset: Add stm32mp13 reset
Add STM32MP13 dt bindings for reset

Signed-off-by: Julien Racki <julien.racki@st.com>
2025-04-04 09:35:03 +02:00
Julien Racki
c099e27c06 soc: st: stm32: Provide basic support for STM32MP13 series
Enable basic support to STM32MP13, in single core configuration (A7)
with I and D cache enabled.

Signed-off-by: Julien Racki <julien.racki@st.com>
2025-04-04 09:35:03 +02:00
Julien Racki
87719828ac arch: arm: Adding fault description for the cortex A7
Add support for processing the Fault Status Registers and recoverable
data abort for the cortex A7.

Based on Cortex-A7 MPCore Technical Reference Manual (ARM DDI 0406).
(see https://developer.arm.com/documentation/ddi0406)

Signed-off-by: Julien Racki <julien.racki@st.com>
2025-04-04 09:35:03 +02:00
Julien Racki
695e6d73d4 arch: arm: Use the armv8_timer.h for the Cortex A7
We can't use the timer.h as the arm timer
is within the soc and does not have an address.

Instead we use the armv8_timer.h, renaming it to armv7_v8_timer.h
for the Cortex-A7 as the cp15 access are compatible.

Signed-off-by: Julien Racki <julien.racki@st.com>
2025-04-04 09:35:03 +02:00
Julien Racki
6d1cb00627 arch: arm: Add Cortex-A7 support
Pass the correct -mfpu and -mcpu flags to the compiler when building
for the Cortex-A7.

Signed-off-by: Julien Racki <julien.racki@st.com>
2025-04-04 09:35:03 +02:00
Julien Racki
a65c495362 west.yml: Update west.yml for stm32mp13 hal
Update west.yml for STM32MP13 HAL

Signed-off-by: Julien Racki <julien.racki@st.com>
2025-04-04 09:35:03 +02:00
Stefan Golinschi
a40a4dc300 boards: lilygo: tdongle_s3: initial support
This adds support for Lilygo T Dongle S3 Board.

Signed-off-by: Stefan Golinschi <stefan.golinschi@gmail.com>
2025-04-04 09:34:52 +02:00
Victor Brzeski
a1edfb41fd drivers: gpio: fix pcal6534 by updating register map
The PCAL6534 driver simply doesn't work. This is
due to an incorrect mapping of commands to pcal6534
registers.

Signed-off-by: Victor Brzeski <vbrzeski@meta.com>
2025-04-04 09:34:41 +02:00
Wenxi Xu
7dc2c15fd3 drivers: can: stm32_bxcan: fix filter config
Setting the filter registers in master CAN requires initializing master
CAN first. CONFIG_CAN_MAX_EXT_ID_FILTER banks are reserved for IDE
frames. Previously we set FS1R(CAN filter scale register) at init time,
but it is possible that the master CAN is not initialized at that time.
That is when the filter banks are not set correctly, causing that we get
wrong filter_id from slave CAN. This patch fixes the issue by setting
FS1R at the time of initializing master CAN.

Tested on:
STM32F407IGH6 with 2 std_id and 2 ext_id on each of CAN1 and CAN2.

Signed-off-by: Wenxi Xu <xuwenxi0517@gmail.com>
2025-04-04 09:34:30 +02:00
Krzysztof Chruściński
e7d590568c kernel: timeout: Reduce number of sys_clock_elapsed calls
sys_clock_elapsed requires access to system clock register interface
which is often slow. When new relative timeout is added sys_clock_elapsed()
is called once to calculate delta ticks and then if that triggers setting
new timeout sys_clock_elapsed() is called again. This call is redundant
since everything happens under spin lock so it is better to reuse value
returned by the first call.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-04-04 07:43:01 +02:00
Peter Mitsis
83f877ae4b tests: intel_adsp/test: Disable test logging defaults
Disables test logging defaults for the intel_adsp/ssp as it
has been found that when they are enabled they interfere
with the proper functioning of the test.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-04-04 07:42:44 +02:00
Peter Mitsis
1df4f6b6b5 tests: intel_adsp/ssp: Improve error checking
Improves error reporting in the intel_adsp/ssp test so that
errors are caught and flagged by the test infrastructure.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-04-04 07:42:44 +02:00
Jun Lin
5e54a64060 tests: kernel/sleep: exclude npcx platforms from the test
According the specification, in extreme cases, the deviation of the APB
clock and LFCLK clock can reach up to +/-1% (+/- 10ms).
Therefore, exclude npcx platforms from the test because it required 1ms
accuracy.

fixes: #66185

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
2025-04-04 07:42:30 +02:00
Anas Nashif
a5413499f1 kernel: thread_monitor: reafactor and remove duplicate code
Refactor code and remove duplication, same code almost being repeated 4
times.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-04-04 07:42:20 +02:00
Anas Nashif
7c68855053 debug: thread_analyzer: move thread analyzer to own folder
Move to own directory to prepare for new related code.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-04-04 07:42:20 +02:00
Andrew Featherstone
f289e47ca5 docs: raspberrypi: Avoid abbreviating to RPi
Prefer to use more descriptive terms.

Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
2025-04-03 15:27:50 -07:00
Andrew Featherstone
ed168d6e7b docs: raspberrypi: Correct capitalization of Pico
In the context of Raspberry Pi's product line, this is Pico, not PICO.

Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
2025-04-03 15:27:50 -07:00
Andrew Featherstone
a2aa0a3e2b docs: raspberrrypi: Correct names of products
Replace occurrences of "RaspberryPi" with "Raspberry Pi" in
documentation, comment blocks etc. Correct the name of "PicoW" to
"Pico W", matching Raspberry Pi's documentation at
https://www.raspberrypi.com/documentation/microcontrollers/pico-series.html .

Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
2025-04-03 15:27:50 -07:00
David Cerrone
bbaaac999f drivers: sensor: current_amp: add calibration option
Allow the option to enable or disable calibration of the ADC.

Signed-off-by: David Cerrone <davidcerrone@gmail.com>
2025-04-03 15:26:36 -07:00
Jordan R Abrahams-Whitehead
d3584b4a46 misc: Restrict linkage for main to freestanding
`extern "C"` is not a valid language linkage for declaring
`int main(...)`, as per the ISO C++ Standard Specification.
This fixes the violations of -Wmain, and brings Zephyr
closer to valid C++.

See the C++ standard wording here:
https://eel.is/c++draft/basic.start.main#3.sentence-5

See also the clang warning -Wmain:
https://clang.llvm.org/docs/DiagnosticsReference.html#wmain

However, for freestanding code (i.e. with -ffreestanding),
main has no special meaning, and we need to prevent name
mangling. So allow this forward linkage when not hosted.

This only applies to C++ as these linkage declarations only
exist inside __cplusplus guards.

Signed-off-by: Jordan R Abrahams-Whitehead <ajordanr@google.com>
2025-04-03 15:26:23 -07:00
Emilio Benavente
26a2478c24 tests: drivers: i2s: Added I2S Testing for RW612
Added Internal pin connection for
I2S Loopback testing when I2S is enabled.
Added I2S testing support for RW612.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2025-04-03 21:06:14 +02:00
Emilio Benavente
9a893c6bd9 boards: nxp: Added I2S Support for RW612
Added I2S support for RW612.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2025-04-03 21:06:14 +02:00
Tom Hughes
11e3aa8952 tests: mgmt: mcumgr: Disable clang warning
When building with clang it reports:

tests/subsys/mgmt/mcumgr/settings_mgmt/src/main.c:69:22: error: variable
'test_response_read_data_start' is not needed and will not be emitted
[-Werror,-Wunneeded-internal-declaration]
static const uint8_t test_response_read_data_start[5] = {
                     ^
tests/subsys/mgmt/mcumgr/settings_mgmt/src/main.c:73:22: error: variable
'test_response_read_data_end' is not needed and will not be emitted
[-Werror,-Wunneeded-internal-declaration]
static const uint8_t test_response_read_data_end[1] = {
                     ^

The values of test_response_read_data_start and
test_response_read_data_end are not actually used anywhere in the tests.

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-04-03 21:06:02 +02:00
Hao Zhang
e31d3c3172 boards: common: programatically set MAX32_TARGET_CFG
Configuration files such as max32655.cfg is used for openocd purpose
and is stored in variable ${MAX32_TARGET_CFG}. It was set manually
based on whether CONFIG_SOC_MAX32655_M4 is set, now, it gets set
automatically utilizing ${CONFIG_SOC} variable.

Signed-off-by: Hao Zhang <Hao.Zhang@analog.com>
2025-04-03 21:05:49 +02:00
Benjamin Cabé
de13103f0b boards: doc: adopt zephyr:board-supported-runners directive
Add .. zephyr:board-supported-runners:: to the Programming and Debugging
section of the documentation for each board that has one such section,
as this is the most natural place to put it.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-04-03 21:05:39 +02:00
Benjamin Cabé
f06c26a6d0 doc: extensions: boards: add zephyr:board-supported-runners directive
Use runners.yaml from build metadata to gather info regarding board
supported runners, store the info in the board catalog, and allow
to display it as a table in a board's doc page using the
.. zephyr:board-supported-runner:: directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-04-03 21:05:39 +02:00
Benjamin Cabé
76bf0126ff doc: boards: antmicro: adopt zephyr:board-supported-hw directive
Replace manually authored hardware features table with the new Zephyr
board supported hardware directive which automatically generates an
up-to-date table based on the boards' Devicetree.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-04-03 17:48:47 +02:00
Benjamin Cabé
0cf7b7b265 doc: boards: antmicro: fix heading
Heading was improperly formatting causing glitches in table of contents

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-04-03 17:48:47 +02:00
Martin Hoff
13bdc3cebd drivers: serial: silabs: add __maybe_unused to eusart dma callback
The callback function for the DMA is not used in the case where no DMA
properties are given in the esuart node in the device tree. It causes
a warning in the CI build.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-04-03 17:48:36 +02:00
Ravi Dondaputi
429bf84542 wifi: nrf_wifi: Adjust default heap size for driver init failures
Reconfigure DATA heap sizes to fix the driver init failures.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2025-04-03 17:48:28 +02:00
Luis Ubieda
2177b84b7b sensor: dts: Add sensor-device.yaml to all instances
Some were missing them, as pointed out on #86747.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2025-04-03 17:48:19 +02:00
Riadh Ghaddab
e8e7290aba tests: zms: decrease verbosity
disable by default the LOG_DBG messages

Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com>
2025-04-03 17:48:09 +02:00
Mark Wang
891e457873 bluetooth: classic: Fix remote name resolving with multiple devices
The error occur when discoverying br devices and need to send request_name
for many found devices.
In system work queue task, bt_hci_inquiry_complete->
report_discovery_results is called, then request_name is called for all
the found devices. The controller gives HCI_Remote_Name_Request_Complete
event for every name request result and one buf is allocated from
hci_rx_pool to save HCI_Remote_Name_Request_Complete. When system work
queue task is blocked to call request_name for every device, many
HCI_Remote_Name_Request_Complete are received for the already sent
request_name, it uses up all the buf of hci_rx_pool, then the bt_rx_thread
task is blocked to get buf from hci_rx_pool when next
HCI_Remote_Name_Request_Complete is received, meanwhile the next
request_name send hci cmd and wait the result, but the hci status/complete
event can't be received because the bt_rx_thread is blocked and
bt_uart_isr is kept in the state to receive last
HCI_Remote_Name_Request_Complete, then bt_dev.ncmd_sem is not released,
then the next request_name send hci cmd again, but the bt_dev.ncmd_sem is
invalid, then bt_hci_cmd_send_sync fail and assert.

resolve it by requesting name one by one.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-04-03 17:48:04 +02:00
Benjamin Cabé
48de4ab111 Revert "dts: bindings: spi: Fix "nordic,nrf-spis" binding"
This reverts commit 7072460c74.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-04-03 17:47:51 +02:00
James Roy
c47926e911 dts: dma: Simplify the description of the binding
Remove redundant descriptions in DMA bindings, such
as "... node".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-04-03 13:17:16 +02:00
Torsten Rasmussen
a713f79031 cmake: fix Zephyr module ext order
MODULE_EXT_ROOT allows Zephyr modules to provide glue code for Zephyr
modules using `cmake-ext: True` and/or `kconfig-ext:True`.

A module ext root provides a `modules.cmake` file which defines
variables like: `set(ZEPHYR_FOO_CMAKE_DIR  <glue-code-path>/foo)`

It is intended that a downstream module can replace Zephyr's default
glue code, which again can be replaced further downstream.

Setting values in first modules.cmake (Zephyr's) are replaced by later
processed modules.cmake (downstream) when the setting name is identical.

Therefore the module ext root list should not be reversed, and Zephyr
itself should be placed as first entry in the list.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2025-04-03 13:16:56 +02:00
James Roy
c0586e66fa dts: sram: Simplify the description of the binding
Remove redundant descriptions in SRAM bindings, such
as "... description".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-04-03 13:16:44 +02:00
James Roy
fa8e8b97bd dts: smbus: Simplify the description of the binding
Remove redundant descriptions in smbus bindings, such
as "... node".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-04-03 13:16:44 +02:00
James Roy
18ef7be6fb dts: rng: Simplify the description of the binding
Remove redundant descriptions in RNG bindings, such
as "... node".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-04-03 13:16:44 +02:00
James Roy
56212491cf dts: sdhc: Simplify the description of the binding
Remove redundant descriptions in SDHC bindings, such
as "... node".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-04-03 13:16:44 +02:00
James Roy
a148784fef dts: shi: Simplify the description of the binding
Remove redundant descriptions in shi bindings, such
as "... node".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-04-03 13:16:44 +02:00
James Roy
60c0682502 dts: riscv: Simplify the description of the binding
Remove redundant descriptions in riscv bindings, such
as "... node".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-04-03 13:16:44 +02:00
James Roy
63dcf4e299 dts: sd: Simplify the description of the binding
Remove redundant descriptions in SD bindings, such
as "... node".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-04-03 13:16:44 +02:00
James Roy
0b239bc95a dts: rtc: Simplify the description of the binding
Remove redundant descriptions in RTC bindings, such
as "... node", "... common bindings" and "This binding provides".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-04-03 13:16:44 +02:00
James Roy
74df208bf2 dts: usb: Simplify the description of the binding
Remove redundant descriptions in USB bindings, such
as "... node".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-04-03 13:16:44 +02:00
James Roy
44d3909d74 dts: watchdog: Simplify the description of the binding
Remove redundant descriptions in watchdog bindings, such
as "... node" and " ... driver binding".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-04-03 13:16:44 +02:00
James Roy
52dbcaadbe dts: timer: Simplify the description of the binding
Remove redundant descriptions in timer bindings, such
as "... node".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-04-03 13:16:44 +02:00