Commit Graph

105023 Commits

Author SHA1 Message Date
Jordan Yates 35295f3663 zbus: `observervation` -> `observation`
Fix a typo in the doxygen and service documentation.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2024-11-12 12:15:55 -06:00
Flavio Ceolin 81491df4ac doc: release/4.0: Crypto driver notes
Add information about TinyCrypt shim driver deprecation.

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2024-11-12 12:15:36 -06:00
Fabian Blatz db9ba1865a doc: release: 4.0: Add lvgl notes
Add release notes section about lvgl and the added sample.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2024-11-12 12:15:24 -06:00
Maochen Wang d9ef4b7e69 manifest: Update hal_nxp to fix psa_crypto_init failure
The MBEDTLS_PSA_ACCEL_xxx macro means it will not enable the SW/Builtin
implementation of the feature. The PSA_WANT_xxx macro means it will
enable the PSA-API usage of the feature, and can use SW or HW
acceleration. If enable the MBEDTLS_PSA_ACCEL_xxx macros, during
psa_crypto_init, mbedtls_psa_hash_setup will failed, as the macro
MBEDTLS_PSA_BUILTIN_ALG_SHA_512 is undefined. Remove the marco of
MBEDTLS_PSA_ACCEL_xxx can enable maco MBEDTLS_PSA_BUILTIN_ALG_xxx,
and fix the supp_psa_crypto_init fail and Wi-Fi connection failed issue.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2024-11-12 09:58:18 -06:00
Sylvio Alves 0cbb92c2c8 boards: heltec: fix kconfig cpu entry name
Minimum heap pool should be always set for the board
in order to enable internal drivers/subsystems to work.

It is currently not defined for APPCPU due to typo in
board's Kconfig, possibly causing build failures.

Fixes #81218

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-11-12 09:58:04 -06:00
Maureen Helm 27fca4d24f doc: release: Add ADI notes for v4.0.0
Adds release notes for new ADI drivers and notable changes introduced
since the last release.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-11-12 09:57:53 -06:00
Maureen Helm 782247bc6a doc: release: Add sensor notes for v4.0.0
Adds release notes for notable changes and new sensor drivers introduced
since the last release.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-11-12 09:57:53 -06:00
Jukka Rissanen 0ab7ecf038 doc: release-notes-4.0: Add notes for Wi-Fi
Added release notes for Wi-Fi.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-11-12 09:57:41 -06:00
Declan Snyder 3b16920ada doc: release-notes-4.0: Add ethernet/mdio notes
Add release notes for ethernet and mdio drivers for 4.0

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-11-12 09:57:28 -06:00
Robert Middleton 05ad0ae8fd doc: develop: tools: Add STM32CubeIDE directions
Add directions on using STM32CubeIDE for developing Zephyr.

Signed-off-by: Robert Middleton <robert.middleton@rm5248.com>
2024-11-12 09:57:15 -06:00
Anas Nashif 79f742f252 doc: tests: remove page about deprecated ztest APIs
Remove leftover page about deprecated ztest APIs.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-12 09:56:54 -06:00
Dat Nguyen Duy 65511eacf9 drivers: dma_mcux_edma: utilize correct macros for edma v3
Utilize correct macros for edma v3

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2024-11-11 17:53:07 -06:00
Duy Nguyen 7f4cab95b3 doc: release notes v4.0: Renesas RA addition
Update noteworthy support of Renesas RA driver for 4.0 release

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2024-11-11 17:52:57 -06:00
Flavio Ceolin a19fb8e122 doc: security: Add CVE under embargo
Add an entry to CVE-2024-10395

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2024-11-11 17:52:48 -06:00
Flavio Ceolin 1aba3ce280 doc: release/4.0: Add CVE under embargo
Add information about CVE under embargo.

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2024-11-11 17:52:48 -06:00
Dan Kalowsky c50777a843 VERSION: bump for 4.0.0-rc3
Update the VERSION file to reflect the taggingg for v4.0.0-rc3 release

