Commit graph

92034 commits

Author SHA1 Message Date
Kyle Kotowick 0d53af4aa1 drivers: dacx0508: fix for multiple DACs of the same type
Presently, this driver cannot handle multiple
DACs of the same type without throwing a
compile error due to a missing line ending.
This PR fixes that issue by adding the missing
line ending.

Signed-off-by: Kyle Kotowick <kotowick@invictonlabs.com>
2024-03-11 17:22:56 +01:00
Maciej Baczmanski ba2a8bd795 manifest: openthread: Regular openthread upmerge
Adds `CONFIG_OPENTHREAD_SRP_ADV_PROXY` option

Signed-off-by: Maciej Baczmanski <maciej.baczmanski@nordicsemi.no>
2024-03-11 15:21:46 +00:00
Jukka Rissanen b65b6a8208 posix: socket: Add missing recvmsg()
The sys/socket.h was missing recently added recvmsg() call
to net/socket.h

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-11 15:17:11 +00:00
Ali Hozhabri 569f8f0a43 boards: Add support for BlueNRG-based boards to run raw mode samples
Provide support for BlueNRG-based boards to run samples required raw mode.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
2024-03-11 15:13:48 +00:00
Ali Hozhabri bcf2ee9d49 drivers: bluetooth: hci: Special handling of hci_reset only for ST SPI v1
Exclude devices based on ST SPI protocol v2 from special handling of
hci_reset opcode as it is redundant.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
2024-03-11 15:13:48 +00:00
Ali Hozhabri 9d8d20febb drivers: bluetooth: hci: Support raw mode in ST HCI SPI BT driver
Add raw mode in ST HCI SPI BT driver to support host-less configuration.

Remove compilation dependency for BT_QUIRK_NO_RESET as it applies to all
configurations.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
2024-03-11 15:13:48 +00:00
Ali Hozhabri 35ae3e5353 drivers: bluetooth: hci: Move bt_spi_send_aci_config to setup function
Move bt_spi_send_aci_config to setup function.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
2024-03-11 15:13:48 +00:00
Andy Ross 19ad64b98b tests/kernel/sched/deadline: Add a SCHED_SCALABLE=y case for coverage
It turns out the deadline scheduling and the scalable scheduling
backend didn't work right together (for almost six years!) because we
never had coverage of that combination.  Add it explicitly given the
known issue in #69935.

We might want to consider adding a whole CI target with SCALABLE=y,
which we've done for other common tunables to get coverage.

Signed-off-by: Andy Ross <andyross@google.com>
2024-03-11 15:42:26 +01:00
Andy Ross f2280d119d kernel/sched: Don't touch deadline values on queued threads
k_thread_deadline_set() would modify the thread's deadline and then,
if it was in the run queue, requeue it to put it at the right spot.
Sounds right, right?

It's wrong.  The deadline field is part of the thread priority, so
this results in a mis-ordered list.  For dlist backends, that's benign
as the removal works anyway, but if CONFIG_SCHED_SCALABLE=y we've now
broken the sorting order of an in-tree item and corrupted the rbtree!

Fixes #69935

Signed-off-by: Andy Ross <andyross@google.com>
2024-03-11 15:42:26 +01:00
Bartosz Sokolski 238b9be5ee drivers: i2s_nrfx: add support for divider setup on NRF54L15
Add support for NRF54L15 divider setting which is same as on NRF5340

Signed-off-by: Bartosz Sokolski <bartosz.sokolski@nordicsemi.no>
2024-03-11 14:42:18 +00:00
Pieter De Gendt b6e65dd57a cmake: sca: codechecker: Allow processing results even on errors
The analyze step for codechecker can have errors. These are printed out
to the console, allow to keep processing results for other succeeded
analysis.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-03-11 10:39:48 -04:00
Jukka Rissanen 66eb627b02 tests: net: ieee802154: Invalid number of params in debug print
The debug print did not had print modifier for errno which
causes compiler error.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-11 10:39:05 -04:00
Robert Zieba dca836b9b1 gdbstub: Add custom backend choice
By default `GDBSTUB_SERIAL_BACKEND` will be selected as it's the only
option here. This can cause problems for code that wants to provide its
own custom backend. Add a choice for a custom backend.

