Commit graph

70615 commits

Author SHA1 Message Date
Andrei Emeltchenko
2e56f955db trivial: Remove empty files
Remove empty files.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2022-09-30 09:41:55 +00:00
Andries Kruithof
5530ea0bd0 Bluetooth: controller: ensure memory access is aligned
The memory used for Tx buffers and procedure context must
be aligned on a word boundary, otherwise it is possible
to get unaligned memory access

Signed-off-by: Andries Kruithof <andries.kruithof@nordicsemi.no>
2022-09-30 11:12:19 +02:00
Andrei Emeltchenko
1d879b93c5 trivial: tests: Remove empty file
Remove empty file.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2022-09-29 13:41:18 -05:00
Andrzej Głąbek
a30a65215d tests: kernel: timer_behavior: Fix building on targets with small SRAM
In the default configuration of the test, with 10000 timer samples,
the `periodic_data` array is too big to fit in SRAM on many targets.
Use lower counts of samples for those, depending on their SRAM size,
leaving at least 8 kB for other variables, buffers, stacks etc.
Exclude the test for targets with less than 16 kB.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2022-09-29 13:36:00 -05:00
Kumar Gala
72637ac746 MAINTAINERS: DTS maintainer updates
* Split dts infrastructure and bindings
* Add Kumar back as a maintainer for both, and Marti just for
  the infrastructure side.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-09-29 19:22:04 +02:00
Derek Snell
2d8857f278 doc: boards: update JLink details for NXP i.MX RT boards
Improved docs for using JLink debug probes

Signed-off-by: Derek Snell <derek.snell@nxp.com>
2022-09-29 10:52:16 -05:00
Jay Shoen
b4734d5397 kernel: kheap: fix k_heap_aligned_alloc handling of K_FOREVER
k_heap_aligned_alloc was not handling K_FOREVER timeout
correctly due to unsigned return value. Added explicit
K_FOREVER handling of end time.

Fixes #50611.

Signed-off-by: Jay Shoen <jay.shoen@perceive.io>
2022-09-29 10:39:12 -05:00
Aleksander Wasaznik
c90b4a4e52 Bluetooth: Shell: Fix GATT exchange mtu assertion fail
This change fixes a bug where the second use of shell command `gatt
exchange-mtu` would trigger an assertion failure in the stack. The BT
API `bt_gatt_exchange_mtu` asserts `params->func != NULL`.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
2022-09-29 17:34:33 +02:00
Jose Alberto Meza
dafdef83b4 samples: drivers: espi: Re-enable eSPI SAF for MEC152x board
Add missing device tree entry for SAF HW block.
Re-enable driver for MEC152x board.

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
2022-09-29 14:59:32 +00:00
Vinayak Kariappa Chettimada
48c21fab93 Bluetooth: Controller: Fix radio_tmr_start_us to be soft realtime
Fix radio_tmr_start_us to be soft realtime, if the requested
start in microseconds is in the past, setup the next
earliest expiry. This is to prevent radio not being started
and not let the LLL hanging. When setup to receive auxiliary
PDU in LLL scheduling, is_aux_sched is set and if radio does
not start and the window is requested to be pre-empted, then
it is blocked from being preempted due to the is_aux_sched
flag remaining to be set. This stalls the scanning
infinitely until explicit scan disable.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2022-09-29 16:42:36 +02:00
Vinayak Kariappa Chettimada
8b586ee5a4 Bluetooth: Controller: Fix missing is_aux_sched flag being reset
Fix missing is_aux_sched flag being reset before resuming to
scan for new advertising PDU in the same scan window after
having received an earlier primary channel PDU and auxiliary
channel PDU using LLL scheduling.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2022-09-29 16:42:36 +02:00
Vinayak Kariappa Chettimada
0eec434472 Bluetooth: Controller: Fix receiving spurious PDU in active scanning
Fix receiving spurious overlapping ADV_IND and SCAN_IND PDU
when LLL state expects to receive SCAN_RSP PDU. Explicitly
check that these PDUs are not processed when in active
scanning and waiting for SCAN_RSP PDUs.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2022-09-29 16:42:36 +02:00
Vinayak Kariappa Chettimada
1de70b575a Bluetooth: Controller: Fix node rx leak on extended scanning stop
If scan is being disabled, rx could already be enqueued
before coming to ull_scan_aux_rx_flush. Check if node rx is
not the last in the list of received PDUs then add it to the
list, else do not add it to the list to avoid duplicate
report generation, release and probable infinite loop
processing of the list. It is possible that node rx has not
be already added in case of last PDU in the chain, under
this case when scan is being stopped add it to the list
before auxiliary context is flushed.

