Commit Graph

93447 Commits

Author SHA1 Message Date
Dominik Ermel 326f080131 xtensa: dc233c: Fix build warning in DTS on leading zeros
Leading zeros removed from unit name.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2024-04-03 20:41:45 -04:00
Flavio Ceolin 6c68d62e48 doc: pm: Update device power management documentation
Update information about device power management.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-04-03 20:41:26 -04:00
Flavio Ceolin 0a44403c46 doc: pm: Change section in device pm
s/System Power Management/System Managed Device Power Management/g

System Power Management is confusing and does not tell
anything about device. Change it for something more explicit.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-04-03 20:41:26 -04:00
Emil Gydesen 4844dabf3a Samples: Bluetooth: Add encrypted broadcast audio source
Add support for supplying a broadcast code to the
broadcast audio sample, which will, if non-empty, encrypt
the broadcast.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-04-03 22:30:57 +01:00
David Brown f7e64c8703 drivers: serial: rpi_pico: Enable uart FIFO
A few lines above this change explicitly enable the UART FIFO.  Then this
line, goes and disables it.  This seems to be from a workaround where the
parity and stop bits are not coming in correctly in the config.  Fixing
that will be another patch.  But, the FIFO should always be enabled.  This
is visible when trying to use bit rates that are reasonably fast.  Even in
IRQ mode, with a sufficient bit rate, bytes are readily dropped.

Tested on a Sparkfun Promicro rp2040 board.

Signed-off-by: David Brown <david.brown@linaro.org>
2024-04-03 15:38:29 -05:00
Konrad Derda d4dc516119 tests: net: mld: fix waiting for MLDv2 report after query
This commit fixes 'test_verify_send_report()' function as it was
not properly waiting for a MLDv2 report after sending a query. The
asserted value was set for the previous report sent after joining a
group.

Signed-off-by: Konrad Derda <konrad.derda@nordicsemi.no>
2024-04-03 15:30:03 -05:00
Konrad Derda 377756e0f9 net: ipv6: mld: fix handling of MLD queries
This commit fixes an issue where due to inverted logic (static function
returned 0 on success but the caller expected true/false) the MLDv2
reports were silently dropped.

Signed-off-by: Konrad Derda <konrad.derda@nordicsemi.no>
2024-04-03 15:30:03 -05:00
Erwan Gouriou 6aa4ade3ad MAINTAINERS: STM32 Platforms: Reflect recent changes
@Desvauxm-st is now retired and @ABOSTM is not working anymore on Zephyr
since some time now. Remove them and add @ajarmouni-st, which has been
contributing for some time now.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-04-03 15:28:35 -05:00
Henrik Brix Andersen 36f4ef70a9 drivers: can: transceiver: gpio: automatically select GPIO
Automatically select CONFIG_GPIO when the GPIO-controlled CAN transceiver
driver is enabled. Update board configurations to benefit from this.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-04-03 21:12:32 +01:00
Steven Chang e44c0987b9 driver: watchdog: prevent floating point usage
Prevent the use of floating point operations

Signed-off-by: Steven Chang <steven@ene.com.tw>
2024-04-03 21:12:17 +01:00
Nithin Ramesh Myliattil 5be02da636 Bluetooth: Audio: Broadcast Assistant: add broadcast src duplicate function
Moved the check of broadcast src duplicate to function while adding source.

Signed-off-by: Nithin Ramesh Myliattil <niym@demant.com>
2024-04-03 21:11:30 +01:00
Fredrik Danebjer bbb87ae0ae Bluetooth: Audio: Broadcast Assistant: Check add_source duplication
Added a check for checking duplication when adding a source in the
broadcast assistant, as per requirement in BAP 6.5.4. It is not
permitted to add a source such that a combination of broadcast_id,
adv_sid and address type would result in same triple of values.
Added a recv_state struct to cache these values when read, and moved
past_avail and srd_ids into this as well.

Signed-off-by: Fredrik Danebjer <frdn@demant.com>
2024-04-03 21:11:30 +01:00
Jate Sujjavanich c50843a98c boards: Add bl654_dvk pa variant
Add pa variant definition to board.yml
Add bl654_dvk_nrf52840_pa files dts, yaml, defconfig
Update doc with information on variant and regulatory information

