Commit graph

116038 commits

Author SHA1 Message Date
Daniel Leung
d31ee53b60 xtensa: allow flushing auto-refill DTLBs on page table swap
This adds a new kconfig and corresponding code to allow flushing
auto-refill data TLBs when page tables are swapped (e.g. during
context switching). This is mainly used to avoid multi-hit TLB
exception raised by certain memory access pattern. If memory is
only marked for user mode access but not inside a memory domain,
accessing that page in kernel mode would result in a TLB being
filled with kernel ASID. When going back into user mode, access
to the memory would result in another TLB being filled with
the user mode ASID. Now there are two entries on the same memory
page, and the multi-hit TLB exception will be raised if that
memory page is accessed. This type of access is better served
using memory partition and memory domain to share data. However,
this type of access is not prohibited but highly discouraged.
Wrapping the code in kconfig is simply because of the execution
penalty as there will be unnecessary TLB refilling being done.
So only enable this if necessary.

Fixes #88772

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-05-28 20:01:58 +02:00
Chaitanya Tata
e92677bd3c doc: wifi: Improve runtime cert docs
* Remove the obsolete path reference, command is enough
* Add a note for the volatility of the certificates

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-05-28 17:50:46 +02:00
Benjamin Cabé
f38946428e doc: _extensions: board: show/hide boards and shield in catalog
Adds the ability to show/hide boards and shields in the board catalog.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-05-28 17:50:13 +02:00
Fabio Baltieri
77763a2800 led: fix up the API requirement comment
With the current implementation one can implement either on/off or
set_brigthness, change the comment to reflect that.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-05-28 17:49:59 +02:00
Benjamin Cabé
fdf713ab51 drivers: sensor: icp101xx: update channel check condition
Removed a logically dead else by doing sensor channel check
in a way that's more aligned with how other drivers do it.

Fixes: CID 505949
Fixes: zephyrproject-rtos/zephyr#90558
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-05-28 17:49:50 +02:00
Bjarki Arge Andreasen
b668e9de40 drivers: clock_control: nrf: adapt NRF_HFINT_CALIBRATION option
CLOCK_CONTROL_NRF_HFINT_CALIBRATION depended on the renamed
nordic,nrf-hfxo -> nordic,nrf54l-hfxo. Update config to depend on
DT_HAS_NORDIC_NRF54L_HFXO_ENABLED to match new compat name.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-05-28 17:49:41 +02:00
Bjarki Arge Andreasen
400c038008 drivers: clock_control: z_nrf_clock: add get_startup_time API
Implement vendor specific
z_nrf_clock_bt_ctlr_hf_get_startup_time_us() which gets the startup
time of the high frequency clock used for Bluetooth.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-05-28 17:49:41 +02:00
Bjarki Arge Andreasen
bb8ef777fb dts: bindings: clock: nrf54l-hfxo: add startup-time-us prop
Add the clock startup time property to the nrf54l series HFXO binding.

Note that the values added to the soc .dtsi files are worst case
defaults, which will be replaced with optimal values at board level
in the future, as they depend on the specific crystal in use.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-05-28 17:49:41 +02:00
Bjarki Arge Andreasen
393a9e50b5 dts: bindings: clock: rename nordic,nrf-lfxo -> nordic,nrf54l-lfxo
Each nrf series has its own variant of the lfxo clock, specified
by the binding which includes the series in the name. The nrf54L
series is no different, hence the binding should be clearly
specified by having the series name within it.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-05-28 17:49:41 +02:00
Bjarki Arge Andreasen
e3c70ee8a6 dts: bindings: clock: rename nordic,nrf-hfxo -> nordic,nrf54l-hfxo
Each nrf series has its own variant of the hfxo clock, specified
by the binding which includes the series in the name. The nrf54L
series is no different, hence the binding should be clearly
specified by having the series name within it.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-05-28 17:49:41 +02:00
Bjarki Arge Andreasen
b9fdef65ca dts: bindings: clock: nrf53-hfxo: add startup-time-us prop
Add the clock startup time property to the nrf53 series HFXO binding.

Note that the values added to the soc .dtsi files are worst case
defaults, which will be replaced with optimal values at board level
in the future, as they depend on the specific crystal in use.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-05-28 17:49:41 +02:00
Bjarki Arge Andreasen
a81dad9c5b dts: arm: nrf52: add hfxo binding and nodes
Add nrf52 series hfxo binding and nodes to socs.