Add the node rx to aux context list of node rx if not
already added when coming to ull_scan_aux_rx_flush. This is
handling a race condition wherein the last PDU in chain is
received and at the same time scan is being disabled.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2022-09-29 16:42:36 +02:00
Vinayak Kariappa Chettimada
ba6cbc57e1 Bluetooth: Controller: Fix scan aux leak on periodic sync terminate
Fix scan aux context leak on Periodic Sync Terminate. On
Periodic Sync Terminate the `is_stop` flag is set to prevent
the ULL from assigning an aux context to the sync context,
but the acquired aux context was neither assigned to sync
context nor was being released back to the aux context pool.
Fixed by releasing the aux context if not assigned to the
sync context when `is_stop` flag is set.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2022-09-29 16:42:36 +02:00
Hu Zhenyu
1a6098f5db doc: Modify the it8xxx2_evb overview document
1. Remove the obsoleted board
2. Add HW rework of the new it8xxx2_evb
3. Add Wiring of the new it8xxx2_evb
4. Update the Ubuntu flash guide

Signed-off-by: Hu Zhenyu <zhenyu.hu@intel.com>
2022-09-29 14:37:55 +00:00
Dino Li
db50a7aca7 drivers: gpio: it8xxx2: add support for GPIO_DISCONNECTED flag
This change was made to support the flag.
fixes: #50681

Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
2022-09-29 14:33:53 +00:00
Andrzej Puzdrowski
9830c8f405 manifest: mcuboot update
Version witch fixed BOOT_WATCHDOG_FEED default value.

fixes #50754

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2022-09-29 14:27:11 +00:00
Johann Fischer
de700211ff doc: release-notes-3.2: add release notes for MODBUS support
Add release notes for MODBUS support.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2022-09-29 14:18:59 +00:00
Johann Fischer
d11816af87 doc: release-notes-3.2: add release notes for display controller driver
Add release notes for display controller driver.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2022-09-29 14:18:59 +00:00
Johann Fischer
9dceb41894 doc: release-notes-3.2: add release notes for USB support
Add release notes for USB support.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2022-09-29 14:18:59 +00:00
Krzysztof Chruscinski
7dc87c6bf1 doc: releases: Updates for counter, clock and logging
Updated release notes with changes in the counter, clock control and
logging.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
2022-09-29 08:55:03 -05:00
Filip Kokosinski
6b36e2f4d5 doc: release-notes: add RISC-V release notes for v3.2.0
This commit adds RISC-V release notes for Zephyr v3.2.0.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2022-09-29 08:48:50 -05:00
Krzysztof Chruscinski
9a3d762ee2 doc: logging: Update section about log processing
'Controlling the logging' section was not clear enough. Updating it
to clarify that logging processing in deferred mode is by default
handled implicitly.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
2022-09-29 08:26:54 -05:00
Erwan Gouriou
2f1c3784fd boards: nucleo_f103rb: Fix openocd configuration
With latest version of openocd delivered in Zephyr SDK 0.15.0,
a new configuration is required to flash and debug this board:
"reset_config connect_assert_srst" allows to flash the board
The new "init" function allows to run debug.

Fixes #50590 for this specific board

Note that other boards might be also impacted by this new version
of openocd but a revert of zephyrproject-rtos/openocd@98d9f11 allows
to get back to the previous status.
A new Zephyr SDK release (V0.15.1) will be available with a revert of
this commit. Unfortunately this has no impact on nucleo_f103rb. Hence
this change.


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-09-29 12:26:42 +00:00
Andrzej Głąbek
2aa0642cce doc: release-notes-3.2: Add notes for ADC, I2S, PWM, and Nordic HAL
Add entries for ADC, I2S, and PWM drivers and for Nordic HAL.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2022-09-29 11:45:11 +00:00
Stephanos Ioannidis
a041f5ce10 doc: toolchains: Update custom toolchain CMake reference file names
This commit updates the CMake reference file names for custom
toolchains.