Signed-off-by: Dan Kalowsky <dkalowsky@amperecomputing.com>
2024-11-09 04:26:19 -06:00
Pieter De Gendt 373ed89e4b doc: release: 4.0: Add nanopb 0.4.9 update
Add section for nanopb and upstream sync.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-11-08 22:31:17 -06:00
Pieter De Gendt 0775b507b5 submanifests: optional: Bump nanopb to 0.4.9
Sync upstream and get the latest tagged version 0.4.9.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-11-08 22:31:17 -06:00
Erwan Gouriou 8025c8473b doc: Migration guide v4.0: STM32 additions
STM32 noteworthy additions for 4.0 release.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-11-08 22:29:51 -06:00
Erwan Gouriou 4e50521a22 doc: release notes v4.0: STM32 additions
Gathers STM32 noteworthy additions for 4.0 release.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-11-08 22:29:51 -06:00
Flavio Ceolin 429d2e79b1 docs: release/4.0: Info about TinyCrypt
Add an information about upcoming TinyCrypt deprecation.

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2024-11-08 22:29:08 -06:00
Flavio Ceolin f81c20d088 Revert "tinycrypt: deprecate the library"
This reverts commit 5e225e0c8b.

Based on #79931 and TSC discussions, it was decided that TinyCrypt
will be deprecated *AFTER* 4.0.

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2024-11-08 22:29:08 -06:00
Marek Matej 207da3ad15 doc: espressif: Add missing images
Update and add missing Espressif board images.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2024-11-08 22:28:30 -06:00
Ryan McClelland c58c130b48 drivers: sensor: default_rtio_sensor: fix limited range warning
`chan_type` is defined as a `uint16_t`. This makes checking if it is
< 0 always false. A warning is shown with -Wtype-limits. Remove the
check as it is unnecessary.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2024-11-08 22:28:08 -06:00
Jukka Rissanen 04d8b7c595 net: sockets: Cleanup socket properly if POSIX API is enabled
The sock_obj_core_dealloc() was not called if close() is called
instead of zsock_close(). This happens if POSIX API is enabled.

Fix this by calling zvfs_close() from zsock_close() and then
pass the socket number to zsock_close_ctx() so that the cleanup
can be done properly.

Reported-by: Andreas Ålgård <aal@ixys.no>
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-11-08 15:56:39 -06:00
Declan Snyder 92d0287813 drivers: spi_mcux_lpspi: Fix DMA path on RT
Apparently, the previous change to fix the chip select only works on
some newer revisions of the LPSPI, and the behavior is different on
older parts like RT. For now put some #ifdef to keep the fixed CS on
MCXN but have the old behavior on RT and other platforms.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-11-08 15:56:06 -06:00
Bernardo Perez Priego b6b8eeedf0 serial: mchp_xec: Fix `uart_xec_irq_tx_complete` function
This function is only checking for current byte being transmitted.
This patch ensures that function returns `1` until TX is disabled and
no byte is being transmitted.

Signed-off-by: Bernardo Perez Priego <bernardo.perez.priego@intel.com>
2024-11-08 15:55:52 -06:00
Dong Wang 431c34039a tests: debug/coredump: Change to call k_panic() for ISH SoCs
ISH SoCs have zero-address memory mapped to I2C0 controller.
Coredump cannot be triggered by zero-address access.

Signed-off-by: Dong Wang <dong.d.wang@intel.com>
2024-11-08 15:55:36 -06:00
Peter Mitsis aeaddd70b7 tests: Fix IRQ locking in sched benchmark
Corrects an issue that was introduced when the interrupt
locking/unlocking was added to the 'sched' benchmark by
unlocking the interrupts before the context switch done by
k_yield(), but after the call to z_unpend_first_thread().

