Commit Graph

105028 Commits

Author SHA1 Message Date
Benjamin Cabé 4ddef9fc0f boards: lilygo: adopt new zephyr:board directive and role
This updates the documentation of all the LilyGO boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-11-14 12:41:19 -06:00
Ricardo Rivera-Matos a88af572f4 doc: releases: 4.0: Adds Haptics notes
Introduces haptics subsystem and DRV2605 support in the release notes.

Signed-off-by: Ricardo Rivera-Matos <ricardo.rivera-matos@cirrus.com>
2024-11-14 12:41:09 -06:00
Bjarki Arge Andreasen 2f81bbbdf8 doc: release: doc comparator API as major enhancement
Add entry in "Major enhancements with this release include:" for
comparator device driver subsystem.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2024-11-14 12:40:59 -06:00
Johann Fischer d0ea9d5243 doc: release-notes-4.0: add release notes for USB
Add release notes for USB support.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-11-14 12:40:50 -06:00
Luca Burelli 07df2c5d5e soc: sensry: sy1xx: add support for LLEXT build
The linker script for this SoC was not including the LLEXT section
definitions when CONFIG_LLEXT was enabled. This patch adds the
necessary include directive to the linker script and fixes the build
issue identified by CI.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2024-11-14 11:01:27 -06:00
Aksel Skauge Mellbye 7f8b531d4c drivers: serial: gecko: Fix build error on Series 0
Series 0 does not have the TXIDLE status flag. The closest equivalent is
TXC, but it isn't set until the first transmission completes, and is
therefore not safe to use in PM suspend without also separately keeping
track of whether the driver has ever initiated a transmission. For now,
disable the TXIDLE check on devices that don't support it as a minimal
fix for the observed build error. This is effectively equivalent to
reverting the addition of PM support for these devices only. Since these
devices don't have a low-power system timer implementation anyway, the
lack of PM handling does not hurt anything.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2024-11-14 11:01:17 -06:00
Luca Burelli 876b44d150 soc: mediatek: mt8195_adsp: add support for LLEXT build
The linker script for this SoC was not including the LLEXT section
definitions when CONFIG_LLEXT was enabled. This patch adds the
missing include directive to the linker script.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2024-11-14 11:01:07 -06:00
Fabio Baltieri f7ff83079f github: west_cmds: add missing anytree package
Add missing anytree package, runners started to fail on it:

../pylib/twister/twisterlib/runner.py:60: in <module>
    from anytree import Node, RenderTree
E   ModuleNotFoundError: No module named 'anytree'

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-11-14 09:51:06 -05:00
Laurentiu Mihalcea c0a0e6a388 doc: release-notes-4.0: add release notes for firmware subsystem
Includes notes on SCMI's introduction.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-11-13 21:14:05 -06:00
TOKITA Hiroshi 9e51f1a754 drivers: sensor: mmc56x3: Fixed an error in include-guard
Fixed definitions duplicated with those in
`include/zephyr/drivers/sensor/tsl2591.h`.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-11-13 19:11:25 -08:00
TOKITA Hiroshi 241c7b3fb7 arch: arc: Fixed an error in include-guard
Fixed definitions duplicated with those in
`include/zephyr/arch/xtensa/arch_inlines.h`.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-11-13 19:11:25 -08:00
Yong Cong Sin 408c151282 tests: arch: riscv: make sure that `gp` reg can't be corrupted
Add a test to make sure that the `gp` global pointer register used for
relative addressing when `CONFIG_RISCV_GP` is enabled can't be
corrupted by a rogue user thread.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
2024-11-13 19:08:54 -08:00
Yong Cong Sin e30db2d53f arch: riscv: reset global pointer on exception
Reset the gp on exception entry from u-mode to protect the kernel
against a possible rogue user thread.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-11-13 19:08:54 -08:00
Yong Cong Sin de3a845612 arch: riscv: add macro to access hardware registers
Add macros to read / write hardware registers.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
2024-11-13 19:08:54 -08:00
Jimmy Zheng d267402404 tests: drivers: build_all: eeprom: fix label name conflict
Renamed the label of 'ti_tmp116_eeprom@0' node because 'eeprom' label name
already exists in some boards, such as adp_xc7k/ae350, bytesensi_l,
same54_xpro.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2024-11-13 19:08:41 -08:00
Mahesh Mahadevan d9bfdaf996 bluetooth: kconfig: Remove deprecated config
Remove deprecated Kconfig BT_MESH_PROV_DEVICE

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-11-13 19:08:29 -08:00
Mahesh Mahadevan 7498329d59 random: remove deprecated rand32.h
Header file was kept for 2 releases, time to remove it.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-11-13 19:08:11 -08:00
Anas Nashif 9f5ef47184 ci: twister: also report filtered instances
For statistical purposes and to improve over all coverage, report
filtered suites so we can see trends in elasticsearch and act on them.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-13 20:04:04 -05:00
Sylvio Alves 40cd35e56d west.yml: espressif: fix mcuboot assert in hal
Espressif contains mcuboot calls for loading image.
This fixes the way assert call is included in that scenario.