Note that the values added to the soc .dtsi files are worst case
defaults, which will be replaced with optimal values at board level
in the future, as they depend on the specific crystal in use.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-05-28 17:49:41 +02:00
Bjarki Arge Andreasen
9ba72a5079 dts: arm: nrf51: add hfxo binding and nodes
Add nrf51 series hfxo binding and nodes to socs.

Note that the values added to the soc .dtsi files are worst case
defaults, which will be replaced with optimal values at board level
in the future, as they depend on the specific crystal in use.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-05-28 17:49:41 +02:00
Sudan Landge
6d038d3d49 boards: arm: mps3: fix intermittent ci failures
FVP's are functionally accurate but not cycle accurate which is
different from QEMU which prefers speed over accuracy.
This sometimes leads to intermittent test failures with FVP which
would otherwise pass with QEMU.
The intermittent failed tests are successful on retries however,
adding a timeout_multiplier would reduce the chance of failures so
we set the timeout_multiplier to a value which will avoid the issue.

Fixes #90654

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-05-28 17:49:31 +02:00
Yangbo Lu
045c6e4419 MAINTAINERS: add yangbolu1991 as maintainer for PTP Clock
I once worked as maintainer for Linux PTP VIRTUAL CLOCK SUPPORT
and FREESCALE QORIQ PTP CLOCK DRIVER.

Although I haven't been working on zephyr PTP for long, I have
clear understanding for current zephyr PTP clock and PTP/gPTP stack.
And started to contribute for it.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-05-28 17:49:05 +02:00
Fin Maaß
f7153012ef dts: enum_macros: make sure that they are lowercase
DT_ENUM_HAS_VALUE_BY_IDX states, that the value
must be lowercase-and-underscores, this makes sure,
that they can match.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-05-28 17:48:57 +02:00
Brandon Allen
979933cfb4 drivers: current_sense_amplifier: add zero-current-voltage binding
some current sense amplifiers have a non zero offset voltage
that correlates to zero current. adding this offset voltage binding
allows the driver to be used with this type of circuitry.

Signed-off-by: Brandon Allen <brandon.allen@exacttechnology.com>
2025-05-28 17:48:47 +02:00
Yishai Jaffe
f384a86cc9 boards: silabs: fix boards DTS files coding style issues
Fix board DTS coding style issues to prevent them from spreading when a
new board is introduced and uses an existing DTS as a referance.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Don’t insert empty lines before a deindenting };.
- Insert a single empty line to separate nodes at the same hierarchy
  level.
- status is "okay" by default.
- compatible property comes first in node.
- reg property comes second in node.
- status property comes last in node.
- the rest of the properties within are nodes naturally sorted.
- child nodes are sorted by address or alphabetically if there is no
  address.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Yishai Jaffe <yishai1999@gmail.com>
2025-05-28 16:38:15 +02:00
Antonino Scarpaci
1508d7ec7e samples: drivers: video: fix capture_to_lvgl statistics
CONFIG_LV_USE_PERF_MONITOR depends on CONFIG_LV_USE_SYSMON.

Signed-off-by: Antonino Scarpaci <antonino.scarpaci@gmail.com>
2025-05-28 16:38:05 +02:00
Olivier Lalonde
afc481ab31 modem_cellular: Add support for the simcom a76xx modem
Add support for the simcom a76xx modem which is similar to the simcom 7080
but has a few key differences. Tested with a simcom A7672SA module but as
there is a single simcom A76XX AT commands manual, the driver should work
with other modems of the series.

Signed-off-by: Olivier Lalonde <o@syskall.com>
2025-05-28 16:37:53 +02:00
Cong Nguyen Huu
50964e4ef9 sample: arch: mpu: mpu_test: skip run automate for SoC S32Z
Due to input automated testing, the memory addresses (0x1, 0x2)
are not available in any managed memory region, causing the
automated test to fail. This test should be run manually.

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
2025-05-28 16:37:44 +02:00
Mathieu Choplain
5e9a10cb5b drivers: clock_control: stm32: don't enable RUNTIME_NMI all the time
The Clock Security System (CSS) feature signals failure of an external
oscillator by triggering an NMI. As such, when this feature is enabled,
RUNTIME_NMI must also be enabled such that the NMI handler can be modified
to point to the appropriate function.

