Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nrf fromtree] Bluetooth: Add support for Path Loss Monitoring feature #1768

Open
wants to merge 290 commits into
base: main
Choose a base branch
from

Conversation

sean-madigan
Copy link
Contributor

@sean-madigan sean-madigan commented Jun 4, 2024

This commit adds host support for the Path Loss Monitoring
feature see Bluetooth Core specification, Version 5.4,
Vol 6, Part B, Section 4.6.32.

Limited logic is required, just adding a wrapper around the
HCI command and callback for HCI event.

Add new zone - BT_CONN_LE_PATH_LOSS_ZONE_UNAVAILABLE, to
convert 0xFF path loss to a useful zone.

Add new Kconfigs and functionality to the bt shell.

Signed-off-by: Sean Madigan sean.madigan@nordicsemi.no
(cherry picked from commit 0b327db)
Signed-off-by: Sean Madigan sean.madigan@nordicsemi.no

@sean-madigan sean-madigan force-pushed the add_plm_support_host branch from 98862f2 to 5aa389b Compare June 12, 2024 15:18
@sean-madigan sean-madigan changed the title [nrf fromlist] Bluetooth: Add support for Path Loss Monitoring feature [nrf fromtree] Bluetooth: Add support for Path Loss Monitoring feature Jun 12, 2024
ajayparida and others added 13 commits July 1, 2024 10:00
Typo: "RTS threashold" changed to "RTS threshold".

Signed-off-by: Ajay Parida <ajay.parida@nordicsemi.no>
(cherry picked from commit e493d8c)
(cherry picked from commit f740d18)
…t case

For default case it should print the option character provided by user.
Extra shell_help removed as it's being called in the caller function.

Signed-off-by: Ajay Parida <ajay.parida@nordicsemi.no>
(cherry picked from commit 91054be)
(cherry picked from commit b7b96e7)
…Idle=0

When RxOnWhenIdle is set to False, turn the radio off
if no operation is ongoing in order to save power.

Upstream PR: zephyrproject-rtos/zephyr#73471

Signed-off-by: Eduardo Montoya <eduardo.montoya@nordicsemi.no>
(cherry picked from commit 6c602a1)
Changes twister tests and nrf samples from using legacy adv to ext adv
since this is the default for Mesh. Legacy adv is still tested in bsim.

Removes redundant test configuration testing ext adv.

Removes redundant config for ext_adv in `multi_ext_adv.conf`.

Signed-off-by: Håvard Reierstad <haavard.reierstad@nordicsemi.no>
Upstream PR: zephyrproject-rtos/zephyr#73318
(cherry picked from commit 96fa153)
…ution on nrf54h20

Add overlay file for nrf54h20.
Align code and DTS between spi_error_cases and spi_controller_peripheral.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
(cherry picked from commit 74378f3)
(cherry picked from commit c7a01cf)
Add possibility to test all four SPI modes (CPOL, CPHA).
Add possibility to test different bitrates.
Add tests that checks handling of zero length buffers on master.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
(cherry picked from commit b82946f)
(cherry picked from commit 730be85)
…I test

Rename SPI test to spi_controller_peripheral.
Remove iclusive language from that test.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
(cherry picked from commit 98d0fe4)
(cherry picked from commit d0f6309)
When channel range is configured in scan params, get the
channel count from `chan_idx` instead of taking a difference
of start and end of the channel range. The `difference` method
fails in case of 5GHz band since channels may not be consecutive
numbers.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
(cherry picked from commit 9e38bcc)
(cherry picked from commit ccd3d27)
…nrf54h20

Add nrf54h20dk to platform allow list.
Overlay for tht target was already added.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
(cherry picked from commit 89489d6)
(cherry picked from commit 76587a4)
…args

README for this sample had references to the initial sample name/target.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
(cherry picked from commit 598ab6b)
(cherry picked from commit baf552c)
Clock control for MAX32690

Co-authored-by: Okan Sahin <okan.sahin@analog.com>
Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
(cherry picked from commit 45df896)
(cherry picked from commit 3bb917d)
Adds 8bit support in SAADC hal.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
(cherry picked from commit 64de50f)
(cherry picked from commit d28f5a6)
Define HFXO (High Frequency Crystal Oscillator). This clock is managed
by system controller, from an application point of view it is a fixed
clock.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
(cherry picked from commit b88a1f7)
(cherry picked from commit f3b3230)
@anangl anangl requested review from de-nordic, nordic-krch and a team as code owners July 3, 2024 09:06
tejlmand added 2 commits July 3, 2024 12:08
Since the introduction of zephyr_file() then the minimum required CMake
version has become 3.20.
Update zephyr_file() to use cmake_path insteasd of set().
This allows us to normalize the path and thereby also remove duplicates
in the list as paths are normalized.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
(cherry picked from commit 8b3d4c6)
Fixes: #73066

