Commit graph

91263 commits

Author SHA1 Message Date
Daniel DeGrasse
9a96a0c50d soc: arm: nxp_imx: fix flexspi frequency setting for iMXRT11xx SOC
Commit a10fee2d5e (drivers: clock_control: ccm_rev2: add support for
reclocking FlexSPI) introduced the ability to set the FlexSPI
clock frequency at runtime on RT11xx series SOCs. However, this
implementation resulted in the clock frequency being rounded up, not
down. This can result in flash clock frequency violations on some
flash parts, causing the system to crash when running in XIP mode.

Fixes #69088

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-02-17 14:18:43 +01:00
Declan Snyder
5a3c77e746 doc: release-notes-3.6: MDIO changes
Add changes to 3.6 release notes for MDIO drivers

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-02-17 14:17:55 +01:00
Daniel DeGrasse
5dad8d72ee doc: release-notes-3.6: remove section for disk drivers
No changes have been made to disk drivers since 3.5, so remove the
section for this release.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-02-17 00:16:09 +01:00
Daniel DeGrasse
27cd3232e6 doc: release-notes-3.6: add SD and SDHC changes
Add SD and SDHC release notes, including the addition of the SDIO
subsystem

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-02-17 00:16:09 +01:00
Flavio Ceolin
17c5753b55 doc: release-notes-3.6: PM related changes
Power management release notes for 3.6

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-02-16 15:48:59 -06:00
Ali Hozhabri
ee13e0d271 doc: releases: Changes to SPI properties
Update release-notes version 3.6.0 with the SPI properties changes.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
2024-02-16 13:34:18 -06:00
Ali Hozhabri
3ad3fd2950 doc: releases: ST BlueNRG changes
Update release-notes and migration-guide version 3.6.0 with the changes
related to BlueNRG devices.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
2024-02-16 13:34:18 -06:00
Alberto Escolar Piedras
2f8c58120e samples/modules/lvgl/demos: Increase heap for native 64 targets
For this targets, the widgets demo run out of heap and crashes.
Let's just increase the heap size.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-02-16 19:26:03 +01:00
Emil Gydesen
b374a423c4 Samples: Bluetooth: Fix PAST support for broadcast sink
Fix missing support for PAST in the broadcast audio sink
sample, where it previously failed to request PAST from
the broadcast assistant by not setting the PA state to
BT_BAP_PA_STATE_INFO_REQ.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-16 19:15:39 +01:00
Johann Fischer
66fee0a528 doc: usb: explain interface number and endpoint address assignment
This also applies to the new experimental device stack, but
documentation for it has not yet begun.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-02-16 19:14:45 +01:00
Emil Gydesen
baaa149f10 Bluetooth: BAP: Fix bad bcast assistant bis sync shift
The shift is currently necessary due to a mismatch of the
specs and the API, but the shift should not be done when
the value is BT_BAP_BIS_SYNC_NO_PREF as that is a special value.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-16 19:14:27 +01:00
Emil Gydesen
acd1e891cb Bluetooth: BAP: UC: Fix call to bt_gatt_get_mtu in notify
In the unicast_client_ep_notify we would always call
bt_gatt_get_mtu, regardless of whether data == NULL.

When there is a disconnection, the notify callbacks are
called with data == NULL to indicate a unsubscription.
In the case of the unicast client, this would also trigger
calls to bt_gatt_get_mtu when there is a disconnect, which
in turn would trigger a warning that ATT is not connected.

Postponing the call to bt_gatt_get_mtu fixes this.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-16 19:13:48 +01:00
Jordan Yates
129b71260a doc: release-notes: zbus kconfig reference fixes
Fix usage of `:kconfig:option:` in the zbus release notes.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2024-02-16 19:07:03 +01:00
Jordan Yates
3a8328ce09 doc: release-notes: LoRa/LoRaWAN
Add release notes for LoRa/LoRaWAN subsystem for v3.6.0.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2024-02-16 19:07:03 +01:00
Thomas Stranger
ade3c72a35 drivers: wifi: esp_at: fix ssid_len calucation for AP query.
The driver seems to be designed to use the very last byte of the
buffer(scan, connect), so null terminating the status query
might have unintended consequences.
However we should not use strlen to determine the ssid_len,
to avoid depending on the following buffer(bssid) to be zeroed.
Related to CID 316354

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2024-02-16 10:15:37 -06:00
Marc Herbert
29d7f9fa73 xcc/cmake: fix error message when TOOLCHAIN_VER is undefined
The exact set of environment variables required by xt-xcc and xt-clang
is a bit of a dark magic and error-prone. TOOLCHAIN_VER is definitely
one of them and the error message was puzzling when TOOLCHAIN_VER was
undefined or not exported.

- Add TOOLCHAIN_VER to the list of variables in the error message

- Replace the vague "toolchain not found" in the error message with the
  more useful "XCC/install/tools//XtensaTools/bin/xt-xcc not found" where
  the double slash and comparison with the filesystem clearly point at
  where TOOLCHAIN_VER is missing.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2024-02-16 14:54:14 +01:00