Fixes #81351

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-11-13 13:36:27 -06:00
David Brown 44e0edcf1b submanifests: optional: rust: Limit build targets
Brings in a change in the v4.0-branch branch to limit the targets that
rust tests are run on to those that have been tested.  This will avoid a
large number of failure in the nightly build on platforms that aren't
expected to work.

Signed-off-by: David Brown <david.brown@linaro.org>
2024-11-13 13:36:17 -06:00
Daniel DeGrasse dee76a7907 boards: nxp: mimxrt1170_evk: document flash support for EVKB
Flash support for RT1170 EVKB was fixed with cfb7322107 (drivers: flash:
flash_mcux_flexspi: add support for W25Q512NW-IQ/IN). Document this
support in the board page.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-11-13 13:36:00 -06:00
Pisit Sawangvonganan 1175f57640 doc: fix typo in multiple directories before v4.0.0 release
Utilize a code spell-checking tool to scan for and correct spelling errors
in various files within the `doc` directory.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2024-11-13 13:35:49 -06:00
Declan Snyder 1a5ae376a3 doc: release-notes-4.0: Add DT 4.0 notes
Add release notes for DT area for zephyr 4.0.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-11-13 09:15:49 -06:00
Akshay James b93a51ae78 doc: fix typo in blackpill_f401cc docs
Fix the text and links where it mentions 'blackpill_f401ce' instead
of 'blackpill_f401cc'.

Signed-off-by: Akshay James <akshayjames95@gmail.com>
2024-11-13 09:15:00 -06:00
IBEN EL HADJ MESSAOUD Marwa db6589f780 Revert "drivers: ethernet: eth_stm32_hal"
This reverts commit 0036b8bf21.

The reverted commit causes a compile error with the STM32F2 because
there are some variables used in the file eth_stm32_hal that are
not defined in the HAL module of the STM32F2 series,
such as 'ETH_RX_DESC_CNT' and 'HAL_ETH_MII_MODE'

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
2024-11-13 09:13:23 -06:00
IBEN EL HADJ MESSAOUD Marwa 1721454266 Revert "drivers: ethernet: eth_stm32_hal_priv.h"
This reverts commit fbeda5959d.

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
2024-11-13 09:13:23 -06:00
Jamie McCrae 996b8a63e7 mgmt: mcumgr: Remove deprecated function smp_add_cmd_ret
Removes a function that was deprecated in Zephyr 3.4

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-11-13 09:08:18 -06:00
Jamie McCrae 55e7cc659c doc: Fix renamed ARM MPS* board targets
Fixes some board target names that have changed or were not
updated for hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-11-13 09:08:09 -06:00
Declan Snyder c1398250e9 drivers: nxp_enet: Check link state in iface init
Still mark the iface as down after ethernet_init, but then actually
check the link state and initialize carrier appropriately