The STM32 clock control Kconfig checks whether the CSS has been enabled in
Device Tree, and forcefully selects RUNTIME_NMI if enabled since the driver
code will require it. However, the check has been implemented improperly:
"dt_nodelabel_has_prop" was used instead of "dt_nodelabel_bool_prop", an
error similar to using DT_NODE_HAS_PROP() instead of DT_PROP() in C code.

Since the property always exists, as long as the HSE is enabled, the
RUNTIME_NMI option is always select'ed, even if not actually required.

Use the correct Kconfig function to ensure RUNTIME_NMI is select'ed only
when it is required, instead of whenever HSE is enabled regardless of CSS.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-05-28 15:38:31 +02:00
Benjamin Cabé
688c3a5db2 shields: add supported_features to shields
Sets the list of supported hardware features for all the shields
currently defined in the tree.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-05-28 15:33:50 +02:00
Benjamin Cabé
804915841a shields: doc: allow to indicate supported hw features
Shield authors can now indicate an optional list of hardware features
that the shield supports, in the form of the same kind of "binding type"
already used for boards.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-05-28 15:33:50 +02:00
Robert Lubos
c26f39450d net: context: Verify if CONFIG_NET_SOCKETS_PACKET_DGRAM is enabled
Verify if CONFIG_NET_SOCKETS_PACKET_DGRAM is enabled when creating a
datagram packet socket. Otherwise, it's possible to create
non-functional AF_PACKET/SOCK_DGRAM socket w/o an error.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-05-28 15:33:24 +02:00
Andrzej Głąbek
a9405d005c drivers: adc_ad4130|adc_7124: Add ret initialization in *_perform_read()
Add initialization of `ret` to avoid reports of uninitialized variable
being returned. This variable normally gets initialized while the loop
iterates over channels, but potentially it could be left uninitialized
if the loop finished in its first iteration because of no channels to
be processed.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-05-28 15:33:14 +02:00
Pieter De Gendt
432db03003 scripts: requirements-actions: Update packages
Update packages installed by GH actions.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-05-28 15:32:33 +02:00
Pieter De Gendt
3c234b4ecb scripts: Update ruff and generate excludes
Update to the latest version of ruff and generate linter and format
exclusions for current python files in tree.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-05-28 15:32:33 +02:00
Ricardo Rivera-Matos
2bb7fcc5df charger: axp2101: Guards against out-of-bounds read
Corrects the out-of-bounds check when reading
constant_charge_voltage_lut

Signed-off-by: Ricardo Rivera-Matos <ricardo.rivera-matos@cirrus.com>
2025-05-28 12:22:21 +02:00
Henrik Brix Andersen
18aa6c8901 drivers: can: mcan: merge nested if-statements into one
Merge two nested if-statements into one.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2025-05-28 12:22:11 +02:00
Henrik Brix Andersen
45511fe634 drivers: can: mcan: declare the loop condition variables inside the loops
Declare the loop condition variable inside the loops to limit their scope.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2025-05-28 12:22:11 +02:00
Bartosz Miller
364ec03afb samples: drivers: nrf: flash: Execute nrf soc flash sample on nrf54l
Add nrf54l to nrf_soc_flash sample allowed targets

Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
2025-05-28 12:22:04 +02:00
Andrej Butok
c0960d2282 boards: nxp: mimxrt1160_evk: set LinkServer as the default runner
Sets LinkServer as the default runner for mimxrt1160-evk boards,
as the board is configured for CMSIS-DAP by default.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-05-28 11:19:46 +02:00
Henrik Brix Andersen
40ec42e26f drivers: can: rcar: merge nested if-statements into one
Merge two nested if-statements into one.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2025-05-28 11:18:23 +02:00
Henrik Brix Andersen
09f54c98a7 drivers: can: rcar: declare the loop condition variables inside the loops
Declare the loop condition variable inside the loops to limit their scope.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2025-05-28 11:18:23 +02:00
Henrik Brix Andersen
24a46a597c drivers: can: rcar: always initialize return value variable
Always initialize the return value variable to avoid returning garbage.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2025-05-28 11:18:23 +02:00
Andrej Butok
0d2cf4f77e boards: nxp: mimxrt1064_evk: doc: fix user guide link.
- Fixes link to the MIMXRT1064-EVK User Guide (was broken).
- Adds a note about SW7 and SW5 settings to boot from QSPI.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-05-28 11:18:12 +02:00
Andrej Butok
150b741883 boards: nxp: mimxrt1064_evk: set LinkServer as the default runner.
Sets LinkServer as the default runner for mimxrt1064-evk boards,
as the board is configured for CMSIS-DAP by default.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-05-28 11:18:12 +02:00
Pieter De Gendt
8e2e319925 scripts: west_commands: export: Sorted imports
Sort imports with ruff.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-05-28 11:13:51 +02:00
Pieter De Gendt
476a8c2c39 scripts: west_commands: completion: Fix linter issues
Fix issues reported by ruff.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-05-28 11:13:51 +02:00
Pieter De Gendt
eba120384a scripts: west_commands: blobs: Fix linter issues
Fix issues reported by ruff.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-05-28 11:13:51 +02:00
Pieter De Gendt
0c18197325 scripts: west_commands: bindesc: Fix linter issues
Fix issues reported by ruff.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-05-28 11:13:51 +02:00
Lyle Zhu
5f7fbb6c1d Bluetooth: Classic: Fix LTK cannot be derived issue
The LTK cannot be derived by LK when LK is not weaker than the old LTK.