Fixes PR #81050

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-11-08 15:55:23 -06:00
Simon Maurer 18818c15cd openamp: resource table: fixes resource table for ram_console section
in commit 1cd37f21f3 the global ram console buffer was replaced
with a pointer. This didn't work with the OpenAMP resource table
anymore (#75656).

Signed-off-by: Simon Maurer <mail@maurer.systems>
2024-11-08 15:55:11 -06:00
Karun Kumar Eagalapati 02c8a5a80c manifest: Update hal_nordic
Updated manifest to include fix for incorrect display of scan
results when APs have EAP and PMF enabled.

Fixes #80995

Signed-off-by: Karun Kumar Eagalapati <karun.kumar@nordicsemi.no>
2024-11-08 15:54:59 -06:00
Hongquan Li c5fa9af235 drivers/wifi/nrfwifi: Add buffer for discard bytes
Some spi drivers do not allow the send buffer
and receive buffer to be empty at the same time,
if this happens it will cause the spi to be unable
to communicate with the nrf7002, so add the receive
buffer for the discard byte in the spim_xfer_rx.

Fix #80686

Signed-off-by: Hongquan Li <hongquan.prog@gmail.com>
2024-11-08 14:01:23 -06:00
Andrew Feldhaus a2e920cf96 drivers: rtc: rtc_ds1307: Fix corruption of SECONDS register
We read/modify/write the CH/SECONDS register at initialisation to clear
only the Clock Halt bit and only if it is set.

The previous implementation zeroes the entire register unconditionally at
initialisation, which wipes the SECONDS fields.

Fixes #77354.

Signed-off-by: Andrew Feldhaus <github@feldhaus.co.uk>
2024-11-08 13:58:10 -06:00
Franciszek Pindel 9c94ee5346 include/zephyr: Use ROMABLE_REGION for LMA in .last_ram_section
Currently RAMABLE_REGION is used for both virtual address (VMA)
and a load address (LMA). It results in wrong LMA for some platforms.
This commits adds using ROMABLE_REGION for LMA.

Signed-off-by: Franciszek Pindel <fpindel@antmicro.com>
2024-11-08 13:57:42 -06:00
Raymond Lei a6466249a9 drivers: dma: edma: Put the TCD pool in DTCM by default
To reduce the latency of CPU accessing/modifying SW TCD content, it
better to put TCD pool to DTCM by default.

Signed-off-by: Raymond Lei <raymond.lei@nxp.com>
2024-11-08 13:57:29 -06:00
Raymond Lei 209cb8157a drivers: serial: lpuart: Enable SG mode of LPUART
New implemented eDMA loop SG mode can be used to lpuart driver to fix
the conflict of "Done" bit issue which cause uart_async_api test failed
when SG mode is enabled.

Also, this loop SG mode works well even with a high bandrate(test done
on 2000000bps).
Fixes: #78291

Signed-off-by: Raymond Lei <raymond.lei@nxp.com>
2024-11-08 13:57:29 -06:00
Raymond Lei 7145295a4a Drivers: driver: i2s: Use eDMA loop SG mode
I2S speed test failed because of "Invalid destination address" issue By use
eDMA loop SG mode, this issue is fixed.

Fixes: #70777

Signed-off-by: Raymond Lei <raymond.lei@nxp.com>
2024-11-08 13:57:29 -06:00
Raymond Lei dfb1652dec drivers: dma: edma: eDMA loop SG mode support
Existing dynamic SG mode have some issues which cause uart sync api and
I2S speed test failed.

These issues are: a wrong "Done" bit issue found on UART async api
test. An invalid destination address issue found on I2S speed
test. By introducing loop SG mode, these issues are all fixed.

Some data structures are different between eDMA and eDMA V4, use
different macros defined in SDK driver for each of them.

Signed-off-by: Raymond Lei <raymond.lei@nxp.com>
2024-11-08 13:57:29 -06:00
Raymond Lei fddc009f58 drivers: dma: edma: Pending length calculation incorrect
Pending length should be mainloop count multiply NBYTES of minor loops.

Signed-off-by: Raymond Lei <raymond.lei@nxp.com>
2024-11-08 13:57:29 -06:00
Simon Moser a77d499e2d doc: fix body length in SMP UART transport
In the description of the partial-final frame of the SMP UART transport
specification was a typo in the maximum allowed raw body size. The size
must not be larger than MTU - 5 because there are 5 bytes occupied by
total length (2), frame termination (1) and crc (2).

Signed-off-by: Simon Moser <simon.github@mailbox.org>
2024-11-08 13:57:18 -06:00
Zak Portnoy 32b1140066 mgmt: smp: shell: Respond on uart shell device when changed at runtime
Responses are currently set to the shell device that was configured
in the device tree.

The shell_uart driver allows for changing it's device during runtime
which leads to a situation where we recieve packets on one device
and respond on another.

This patch causes smp_shell_tx_raw to use the shell_uart device

Signed-off-by: Zak Portnoy <zakportnoy@gmail.com>
2024-11-08 13:57:09 -06:00
Luca Burelli 50ab6953c2 linker: llext: avoid modifying current address in linker script snippet
The linker script snippet that places the llext_no_syscall_impl section
has the unfortunate side effect of overwriting the current linker
address. This can lead to unexpected behavior of the caller script.

Saving the current address before defining the section and restoring it
afterwards avoids this issue.

Fixes #81136.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2024-11-08 13:56:57 -06:00
Robert Lubos ebac6f2f21 doc: release-notes: Add 4.0.0 release notes for networking
Add 4.0.0 release notes for networking.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-11-08 13:56:46 -06:00
Ioannis Karachalios 7c5c459440 drivers: memc: Fix various APS6404 device issues
This commit deals with fixing various issues that prevents
the device from being built. In specific:

1. Fix default timing macro definitions to build with
an MSPI controller, other than AMBIG.
Add macro definition for MSPI_PORT.
2. Timing settings should be applied only when MSPI_TIMING
is defined. Otherwise, the APS6404 initialization routine
will fail with -EIO.
3. Similarly, use MSPI_XIP and MSPI_SCRAMBLE to apply XIP
and SCRAMBLE device settings, respectively (optimization).
4. MEMC_INIT_PRIORITY is assigned higher priority than
MSPI_INIT_PRIORITY which results in compiler error as
APS6404 device initialization depends on its underlying
MSPI bus controller.
5. The 'acquire' subroutine should be compiled when PM_DEVICE
is used (suppress compiler warning).

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2024-11-08 13:56:31 -06:00
Benjamin Cabé dc2c13bebd doc: ci: Build documentation on board documentation changes
Adds glob expression triggering CI for *all* changes in boards'
documentation, not just those matching the "*.rst" pattern since there
can also be images being changed without any other change on RST files.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-11-08 11:40:58 -06:00
Francois Ramu c7cbe91760 drivers: i2c: stm32 I2C V2 handles i2c_target processed_cb return code
Check the return code of the i2c_target_read/write callback function
is 0 before continuing the transmit/receive operation on I2C target
When Transmitting: 0 if data has been provided, then continue
When address matches: 0 if the write is accepted or
if more data can be requested depending on the transfer direction.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-11-08 11:38:02 -06:00
Jukka Rissanen fe56ce5a1c net: ipv6: fragmentation: Drop the packet if fragmentation fails
If we could not fragment the IPv6 packet, then drop it and do
not try to send it. Let the upper layer re-send the packet if
needed. It is causing more trouble if we try to send the packet
and not honor the MTU setting.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-11-08 11:37:49 -06:00
Jukka Rissanen 414316379a net: ipv4: fragmentation: Drop the packet if fragmentation fails
If we could not fragment the IPv4 packet, then drop it and do
not try to send it. Let the upper layer re-send the packet if
needed. It is causing more trouble if we try to send the packet
and not honor the MTU setting.

Fixes #81021

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-11-08 11:37:49 -06:00
Chaitanya Tata 9561a0ac76 drivers: nrfwifi: Fix recovery for SAP
nRF70 recovery relies on power-management feature which isn't applicable
for SAP, so, we keep seeing false recovery causing interface restart.

Disabled recovery for SAP to fix the issue.

Fixes #81130.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2024-11-08 11:37:31 -06:00
Maochen Wang f1572b988b manifest: Update hostap to fix ECSA issue
Update hostap to fix ECSA issue that warning log and
current_mode is not updated.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2024-11-08 11:37:18 -06:00