Signed-off-by: Jate Sujjavanich <jatedev@gmail.com>
2024-04-03 21:11:08 +01:00
Robert Lubos f211cd6345 net: tcp: Deprecate CONFIG_NET_TCP_ACK_TIMEOUT
Deprecate CONFIG_NET_TCP_ACK_TIMEOUT as it is redundant with the
combination of CONFIG_NET_TCP_INIT_RETRANSMISSION_TIMEOUT and
CONFIG_NET_TCP_RETRY_COUNT. The total retransmission timeout (i. e.
waiting for ACK) should depend on the individual retransmission timeout
and retry count, having separate config is simply ambiguous and
confusing for users.

Moreover, the config was currently only used during TCP handshake, and
for that purpose we could use the very same timeout that is used for the
FIN timeout. Therefore, repurpose the fin_timeout_ms to be a generic,
maximum timeout at the TCP stack.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-04-03 15:32:45 -04:00
Carles Cufi 29aaaa2e60 samples: shell: shell_module: Add harness to the Bluetooth config
Add a harness to avoid twister waiting for results on the UART, which
won't happen unless there is a connection established to a remote
Bluetooth device.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2024-04-03 15:32:18 -04:00
Lukasz Mrugala 2c722f97b5 scripts: pylib: twister: Remove unused Twister flags
Deletes 4 Twister flags that were unusable:
* --enable-asserts
* --disable-asserts
* --no-skipped-report
* --error-on-deprecations

Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
2024-04-03 12:24:17 -05:00
David Brown da52c6e3b7 boards: Spelling and grammar fix in openocd comment
This file has been copied a few times.  Clean up the grammar and spelling
in a comment in the file.

Signed-off-by: David Brown <david.brown@linaro.org>
2024-04-03 12:10:06 -05:00
David Brown a747470086 boards: arm: sparkfun_pro_micro_rp2040: Support JTAG
Add SWD debugger support for this board.  Although there is not a debug
header, the SWD pins are accessible and the adaptor is not that difficult
to wire up.  This will allow for debugging beyond just flashing, that the
UF2 programming setup allows for.

Signed-off-by: David Brown <david.brown@linaro.org>
2024-04-03 12:10:06 -05:00
Laurentiu Mihalcea bba8641354 dts: xtensa: nxp_imx8: add ESAI0 node
Add node for NXP's i.MX8QM/i.MX8QXP AUDIO ESAI0 IP.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-04-03 16:18:50 +01:00
Laurentiu Mihalcea bd9b3c67b2 drivers: dai: add driver for NXP's ESAI
This commit introduces a new DAI driver used for NXP's ESAI IP.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-04-03 16:18:50 +01:00
Laurentiu Mihalcea 0c138b7d28 west.yml: update hal_nxp revision
Update hal_nxp reivison to pull in the following patches:

 * mcux: hal_nxp: include HAL ESAI driver if Zephyr ESAI driver
 is enabled

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-04-03 16:18:50 +01:00
Stine Åkredalen 96364d29b7 doc: Bluetooth: Mesh: Clarify AES usage in DFU metadata
Added clarification on AES-CMAC usage in DFU metadata, emphasizing its
sole role as a hashing function for the incoming composition data hash.
Notably, it utilizes a fixed key and is not employed for encryption
purposes.

Signed-off-by: Stine Åkredalen <stine.akredalen@nordicsemi.no>
2024-04-03 15:42:45 +01:00
Daniel Baluta cffea52fa8 boards: nxp: Rename mimxrt685_evk to mimxrt685_evk_mimxrt685s_cm33
In preparation for adding AMP support for i.MX RT6xx family we need
to rename existing cm33 support files to more specific names.

e.g mimxrt685_evk.dts -> mimxrt685_evk_mimxrt685s_cm33.dts

This will allow us to later add support for Cadence DSP found on i.MX
RT6xx series.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2024-04-03 15:41:16 +01:00
Daniel Baluta 68a7057513 soc: nxp: imxrt: Prepare imxrt6xx soc for AMP support
imxrt6xx are dual core devices featuring an ARM Cortex-M33
core and an Cadence Xtensa HIFI4 Audio DSP.