Introduce sysbuild_root CMake module similar to the Zephyr root CMake
module. The sysbuild_root CMake module works similar to existing root
module, but with the difference that root paths are adjusted relative to
APP_DIR which is the main image, instead of relative to sysbuild.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
(cherry picked from commit 24acc7d)
@sean-madigan sean-madigan force-pushed the add_plm_support_host branch from 5aa389b to f9493c5 Compare July 4, 2024 15:09
adamkondraciuk and others added 13 commits July 5, 2024 14:23
Add functions for local domain suspend to RAM. Add matching resume
procedure. Add pm_s2ram function for determining source of reset.
Add preserving NVIC and MPU state in retained RAM when CPU is powered off
during S2RAM procedure.

Upstream PR: zephyrproject-rtos/zephyr#73095

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
… cores

Currently function `z_nrf_grtc_wakeup_prepare()` should be available
only for the GRTC manager (`CONFIG_NRF_GRTC_START_SYSCOUNTER` is active).

Upstream PR: zephyrproject-rtos/zephyr#73095

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
Fix typo in `PM_S2RAM_CUSTOM_MARKING` description.

Upstream PR: zephyrproject-rtos/zephyr#73095

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
…vice

Expands driver to cover nRF54L15 features like AIN as GPIO configuration,
new reference voltage, different set of supported gain options.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
(cherry picked from commit 5f1fdc4)
…vice

Expands driver to cover nRF54H20 features like 8bit sample width.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
(cherry picked from commit 13196ec)
Adds full description of the adc node and support for memory regions.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
(cherry picked from commit 15fa37d)
Adds configuration to play with nRF54H20 PDK board.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
(cherry picked from commit 3c4ea76)
Adds configuration for making tests work.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
(cherry picked from commit ba30517)
Enables adc node to make it usable in tests/examples.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
(cherry picked from commit a04b2ad)
Add support for gains: 1/2, 1/3, 2/5, 1/4.

Upstream PR: zephyrproject-rtos/zephyr#74929

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
…rted peripherals

ADC driver was aligned to nrf54h20 target.
Enable ADC Twister tests on that platform.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
(cherry picked from commit a3e1e39)
…m_allow

Enable test execution on nrf54h20dk.
Overlay file already exists.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
(cherry picked from commit cc9bd6d)
…tion on nrf54h20

Add overlay file for nrf54h20 cpuapp target.
Add nrf54h20 target to platform_allow.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
(cherry picked from commit 48fc687)
@Thalley Thalley removed their request for review July 8, 2024 07:49
@sean-madigan sean-madigan force-pushed the add_plm_support_host branch from f9493c5 to f54d5f4 Compare July 9, 2024 08:24
Frodevan and others added 4 commits July 9, 2024 15:32
This change removes the BT_LE_PER_ADV_OPT_USE_TX_POWER option for
extended advertisement in BLE Audio PTS tests.

The Broadcaster setup options was hardcoded to include the
BT_LE_PER_ADV_OPT_USE_TX_POWER option. This causes incompabilities
for any controller not support it, and since the option is not
required for the audio tests it should not be used here.

Upstream PR: zephyrproject-rtos/zephyr#73361

signed-off-by: Frode van der Meeren <frode.vandermeeren@nordicsemi.no>
…on Subrating

Add Kconfigs to enable experimental subrating HCI commands.

Signed-off-by: Timothy Keys <timothy.keys@nordicsemi.no>
(cherry picked from commit 570c86d)

Signed-off-by: Timothy Keys <timothy.keys@nordicsemi.no>
Expand testing for QDEC at nrf platforms.
It uses general sensor API,
however there are also nrf driver specific assumptions.

Upstream PR: zephyrproject-rtos/zephyr#74677

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
This commit adds host support for the Path Loss Monitoring
feature see Bluetooth Core specification, Version 5.4,
Vol 6, Part B, Section 4.6.32.

Limited logic is required, just adding a wrapper around the
HCI command and callback for HCI event.

Add new zone - BT_CONN_LE_PATH_LOSS_ZONE_UNAVAILABLE, to
convert 0xFF path loss to a useful zone.

Add new Kconfigs and functionality to the bt shell.

Signed-off-by: Sean Madigan <sean.madigan@nordicsemi.no>
(cherry picked from commit 0b327db)
Signed-off-by: Sean Madigan <sean.madigan@nordicsemi.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.