This fixes the case where, the phy driver doesn't give a callback after
iface init due to the link already being up, there was no change from
the phy driver perspective, so callback  wouldn't happen, and therefore
the interface could remain marked as down after boot even if carrier is up.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-11-13 09:07:59 -06:00
Declan Snyder 0da16f7ec6 drivers: nxp_enet: put phy cb before iface init
This commit moves one function before another, to make the diff of the
next commit clearer of what it's doing.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-11-13 09:07:59 -06:00
Anas Nashif 049b243b51 twister: stats: use anytree to create summary
Do not create the tree structure manually, use anytree instead.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 18:05:16 -06:00
Anas Nashif a43a67e3a3 twister: stats: fix suite statistics
suite stats were not correct, a mixup between skipped and filtered
suites was leading to inconsistent numbers. This is now fixed.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 18:05:16 -06:00
Anas Nashif b578fa5b2a twister: stats: more renames skipped -> filtered
Additional variable renames leading to confusion between skipped and
filtered.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 18:05:16 -06:00
Anas Nashif d69d14aac6 twister: stats: skipped_configs -> filtered_configs
Rename variables leading to confusion between skipped and filtered
suites.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 18:05:16 -06:00
Anas Nashif 61aefee3ad twister: stats: skipped testcases are part of selected group
Count skipped cases as part of selected group in stats.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 18:05:16 -06:00
Anas Nashif 1647b46a07 twister: stats: remove double counting of statuses
We have been double counting some statuses, remove to get the stats
right.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 18:05:16 -06:00
Anas Nashif eddb0b77a3 twisters: tests: adapt twister testsuite
Adapt tests for new changes in twister.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 18:05:16 -06:00
Anas Nashif 7e23b35c33 twister: stats: 'Executed test cases' -> 'Completed test cases'
Built tests are not executed, change column title.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 18:05:16 -06:00
Anas Nashif 950dccc5bb twister: status inconsistencies are now warnings
Do not report status issues as errors, very confusing and developer end
up looking at the wrong thing, instead, treat those as warnings and
count them and report them at the end.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 18:05:16 -06:00
Anas Nashif 5ad5b95fde twister: remove verbose debug message about adding platforms
This is very verbose and very long sometimes getting the way when trying
to debug a problem.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 18:05:16 -06:00
Anas Nashif 11447e4463 twister: stats: not run tests are also part not executed summary
Add notrun tests to the count of non-executed tests.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 18:05:16 -06:00
Anas Nashif 64f950420a twister: do not report filtered cases in summary
It is confusing to report filtered testcases as  testcases that were
selected but not exexuted. If they are filtered, then there should not
be considered as selected.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 18:05:16 -06:00
Anas Nashif 81af36202b twister: use consistent language for test configurations
In the summary, use "configurations" instead of instances.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 18:05:16 -06:00
Anas Nashif c394a27d77 twister: count filtered testcases as such, not as skipped
When a suite is filtered, its testcases are also filtered and not
skipped.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 18:05:16 -06:00
Jeremy Bettis b1f42f2e71 drivers: Fix uninitialized variable warning.
In GCC 14.2.0, the keyvariable in usb_dc_ep_write is detected to be used
before initialization, even though this usage should be safe.

Fix by initializing the key variable to 0, and making the 2 if
statements explicitly checking the same value.

Signed-off-by: Jeremy Bettis <jbettis@google.com>
2024-11-12 15:58:47 -06:00
Ioannis Damigos 135214d844 driver/dma_smartbond: Fix driver initialization when PM_DEVICE is set
Fix DMA driver initialization when PM_DEVICE is set.
Don't put PM policy state lock if it is not active.

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
2024-11-12 15:49:26 -06:00
Ioannis Karachalios a66c070598 drivers: counter: Fix unbalanced policy state lock
This commit should deal with fixing unbalanced policy state locks.
When PM and PM_DEVICE are declared, default state, policy locks
should be given only when  active.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2024-11-12 15:48:20 -06:00
Ryan McClelland 88fb090b7f doc: release: add release notes for I3C for v4.0.0
add release notes for I3C for zephyr v4.0.0

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2024-11-12 13:21:35 -08:00
Aksel Skauge Mellbye 092fd18d5b doc: release-notes-4.0: Add Silabs notes
Add noteworthy additions for Silabs socs, boards and drivers.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2024-11-12 15:15:53 -06:00
Daniel DeGrasse 37c9cf22ce doc: release-notes-4.0: add release notes for SD subsystem
No significant changes have been made to the SD subsystem since 3.7. Add
a note documenting this for the 4.0 release.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-11-12 15:14:33 -06:00