Signed-off-by: Robert Zieba <robertzieba@google.com>
2024-03-11 10:38:18 -04:00
Daniel DeGrasse e61e6a4092 samples: drivers: ipm: ipm_mcux: fix build command documentation
Documentation for IPM MCUX sample did not provide correct command for
building sample. To resolve this, add the "--sysbuild" argument to build
command documentation

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-11 10:25:09 -04:00
Emil Gydesen 479fd88df4 MAINTAINERS: Remove szymon-czapracki as LE audio collaborator
Szymon is not active in the LE Audio development.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-03-11 10:20:31 -04:00
Jukka Rissanen 53a6a2b6bb MAINTAINERS: Fix BSD socket maintainer list
The BSD sockets are definitely maintained so fix the status.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-11 10:19:10 -04:00
Ryan McClelland f41c900b03 drivers: regulator: fix shell help typo
Fix typo with adget shell help

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2024-03-11 10:18:18 -04:00
Alberto Escolar Piedras f9d5e8458c drivers/counter nrfx: Fix with DT instance not matching device instance
478530ec0aa1fe5f481786c25d50f7a081b22208 introduced a bug
where if the DT index while iterating its DT structure
initialization does not match the actual peripheral instance,
or if the device instance string is not just a simple integer,
but a more complex string like "00", or "02", either
the wrong peripheral address would be used, or the file
would failt to compile.

Let's fix this by reverting that change, and instead, for
simulation converting the hardcoded DT/real HW address
to the valid addr for simulation on the fly.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-11 14:09:16 +00:00
Alberto Escolar Piedras f6435e012e manifest: Update nrf hw models to latest
* Update the HW models module to
3925b7030736f25f45ceedc3621219125a2d4685

Including the following:
* 3925b70: Add new API to convert real peripheral addr to simulated one
* 319e3eb: nhw_convert_periph_base_addr: Fix include for nrf5340

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-11 14:09:16 +00:00
Joakim Andersson 43bce7e125 tracing: sysview: Remove redundant depends on
Remove redundant depends on statements for SEGGER_SYSTEMVIEW.
This is already inside an if SEGGER_SYSTEMVIEW so depends on are
already added.

Signed-off-by: Joakim Andersson <joakim.andersson@heimdallpower.com>
2024-03-11 09:09:07 -05:00
IBEN EL HADJ MESSAOUD Marwa 302da95b30 tests: drivers: i2c: i2c_target_api: add nucleo_f401re
Adds i2c3 on the dts of nucleo_f401re.
Adds necessary overlay and nucleo_f401re in i2c_target_api test case
to enable the board.

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
2024-03-11 09:07:45 -05:00
Gustavo Silva 1686ae763d boards: st: nucleo_h745zi_q: enable USB
Add USB OTG FS node to the devicetree of Cortex-M7 core.

Signed-off-by: Gustavo Silva <gustavograzs@gmail.com>
2024-03-11 09:05:47 -05:00
Dominik Ermel 1ec7116042 mcumgr/img_mgmt: Fix CONFIG_MCUBOOT_BOOTLOADER_NO_DOWNGRADE
Usage of the Kconfig, in code, has been missing CONFIG_,
so selected or not it did nothing.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2024-03-11 09:05:03 -05:00
Michele Sardo f62815c022 boards: arm: sensortile_box_pro: init USB console only if present.
Avoid conflict with applications which doesn’t require a console.