Currently only m33 core is supported. In order to support
the Cadence DSP we need first to do some code-reorganization
for m33.

We start by moving all cm33 related code to its own directory
and introduce the cpuclusters property in soc.yml file.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2024-04-03 15:41:16 +01:00
Jukka Rissanen eff03ca071 net: shell: Add printout when hostname changes
Add hostname changed printout to event monitor. As the name
says, it is generated when the hostname of the device changes.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-04-03 15:40:16 +01:00
Reto Schneider ccc58b8ce5 net: lwm2m: device object: Fix coverage compatibility
Starting with b1d24e425c (net: lwm2m:
device object: optionally store error list in settings), it was no
longer possible to build the code with coverage enabled when the
settings subsystem was disabled.

The build would fail with an error like this:

> subsys/net/lib/lwm2m/lwm2m_obj_device.c:262: undefined reference to
> `settings_name_steq'

This fixes #70923.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-04-03 15:39:49 +01:00
Robert Zieba d012f280c7 gdbstub: Add v-packet handling function
Add `gdb_v_packet` function as a central location to handle processing
of v-packets.

Signed-off-by: Robert Zieba <robertzieba@google.com>
2024-04-03 15:39:28 +01:00
Robert Zieba 43cb0572e9 gdbstub: Add q-packet handling function
Add `gdb_q_packet` function to handle proccessing of query packets. Also
add `gdb_qsupported` function to serve as a single place to process and
respond to `qSupported` packets.

Signed-off-by: Robert Zieba <robertzieba@google.com>
2024-04-03 15:39:28 +01:00
Robert Zieba e410e2b740 gdbstub: Make loop enum public
Make the current gdb loop enum public under the name `gdb_loop_state`.
This will allow for extending the current stub with further
functionality in the future as new features will require control over
the loop state.

Signed-off-by: Robert Zieba <robertzieba@google.com>
2024-04-03 15:39:28 +01:00
Erwan Gouriou fa4ab81f40 drivers: clocks_control: stm32wba: Fix erratum 2.2.4
Cf Errata sheet, 2.2.4: With HSE active, switching the system clock source
from any other source to HSI, spuriously deactivates HSE.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-04-03 15:38:55 +01:00
Erwan Gouriou 930e03fdfd drivers: clock_control: stm32wba: Fix chain loaded applications case
In case of chain loaded application with PLL set as the sysclk source,
directly exit the init function.
This also applies to exit from stop mode and was tested successfully.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-04-03 15:38:55 +01:00
Chris Friedt 3c42daee9c tests: posix: headers: fix undefined ref to zsock_socketpair
Update prj.conf so that

subsys/net/lib/sockets/socketpair.c

is pulled into the build and zsock_socketpair() is
properly defined.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-04-03 07:09:16 -04:00
Damian Krolik 42d928ee93 drivers: ieee802154: fix configuring CSL IE in ACK
The code was assigning a pointer to a scoped buffer to
an object outside that scope. This would cause the driver
would receive garbage instead of a well-formatted IE and
would likely reject the IE. This in turn caused CSL IE
not being included in enhanced ACKs (verified with
wireshark).

Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no>
2024-04-03 13:57:50 +03:00
Steve Boylan 1ceceabad5 dts: bindings: i2c: Correct the I2C reset bit
It was RPI_PICO_RESETS_RESET_I2C0, but should be
RPI_PICO_RESETS_RESET_I2C1.

Fixes: #70959

Signed-off-by: Steve Boylan <stephen.boylan@beechwoods.com>
2024-04-03 11:07:05 +01:00
Benjamin Cabé 8f17c830ed doc: generate sitemap.xml
Generate a sitemap.xml for the documentation.
This aims at helping search engines react faster to the addition/removal
of new pages.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-04-03 12:34:04 +03:00
Patryk Kuniecki d8b368a160 scripts: tests: twister_blackbox: Add test_ignore_platform_key
Add new tests to test_filter.py in blackbox twister testing

Signed-off-by: Patryk Kuniecki <patryk.kuniecki@intel.com>
2024-04-03 10:34:35 +02:00
Fin Maaß 5230b64cf0 random: add sys_rand8/16/64_get()
add sys_rand8_get(), sys_rand16_get() and sys_rand64_get()

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2024-04-03 10:34:26 +02:00
Iuliana Prodan 019b813a71 linker: nxp: add orphan linker section
Add missing linker section to avoid warning
about orphans when building with host compiler.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2024-04-03 10:34:18 +02:00
Benjamin Perseghetti c032c6305d boards: nxp: vmu_rt1170: Fix dts binding issues
Fixs USDHC by setting PWR and CD gpio's correctly.
Adds missing button from the GPS module.

Co-authored-by: Peter van der Perk <peter.vanderperk@nxp.com>
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
2024-04-03 10:34:09 +02:00
Gaetan Perrot aad1f6e47b test: posix: headers: check for pthread_rwlockattr_getpshared()
Check for the existence of
pthread_rwlockattr_getpshared()
and
pthread_rwlockattr_setpshared().

Signed-off-by: Gaetan Perrot <gaetanperrotpro@gmail.com>
2024-04-03 10:38:42 +03:00
Marcin Gasiorek 9c0b8181f3 net: dhcpv6: Add configurable DUID buffer length
According to the `RFC8415` the length of the DUID is at least 1 octet
up to 128 octets. Now a user can choose buffer length without the need
for source code modification.

Signed-off-by: Marcin Gasiorek <marcin.gasiorek@nordicsemi.no>
2024-04-03 10:28:20 +03:00
Lyle Zhu 45ff5afbb7 Bluetooth: Host: Check conn/channel status of L2CAP BR
For BR/EDR L2CAP, if the function bt_l2cap_br_chan_send_cb
instead of bt_l2cap_chan_send is called, the ACL conn and
L2CAP chennel status will not be checked.

Check conn/channel status before sending data in
function bt_l2cap_br_chan_send_cb.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2024-04-03 10:27:53 +03:00
Piotr Pryga 73bdf622f1 samples: bluetooth: hci_ipc: Add nrf54h20 DK board overlay
There are required DTS entries to nable peripherals required
for IPC communication between Radio and APP CPUs.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
2024-04-03 10:27:02 +03:00
Piotr Pryga 6f07cecc95 boards: nrf54h20: Fix storage partitions for setting subsytem
There was missing storage partition that is required for setting
subsytem. Add missing entries to board files.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
2024-04-03 10:27:02 +03:00
Piotr Pryga b0f9391aee board: nrf54h20dk: Add missing default BT related configs
There are default configs that are provided by default for
e.g. nRF5340dk to enable HCI IPC communication type for
application domain and enable BT controller for radio domain.
These configs were missing for nRF54h20 DK.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
2024-04-03 10:27:02 +03:00
Reto Schneider 6ab94f0429 tests: drivers: pwm: Add lpcxpresso55s69 board name
This adds a board name that got missed in commit
8dc3f85622 (hwmv2: Introduce Hardware
model version 2 and convert devices)

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-04-03 09:37:21 +03:00
Jimmy Zheng f80377bd4e soc: andestech: linker.ld: clarify usage of __rom_region_end/size
Clarify usage of __rom_region_end/size in XIP system.
When PMP is enabled, __rom_region_end should be padded to meet the
requirement of PMP entry, and the actual ROM region usage ends at
.last_section instead of __rom_region_end.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2024-04-02 21:04:20 -04:00
Jimmy Zheng ed021551dc soc: andestech: linker.ld: fixed ROM padding issue
Updated ROM region padding to utilize LMA instead of location counter,
because the location counter has been assigned to 'RAM_BASE'.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2024-04-02 21:04:20 -04:00
Jimmy Zheng abffe27edb soc: andestech: pma.c: include soc_v5.h
Add include header for CSR definition.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
2024-04-02 21:04:20 -04:00
Pieter De Gendt b9e4850aa2 boards: arm: mimx8mp_evk: Enable spi support
Set spi as supported to allow loopback testing.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-04-02 21:03:47 -04:00