Jamie McCrae
5d458d1ce6 doc: build: sysbuild: Remove mention of child image
Removes mention of child image to prevent confusion with other
systems that have no relation to sysbuild

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-02-16 06:46:25 -06:00
Anas Nashif
fc5211fc03 twister: always add integration platforms to platform scope
Add integration_platforms to the list of the default platforms per test
for improved coverage when not running in integration mode.

Some tests when run without any option do not exercise any tests and
skip the integration platforms completely.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-02-16 13:00:44 +01:00
Anas Nashif
cb1ee13e9d twister: only parse specified tests when using --test
Enhance the -s option of twister, used to point to a single scenario in
a testsuite.
- Now accept --scenario on the command line, --test still supported.
- If no testsuite is provided, extract testsuite from scenario
  identifier and avoid parsing the whole tree if we only want to address
  one scenario in a testsuite.
- If just the identifier of the scenario is provided to
  --test/--scenario option, try to find this as well, do not need the
  full path for that.

Something like this is now possible:

twister  --scenario kernel.threads.init --list-tests
twister -T <path> --scenario kernel.threads.init --list-tests
twister -T <path>/kernel.threads.init --list-tests

All should print the same output.

Fixes #67307

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-02-16 13:00:32 +01:00
Aleksander Wasaznik
7471ea87ee Bluetooth: Remove len param of bt_att_create_rsp_pdu
This served no purpose for responces. The minimum MTU is sufficient for
all ATT headers.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
2024-02-16 12:58:00 +01:00
Aleksander Wasaznik
98409830a2 Bluetooth: Correct bt_att_create_rsp_pdu reservation when EATT is enabled
When EATT is enabled, bt_att_create_rsp_pdu used to reserve headroom for
the SDU header even when responding on the UATT bearer.

That subtracted from the room for the ATT payload in the buffers. The
remaining buffer size was insufficient to create a PDU of ATT MTU size,
since the exchanged local MTU is calculated the with the assumption that
the SDU header is not present.

This broke the ATT MTU promise, and e.g. our read response will have two
bytes fewer than promised. This caused a failure in PTS.

The new bt_att_create_rsp_pdu pays attention to the bearer type and only
allocates the SDU header on EATT bearers.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
2024-02-16 12:58:00 +01:00
Marc Herbert
16337e8fed cmake/compiler/gcc: use -flto only for gcc >= 4.5.0
Fixes commit 26c8776c70 ("buildsystem: Add an option to enable LTO")

Fixes the following error when compiling offsets.c

  xt-xcc ERROR parsing -fno-lto:  unknown flag

LTO options were introduced in gcc 4.5.0, compare:

https://gcc.gnu.org/onlinedocs/gcc-4.4.6/gcc/Option-Summary.html
https://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Option-Summary.html

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2024-02-16 12:49:42 +01:00
Patryk Kuniecki
b5d441417f doc: add note to twister documentation
It could be helpfull to have a note about running single testsuite,
and adding more runners to the note, that are supported in hardware map

Signed-off-by: Patryk Kuniecki <patryk.kuniecki@intel.com>
2024-02-16 11:44:50 +01:00
Jamie McCrae
868193ef43 doc: release: 3.6: Add auxdisplay release notes
Adds release notes for this driver

Signed-off-by: Jamie McCrae <spam@helper3000.net>
2024-02-16 11:09:14 +01:00
Flavio Ceolin
f1cb184e48 doc: release-notes-3.6: mbedTLS update notes
Add release notes for mbedTLS.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-02-16 11:08:59 +01:00
Grzegorz Chwierut
d02c1bb7ad tests: Fix pytest scenarios for boot with mcumgr.
Clear buffer before restarting DUT. This is to avoid using
lines from previous initial boot, when verifying if upgrade was
done as expected in test.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2024-02-16 08:09:46 +01:00
Guennadi Liakhovetski
09cf3e0910 smp: fix a race when starting / resuming multiple CPUs
cpu_start_fn is global, it's used by the initiator CPU to start or
resume secondary CPUs. However it's possible, that the initiator CPU
goes ahead and starts a second secondary CPU before the first one has
finished using the object. Fix this by creating a local copy of the
global object.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2024-02-16 07:27:04 +01:00
Jose Alberto Meza
f3d591815f drivers: ecia: microchip: Prevent lost eSPI interrupts
Clearing virtual wire interrupt after calling callback may cause
interrupt miss if the same virtual wire changes due to action
in handler.

e.g. HOST_RST_WRN pulse within 50 us

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
2024-02-16 07:26:36 +01:00
Declan Snyder
9ce374b24a drivers: eth_mcux: Fix PM_DEVICE build failure
device power management is not yet supported with eth_mcux
except on the kinetis series, but this should not break
the build for other platforms when PM_DEVICE is set

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-02-16 07:26:18 +01:00
Ryan Erickson
034fc93db7 modem: hl7800: Fix null reference in hl7800_net_addr6_pton
Ensure a potential null pointer is not incremented.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
2024-02-15 22:17:43 +01:00
Keith Packard
dbe21a3343 doc: releases: Add release notes for picolibc
Document changes related to Kconfig settings so that users can see how to
adjust their settings for best results with Zephyr 3.6.