Signed-off-by: Michele Sardo <msmttchr@gmail.com>
2024-03-11 14:43:03 +01:00
Francois Ramu 23750ffd90 dts: arm: stm32h7 MPU attribute for the external Memory
Define the MPU attribute to be ATTR_MPU_EXTMEM for the
external region (qspi- or octo-spi NOR flash)
starting at 0x90000000 of the stm32h7 serie.
A XiP region should be Included inside with attribute
ATTR_MPU_IO, to access the external memory in XIP.
The stm32h7a/h7b serie as another external area at 0x70000000.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-03-11 14:41:08 +01:00
Dominik Ermel a454bb9abc tests/storage/stream_flash: Fix the test_stream_flash_erase_page
Fix for test that was failing due to incorrectly testing of
stream_flash_erase_page.
The stream_flash_erase_page would never be able to erase a page
it has been requested to erase.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2024-03-11 14:26:34 +01:00
Guennadi Liakhovetski 0a6e90b3b8 xtensa: make assembly-called functions static
z_mp_entry() and power_gate_exit() are only called from assembly code
in the same file, where they're defined. Make them "static" and add
an attribute to let the compiler know, that they aren't unused.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2024-03-11 14:26:06 +01:00
Gaetan Perrot 45f907b9fd posix: Implement test for getmsg and getpmsg
Add tests for `getmsg()` and `getpmsg()`

signed-off-by: Gaetan Perrot <gaetanperrotpro@gmail.com>
2024-03-11 14:25:26 +01:00
Gaetan Perrot dfefac8208 doc: posix: mark getmsg and getpmsg as supported
`getmsg()` and `getpmsg()`  are now implemented, mark it so.
There are place holder so will fail with ENOSYS.

signed-off-by: Gaetan Perrot <gaetanperrotpro@gmail.com>
2024-03-11 14:25:26 +01:00
Gaetan Perrot 6badcad883 posix: Implement getmsg and getpmsg
`getmsg()` and `getpmsg()` are required
as part of _XOPEN_STREAMS Option Group.

signed-off-by: Gaetan Perrot <gaetanperrotpro@gmail.com>
2024-03-11 14:25:26 +01:00
Nithin Ramesh Myliattil 6ce38c1aa7 bluetooth: id: fix adv sets with same id use different RPA
The fix is to check if any of the adv set's rpa expired
callback returns false, then all adv sets continues with
the old RPA.

Note: Fix is applicable only to adv sets which shares the
same id.

Signed-off-by: Nithin Ramesh Myliattil <niym@demant.com>
2024-03-11 14:24:41 +01:00
Georgij Cernysiov 0418179b12 dts: stm32h723.dtsi: fix timers23 address format
Fixes: simple-bus unit address format error,
expected "4000e000".

Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
2024-03-11 14:23:25 +01:00
cyliang tw 47ed29bf49 drivers: flash: support for Nuvoton numaker series RMC
Add Nuvoton numaker series flash memory controller(RMC) with erase,
 read & write features of soc-flash.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2024-03-11 14:22:55 +01:00
cyliang tw e22958ceaf soc: nuvoton: numaker: add support for m2l31x series
Add initial support for nuvoton numaker m2l31x SoC series
including basic init.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2024-03-11 14:22:55 +01:00
Alexandre Poizat 0195f774ba drivers: adc: stm32: disable ADC before writing oversampling bits for g0
Added the STM32G0X SOC series to the list of SOC that need to disable the
ADC while setting the oversampling bits to prevent writing over the
CKMODE bits.

Signed-off-by: Alexandre Poizat <apoizat@kalrayinc.com>
2024-03-11 14:21:13 +01:00
Henrik Brix Andersen 6fa13e20e3 drivers: can: shell: properly sort mode table entries
Properly sort the entries in the can_mode_t translation table.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-11 14:20:50 +01:00
Henrik Brix Andersen 75c9f0fb0e tests: drivers: can: shell: skip dtiming test if CAN FD is not enabled
Skip the "test_can_dtiming" test case if CONFIG_CAN_FD_MODE is not enabled,
not the "test_can_timing_missing_value" test case.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-11 14:20:20 +01:00
Daniel Leung 3a1784432b arch: arm64: correct a comment on CONFIG_ARM64_STACK_PROTECTION
There is a #endif comment which was incorrectly marked with
CONFIG_HW_STACK_PROTECTION instead of
CONFIG_ARM64_STACK_PROTECTION, which is used at #if.
So update it.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-03-11 08:16:06 -04:00
Gerard Marull-Paretas 69586d16c2 boards: nordic: nrf54h20pdk: add debugging support using J-Link
cpuapp/cpurad can be debugged using the J-Link runner.

