Commit graph

126,787 commits

Author SHA1 Message Date
Sean Kyer
3b60bb91e9 native: cpu_freq: Add CPU freq support to native_sim
Define P-states for native_sim and add mock cpu_freq
driver.

Signed-off-by: Sean Kyer <Sean.Kyer@analog.com>
2025-09-05 07:43:56 +02:00
Sean Kyer
e4fb01c66b cpu_freq: Add CPU Frequency Scaling subsystem
Add a CPU frequency scaling subsystem, allowing a policy
algorithm to control the frequency of a given SoC/MCU
automatically at runtime.

Implement a basic, "on-demand" policy algorithm which
iterates through the P-states supported by the SoC and
selects the first P-state where it's trigger threshold is
less than the CPU load.

The CPU frequency scaling subsystem does not currently
support SMP. The CPU load measurement can be made to support
SMP since statistics are measured from the scheduler.

Co-authored-by: Eric Hay <Eric.Hay@analog.com>
Signed-off-by: Sean Kyer <Sean.Kyer@analog.com>
2025-09-05 07:43:56 +02:00
Eric Hay
73ce03246b cpu_load: Add CPU Load subsystem
Implement CPU load measurement subsystem. The statistics
used to calcualte the load are taken from the scheduler.
Specifically, the number of cycles used by the idle thread.

Co-authored-by: Sean Kyer <Sean.Kyer@analog.com>
Signed-off-by: Eric Hay <Eric.Hay@analog.com>
2025-09-05 07:43:56 +02:00
Jiafei Pan
c7578b00dd samples: dsa: add imx943_evk A55 CPU Core support
Added overlay and conf file, updated board document.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Jiafei Pan
47a947be1c boards: imx943_evk: add dsa switch dts nodes for a55
Added networking switch dts nodes for the board imx943_evk A55 Core.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Jiafei Pan
640711929b dts: arm64: imx943: add dsa switch dts nodes
Added dts nodes for DSA networking switch.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Jiafei Pan
c10f64c97f drivers: dsa: netc: add mmio memory mapping support
Added memory mapping for the driver to support A-Core.
Add update related device tree accordingly.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Jiafei Pan
0e4b971b98 samples: net: zperf: add imx943 a55 support
Configure heap memory size to be enough for GIC ITS.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Jiafei Pan
25f4eb9ac0 boards: imx943_evk: a55: add NETC support
Enabled NETC support on i.MX 943 A55 platform.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Jiafei Pan
f62cadeeca dts: arm64: imx943_a55: add netc device nodes
Added NETC related device nodes in SoC dts.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Jiafei Pan
13268e37b6 soc: imx943: a55: add netc power and clock init in soc.c
Power up NETCMIX and configure netc clock in soc_init().

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Jiafei Pan
006f5a6e7a dts: arm64: imx943_a55: add SCMI power device node
Added SCMI power dts node.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Jiafei Pan
1b6e15f4ee drivers: netc_blk: add imx943 support
Add NETCMIX block initialization for i.MX 943.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Jiafei Pan
41ef564902 tests: arm64_gicv3_its: add imx943_evk support
Add imx943_evk support, as hardware limication, it only has 832 LPIs.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Jiafei Pan
cfd01bef15 boards: imx943_evk: refine GIC and SCMI objects init priority
GIC ITS depends on kernel heap, so move GIC initialize to be behind of
heap which initialization priority is CONFIG_KERNEL_INIT_PRIORITY_OBJECTS
which is 30 by default.

MU mailbox and SCMI objects depend on GIC, so set their init priority
to be same with GIC, the initialization sequence decided by the dts
dependency although they use the same init priority.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Jiafei Pan
296c0e2405 boards: imx943_evk: a55: enlarge memory size
Enlarge the memory size to 10M bytes as it is not enough if run some
networking application.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Jiafei Pan
22fe1ec2e3 soc: imx943_a55: enable gic v3 its and LPI interrupts
Added dts node for GIC v3 ITS, enabled LPI interrupts, and enabled
GIC ITS driver on the SoC.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Jiafei Pan
b5d43e8314 west.yml: update revision of hal_nxp
To include the update for netc for imx943 a-core.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-09-05 07:43:28 +02:00
Niu Zhihong
8f85d8e62a dt-bindings: input: fix swapped comments for gear buttons
The comments for INPUT_BTN_GEAR_DOWN and INPUT_BTN_GEAR_UP were
incorrectly swapped. This commit fixes the documentation to match
the actual button definitions.