Improve the function `smp_br_pairing_allowed()` to avoid the LTK be
overwrote when old LTK has MITM protection but new LK has not MITM
protection.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-05-28 11:13:40 +02:00
Ricardo Rivera-Matos
68f300dc31 charger: bq25713: Corrects unsigned int comparison
Removes an unnecessary comparison of an unsigned int against the value
zero.

Signed-off-by: Ricardo Rivera-Matos <ricardo.rivera-matos@cirrus.com>
2025-05-28 11:10:43 +02:00
John Lin
578a7019df dts: vendor: raspberrypi: Add partitions for Raspberry Pi
Add partitions for Raspberry Pi boards with default to use
Storage partitions and option to use Sysbuild partitions.

Signed-off-by: John Lin <john.lin@beechwoods.com>
2025-05-28 11:10:33 +02:00
Ricardo Rivera-Matos
48854a8bcf charger: axp2101: Corrects unsigned int comparison
Removes an unnecessary comparison of an unsigned int against the value
zero.

Signed-off-by: Ricardo Rivera-Matos <ricardo.rivera-matos@cirrus.com>
2025-05-28 11:10:10 +02:00
Noah Pendleton
7f1a639327 west: blobs: fetch exit immediately on HTTP error
If an HTTP error occurs during `west blobs fetch`, the response was written
to a file (even if the response body is empty), and then the checksum
validation fails, which can be somewhat confusing.

Add an immediate error message and exit-with-error-code when the HTTP
request fails.

Tested by modify a blob manifest to have an invalid URL:

```bash
# test with invalid URL
❯ west blobs fetch nrf_wifi
Fetching blob nrf_wifi: .../wifi_fw_bins/default/nrf70.bin
ERROR: HTTP error occurred: 404 Client Error: Not Found for url: ...

# test with networking disabled
❯ west blobs fetch nrf_wifi
Fetching blob nrf_wifi: .../wifi_fw_bins/default/nrf70.bin
ERROR: An error occurred: HTTPSConnectionPool(host='git.... \
  Max retries exceeded with url: \
  .../zzzz/nrf_wifi/bin/zephyr/default/nrf70.bin
...
```

Signed-off-by: Noah Pendleton <noah.pendleton@gmail.com>
2025-05-28 11:09:54 +02:00
Can Wang
a95f900bfa Bluetooth: Shell: Fix issue that BR connection is not selected.
LE and BR connection have already been established, after that, LE
disconnection occurs, BR connection will not be selected as the next
default connection.

Fix this issue by searching for both BR and LE after disconnection
occurs.

Signed-off-by: Can Wang <can.wang@nxp.com>
2025-05-28 11:09:44 +02:00
Can Wang
361f8e2795 Bluetooth: Shell: Fix issue that BR security level cannot be set to 4.
Host stack supports to set BR security level to 4 but the security level
cannot be set to 4 by the shell command.

Update the code to support BR security level 4.

Signed-off-by: Can Wang <can.wang@nxp.com>
2025-05-28 11:09:44 +02:00
Can Wang
c24594a7bb Bluetooth: Shell: Remove redundant spaces in string.
This string contains two consecutive spaces. Remove one of them.

Signed-off-by: Can Wang <can.wang@nxp.com>
2025-05-28 11:09:44 +02:00