Note:
This feature is still experimental and has known issues. For example,
setting a breakpoint to main requires to patch init.c with a loop
polling a variable so that we stop there until unset from GDB.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-11 13:00:07 +01:00
Jamie McCrae cba1e34ef0 drivers: clock_control: Fix npcx leakage
Fixes an issue with Kconfig for this leaking into all devices where
it should not be

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-11 07:57:49 -04:00
Jamie McCrae b680a6ec72 scripts: snippets: Fix path output on windows
Fixes an issue with paths being output in windows-style with back
slashes, this causes issues for certain escape sequences when
cmake interprets them. Replace these paths with posix paths so
that they are not treated as possible escape sequences.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-11 07:57:14 -04:00
Florian La Roche 28107ae8ce logging: fix typo in include file log_msg.h
fix typo in include file log_msg.h

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
2024-03-11 07:56:52 -04:00
Aleksandr Khromykh aa87ed5d8a Bluetooth: Mesh: make models metadata const
Commit adds const qualifier to models metadata.
Specification claims: Composition Metadata Page 0
shall not change during a term of a node on the network.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2024-03-11 09:26:12 +01:00
Jukka Rissanen 71fd9b2e07 posix: syslog: Fix uninitialized variable error
Seen this in compiler

lib/posix/options/syslog.c: In function 'setlogmask':
lib/posix/options/syslog.c:66:16: error: 'oldpri' may be used uninitialized
   66 |         return oldpri;
      |                ^~~~~~
lib/posix/options/syslog.c:59:13: note: 'oldpri' was declared here
   59 |         int oldpri;
      |             ^~~~~~
lib/posix/options/syslog.c: In function 'vsyslog':
lib/posix/options/syslog.c:83:33: error: 'mask' may be used uninitialized
   83 |         if ((BIT(level) & mask) == 0) {
      |             ~~~~~~~~~~~~~~~~~~~~^~~~
lib/posix/options/syslog.c:71:17: note: 'mask' was declared here
   71 |         uint8_t mask;
      |                 ^~~~

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-10 07:44:03 -04:00
Emil Gydesen 826ac0755b bluetooth: audio: shell: Improve indentation when printing codecs
Codecs can be printed at different levels:
level 0: Generic and unicast
level 1: subgroup codec configs
level 2: BIS codec configs

This commit ensures that the indentation level
is correctly increase based on where the codec configuration
data is printed.

This also updates the documentation for the BAP shell.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-03-09 14:10:17 -06:00
Emil Gydesen f7cbc9b943 Bluetooth: Audio: Shell: Add human-readable printing of codec metadata
print_codec_cfg and print_codec_cap has been modified to print the
codec metadata in a more human-readable way, so it is easier to read.

This also adds the (final) human readable support when
parsing and printing BASEs.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-03-09 14:10:17 -06:00
Emil Gydesen dd5925301e Bluetooth: Audio: Shell: Add human-readable printing of codec configs
print_codec_cfg has been modified to print the codec configs in a more
human-readable way, so it is easier to read.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-03-09 14:10:17 -06:00
Emil Gydesen 675c8e86a4 Bluetooth: Audio: Shell: Add human-readable printing of remote caps
print_codec_cap has been modified to print the remote caps in a more
human-readable way, so it is easier to read and understand the remote
server's capabilities.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-03-09 14:10:17 -06:00
Emil Gydesen c1272195f0 Bluetooth: BAP: Shell: Modify bcast sink streams to use shell_stream
Modify the broadcast_sink_streams to be an array of shell_stream
instead of bt_bap_stream, so that it can be used in a similar way
as the rest of the streams.

To help the transition, a new helper function,
bap_stream_from_shell_stream, was added.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-03-09 14:09:49 -06:00
Emil Gydesen 2d11fbe532 Bluetooth: BAP: BA: Add additional PAST log in past_available
Add additional logging in past_available to easily see the PAST
support of the broadcast assistant and scan delegator devices.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-03-09 14:09:00 -06:00