Signed-off-by: Niu Zhihong <zhihong@nzhnb.com>
2025-09-04 20:08:45 -04:00
Diego Herranz
7489a38e3b fb: cfb_shell: fix draw circle help text
HELP_DRAW_CIRCLE existed, but HELP_DRAW_RECT was used instead.

Signed-off-by: Diego Herranz <diegoherranz@diegoherranz.com>
2025-09-04 20:08:27 -04:00
Benjamin Cabé
e9bcda38ca drivers: sensor: a01nyub: use logical AND in condition
Fix typo where a bitwise AND was used instead of a logical AND.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:04:51 +02:00
Benjamin Cabé
6132640d08 doc: samples: shields: fix doc build warnings
Ensure all RST files only ever belong to one single toctree by means of
cleaning up existing in globs used in nested folders.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:04:42 +02:00
Benjamin Cabé
aaa6ab545c doc: samples: canbus: cleanup sample category
Main sample category page for CANbus contained "old" toctree alongside
zephyr:code-sample-category, causing doc build warning due to documents
belonging to multiple toctrees.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:04:42 +02:00
Benjamin Cabé
c02a33efcc doc: samples: stm32: fix doc warnings
Ensure all RST files only ever belong to one single toctree by means of
cleaning up existing in globs used in nested folders.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:04:42 +02:00
Benjamin Cabé
1185829f3b drivers: sensor: bmi270: fix off-by-one error
When the loop completes without breaking, tries would be
BMI270_CONFIG_FILE_RETRIES + 1 so the error check was never hit.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:04:30 +02:00
Diego Herranz
f1e72c4a75 drivers: flash: shell: fix KiB symbol spelling
It's Bytes rather than bits, and it's also Kibi (1024).

Signed-off-by: Diego Herranz <diegoherranz@diegoherranz.com>
2025-09-04 21:04:22 +02:00
Kai Vehmanen
fa02e373be drivers: dai: dmic: do not call k_sleep() in PM callbacks
The call to k_sleep() is not safe as dai_dmic_probe() is called
from PM dmic_pm_action() and k_can_yield() may be false.

Problem was caught on Intel WCL ADSP platform with SOF as application
and a Zephyr build with asserts enabled.

Fix the issue by using k_busy_wait() instead.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2025-09-04 21:04:15 +02:00
Benjamin Cabé
af2eaf4310 dts: gpio: add mention of pin number macros in nexus bindings docs
For all GPIO headers/connectors, add a short mention of the header file
that can be used to access pin numbers macros.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:04:04 +02:00
Benjamin Cabé
fab062f3be include: devicetree: gpio: add doxygen for ST Morpho header
Add doxygen documentation for this header.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:04:04 +02:00
Benjamin Cabé
ed0067e6ae include: devicetree: gpio: add doxygen for Arduino MKR header
Add doxygen documentation for this header.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:04:04 +02:00
Benjamin Cabé
459252356f include: devicetree: gpio: add doxygen for Raspberry Pi CSI connector
Add doxygen documentation for this header.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:04:04 +02:00
Benjamin Cabé
b99aeec528 include: devicetree: gpio: add doxygen for Arduino Nano header
Add doxygen documentation for this header.
Also fix typo for ARDUINO_NANO_HEADER_A5.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:04:04 +02:00
Benjamin Cabé
6315d117e3 include: devicetree: gpio: add doxygen for Arducam DVP connector
Add doxygen documentation for this header.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:04:04 +02:00
Benjamin Cabé
198147a49b scripts: kconfig: use tabulate for printing hardenconfig results
Make use of `tabulate` to pretty print the results of the hardening tool
instead of custom formatting.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:03:57 +02:00
Benjamin Cabé
5e032d7f84 scripts: kconfig: apply ruff fixes to hardenconfig.py
Wrap long lines so that there is no need to exclude this file from ruff
anymore.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 21:03:57 +02:00
Philipp Steiner
df2af8d553 drivers: fuel_gauge: max17048: fix minor issues
Fixes minor issues of the max17048 driver, which came up during
another PR.
This was tested with the CI and the Adafruit ESP32-S3 Reverse TFT Feather.

Signed-off-by: Philipp Steiner <philipp.steiner1987@gmail.com>
2025-09-04 21:03:48 +02:00
Philipp Steiner
7632193e42 drivers: fuel_gauge: apply clang-format rules for the drivers
Format existing drivers according to clang-format rules.
Not all drivers were formatted, according to the clang-format rules,
this commit resolves this.