Signed-off-by: Keith Packard <keithp@keithp.com>
2024-02-15 22:17:18 +01:00
Sylvio Alves
825c4f2080 doc: release-notes-3.6: ESP32 related changes
Highlights a few ESP32 updates for 3.6

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-02-15 22:15:43 +01:00
Sylvio Alves
8c5b39a772 samples: esp32: docs: add proper header description
Add Sphinx model header content so that it can be
mapped into release notes.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-02-15 22:15:43 +01:00
Abderrahmane Jarmouni
7df5211bc4 doc: migration-guide-3.6: add note about async serial shell
Following PR 68475, CONFIG_SHELL_ASYNC_API needs to be enabled, in
addition to CONFIG_UART_SYNC_API, to be able to use async serial shell.

Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
2024-02-15 22:02:28 +01:00
Guennadi Liakhovetski
2f04a8c91e dma: intel-adsp: hda: avoid division by 0
A division by 0 has once been observed inside
intel_adsp_hda_dma_host_reload(). It is apparently caused by a
preceding logic or hardware error, but in any case values, read from
the hardware should be checked for 0 before being used as a divisor.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2024-02-15 16:23:49 +01:00
Emil Gydesen
5330312025 doc: releases: Add release notes for LE Audio
Adds release notes for LE Audio for the Zephyr 3.6 release.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-15 08:20:52 -06:00
Thomas Stranger
b5bb9c66e1 doc: release notes: add 1-wire release notes for 3.6.0
Add 1-Wire related release notes for Zephyr v3.6.0.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2024-02-15 08:20:08 -06:00
Bjarki Arge Andreasen
1e974adb33 doc: release notes: Modem modules
Add release notes detailing:
* Addition of TRANSMIT_IDLE event to modem_pipe module
* Implementation of TRANSMIT_IDLE event in all modem backends
* Extended all modem modules to use TRANSMIT_IDLE event
* Improved modem pipe event dispatching
* CMUX extended to act both as DCE and DTE

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-02-15 12:29:39 +01:00
Krzysztof Chruściński
27063ee92a doc: releases: Add release notes for logging
Add section with logging changes.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-02-15 12:29:13 +01:00
Najumon B.A
89745fe472 lib: acpi: update shell and test app with the modifed resource struct
update shell and test app with the modifed resource struct such as
acpi_irq_resource and acpi_mmio_resource

Signed-off-by: Najumon B.A <najumon.ba@intel.com>
2024-02-15 12:28:55 +01:00
Najumon B.A
2139479722 lib: acpi: fix for build error when acpi not enabled
fix for acpi.h header file generates invalid C-code when
 CONFIG_ACPI=n

Signed-off-by: Najumon B.A <najumon.ba@intel.com>
2024-02-15 12:28:55 +01:00
Bjarki Arge Andreasen
793c507209 modem: cmux: Prevent NULL deref in dlci_close_handler
Prevent unlikely item == NULL scenario identifed by CID
323104

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-02-15 10:22:09 +01:00
Bjarki Arge Andreasen
cc3076be1d modem: cmux: Prevent NULL deref in dlci_open_handler
Prevent unlikely item == NULL scenario (CID 323102) and remove
superflous cmux == NULL check (CID 334903)

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-02-15 10:22:09 +01:00
Bjarki Arge Andreasen
9633fb70a0 modem: cmux: Prevent NULL deref in connect_handler
Prevent unlikely item == NULL scenario (CID 323091) and remove
superflous cmux == NULL check (CID 334904)

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-02-15 10:22:09 +01:00
Bjarki Arge Andreasen
96e48c91b4 modem: cmux: Prevent NULL deref in connect_response_transmit
Prevent potential NULL dereference identified by CID 338026

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-02-15 10:22:09 +01:00
Henrik Brix Andersen
33708c6b3d modules: openthread: platform: logging: catch up on log2_generic rename
The log2_generic() function was renamed to log_generic().

Fixes: 2155a9e5f7

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-15 10:02:40 +01:00
Yong Cong Sin
f977847210 doc: logging: remove references to logging v2
Since the removal of logging v1, there's only one version,
so remove the '2' from the function references for the docs
to link to the correct functions properly.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-02-15 09:20:52 +01:00
Ian Morris
d3a0830ea5 drivers: clock_control: ra: sub-clock oscillator select fix
Due to a typo it is not possible to select the sub-clock oscillator
(SOSC) as a clock source for an RA Microcontroller. This patch resolves
the issue.

Signed-off-by: Ian Morris <ian.d.morris@outlook.com>
2024-02-15 09:20:30 +01:00
Mateusz Sierszulski
09a43661c3 drivers: serial: liteuart: Enable interrupt driven mode
This commit enables interrupt driven liteuart.

Signed-off-by: Mateusz Sierszulski <msierszulski@antmicro.com>
2024-02-15 09:19:57 +01:00
Bjarki Arge Andreasen
11d95ea456 doc: release notes: Add GNSS to release notes
Add notes covering:
* New GNSS subsystem
* GNSS utilities
* New generic NMEA0183 device driver
* New Quectel LCX6G device driver

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-02-15 09:19:25 +01:00