The contents of `cmake/generic_toolchain.cmake` and
`cmake/target_toolchain.cmake` were moved
`cmake/modules/FindHostTools.cmake` and
`cmake/modules/FindTargetTools.cmake`, respectively.

Refer to the commit 8d2998d4f9 and
7131d02fa4 for more details.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
cf400c6c63 doc: flash_debug: Update OpenOCD and pyOCD links
This commit updates the outdated links for OpenOCD and pyOCD.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
4cf129e13b doc: peripherals: i2c: Fix incorrect hyperlink references
This commit fixes incorrect external hyperlink references.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
e536541f4f doc: virtualization: Update outdated link to ivshmem
This commit updates the outdated link to the QEMU ivshmem
documentation.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
2352f7470b doc: peripherals: tcpc: Fix incorrect hyperlink references
This commit fixes incorrect external hyperlink references.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
d85900d0f7 doc: west: Update outdated link to SPDX specification
This commit updates the outdated link to the SPDX specification.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
9f5ad65446 doc: tools: coccinelle: Update documentation link
This commit updates the oudated link to the Cocinelle documentation.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
14d3c7338e doc: kconfig: Update outdated links to Kconfig documentation
This commit updates the outdated links to the Kconfig documentation in
the Linux kernel repository with those from the official documentation.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
97efbec18b doc: test: Update link to Sparse documentation
Update the Sparse documentation to refer to the official Sparse
documentation instead of some random link, which no longeer works.

It also fixes an incorrect inline literal usage.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
dc66be5d7d doc: bluetooth: autopts: Fix internal linking
Links/references to the pages internal to the documentation should
use `:ref:`.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
14539ed2e8 doc: documentation: Fix incorrect doc/Makefile reference
This commit fixes the incorrect reference to the `doc/Makefile` and
updates the text to better integrate the reference.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
4811575616 doc: documentation: Fix internal linking description
This commit fixes incorrect depiction of the internal link with custom
text usage.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
a811d3889b doc: documentation: Update outdated file paths
This commit updates the documentation guidelines to reflect the
refactored documentation paths.

It also corrects the unnecessary escapes of the backticks.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
b6d312a7ac boards: arc: Update outdated links
This commit updates the outdated ARC board links.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
06ecea6b8f boards: altera_max10: Update outdated link
This commit updates the outdated Quartus download link.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
9912804d3c boards: esp32: Update outdated links
This commit updates the outdated/redirected links.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
43635f7b62 boards: beaglev_starlight_jh7100: Update outdated links
This commit updates the outdated BeagleV-related links. These pages
seem to be no longer available on the Seeed wiki.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
235342252c boards: mcp2515: Update outdated link
This commit updates the outdated link for the "DFRobot CAN BUS Shield
V2.0 schematic."

The repository containing this file has been renamed to
"DFRobot/DFRobot_MCP2515".

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
2a0e55c9e5 boards: link_board_eth: Update outdated link
This commit updates the outdated link for "link board ETH Website" with
that of the "reel board," which contains the information on the "link
board ETH."

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
31e6351dc3 boards: v2m_musca_s1: Update outdated links
This commit updates all outdated links in the v2m_musca_s1 board
documentation.

Some links updated here were not completely broken (redirects worked),
but they did not redirect to the correct page in the documentation, so
they were also updated to point to the correct page.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
6f5d563699 boards: v2m_musca_b1: Update outdated links
This commit updates all outdated links in the v2m_musca_b1 board
documentation.

Some links updated here were not completely broken (redirects worked),
but they did not redirect to the correct page in the documentation, so
they were also updated to point to the correct page.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
c6ed9d72ef boards: v2m_beetle: Update outdated links
This commit updates the outdated links to the Beetle board and
CMSIS-DAP websites.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
cd887a9a90 boards: stm32f072b_disco: Update outdated link
This commit updates the oudated link to the "SK Pang CAN breakout
board" (with MCP2561FD transceiver) product page.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
fc497336c1 boards: stm32f072_eval: Remove outdated links
The STM32F072-EVAL board is now obsolete and the related documents are
no longer available on the official website.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00
Stephanos Ioannidis
d4633054cb boards: serpente: Update outdated links
The "Serpente" documentation base URL changed.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-09-29 12:20:14 +02:00