Signed-off-by: Philipp Steiner <philipp.steiner1987@gmail.com>
2025-09-04 21:03:48 +02:00
Philipp Steiner
175dc28b1f drivers: fuel_gauge: Refactor public driver interfaces
Refactor drivers so all have the same clean public interface.
With this change, all drivers have the same coding style.
This change does not change how the driver works and was tested with
the "fuel-gauge-build all test"

Signed-off-by: Philipp Steiner <philipp.steiner1987@gmail.com>
2025-09-04 21:03:48 +02:00
Philipp Steiner
c70ae26bbb tests: drivers: build_all: fuel_gauge: Add devices to build test
Add build tests for the following missing devices:
- x-powers,axp2101-fuel-gauge
- onnn,lc709203f
- silergy,sy24561

This is important, because it guarantees that all drivers will be
build the driver during CI.

Signed-off-by: Philipp Steiner <philipp.steiner1987@gmail.com>
2025-09-04 21:03:48 +02:00
Alessandro Manganaro
a3a27d0ab1 dts: arm: st: wba: standby exit latency update
Updating standby exit latency time according worst case value
from stm32wba5 and stm32wba6 datasheets.

Signed-off-by: Alessandro Manganaro <alessandro.manganaro@st.com>
2025-09-04 21:03:19 +02:00
Alessandro Manganaro
299a189508 soc: st: stm32: stm32wbax pm enhancements
soc power management rework to support power states
removing dependency on ST system clock manager (SCM).

Signed-off-by: Alessandro Manganaro <alessandro.manganaro@st.com>
2025-09-04 21:03:19 +02:00
Wajdi ELMuhtadi
f9081725cf drivers: sensor: wsen_isds_2536030320001: add sensor driver
Add wsen_isds_2536030320001 driver with
the corrected name and compatibility with
the hal update as well as added new features.

Signed-off-by: Wajdi ELMuhtadi <wajdi.elmuhtadi@we-online.com>
2025-09-04 21:03:10 +02:00
Loic Domaigne
d6ce2f4f41 tests: kernel: device: Add tests for deferred init failure
These tests verify the expected returned value and device state for
error cases (-EALREADY, -errno) conform to the device_init()
documentation.

Signed-off-by: Loic Domaigne <tech@domaigne.com>
2025-09-04 21:03:01 +02:00
Loic Domaigne
6b61ec9d9b kernel: fix error propagation for device deferred initialization
This fix makes sure that do_device_init() returns a negative value if
the device's initialization failed. Previously, it mistakely returned
+errno instead of -errno.

This oversight happened during the refactoring of z_sys_init_run_level()
to support deferred initialization, from which most of do_device_init()
code derives. The rc value computed and stored in dev->state->init_res
is the POSITIVE value of the resulting errno. Returning rc therefore
breaks the convention of a negative value to signal failure.

Signed-off-by: Loic Domaigne <tech@domaigne.com>
2025-09-04 21:03:01 +02:00
Declan Snyder
11431a801d dts: nxp_rt118x: Use DT spec names for nodes
Use recommended node names from the DT spec on RT118x

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-09-04 16:48:42 +02:00
Victor Brzeski
a52966b3bc uac2: rate limit ops->get_recv_buf error log
Rate limit the get_recv_buf() callback from the application to
reduce system trash when buffer pressure gets high.

Signed-off-by: Victor Brzeski <vbrzeski@gmail.com>
2025-09-04 16:46:17 +02:00
Szymon Janc
e0ce77dd28 tests: Bluetooth: Tester: Disallow changing adv type when enabled
This is used for properly tracking if legacy or extended advertising
API is used and should not be changed if advertisign is enabled.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2025-09-04 16:45:56 +02:00
Szymon Janc
7ef7dee60f tests: Bluetooth: Tester: Fix leaking advertising instance
If extended advertising was used GAP module was always creating
new instance on advertising start (while failing to stop it at
the same time).

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2025-09-04 16:45:56 +02:00
Lukasz Fundakowski
4f637258ef twister: refactor twister_main to simplify the system tests
Refactored twister_main.py module to simplify the code and system tests.
Removed the need to patch `sys.argv` in blackbox tests.

Signed-off-by: Lukasz Fundakowski <lukasz.fundakowski@nordicsemi.no>
2025-09-04 16:45:42 +02:00
Benjamin Cabé
654d794dd0 include: devicetree: gpio: add doxygen group for GPIO pin headers macros
Add a Doxygen group for the GPIO pin headers macros and initially
document Arduino Uno (R3) header pin constants.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-04 16:45:07 +02:00