From 5ed949cfc10ee9ae499b38991ed8e0865962bea5 Mon Sep 17 00:00:00 2001 From: Kamil Gawor Date: Wed, 9 Feb 2022 15:43:50 +0100 Subject: [PATCH] bluetooth: samples: hci_uart: Add nrf5340 antenna description Adds antenna description for the nrf5340dk_nrf5340_cpunet target. It allows to performthe Direct Test Mode with the CTE feature on this target. Signed-off-by: Kamil Gawor --- .../nrf5340dk_nrf5340_cpunet_df.overlay | 33 +++++++++++++++++++ samples/bluetooth/hci_uart/sample.yaml | 15 +++++++++ 2 files changed, 48 insertions(+) create mode 100644 samples/bluetooth/hci_uart/boards/nrf5340dk_nrf5340_cpunet_df.overlay diff --git a/samples/bluetooth/hci_uart/boards/nrf5340dk_nrf5340_cpunet_df.overlay b/samples/bluetooth/hci_uart/boards/nrf5340dk_nrf5340_cpunet_df.overlay new file mode 100644 index 0000000000..fdef6321f7 --- /dev/null +++ b/samples/bluetooth/hci_uart/boards/nrf5340dk_nrf5340_cpunet_df.overlay @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2022 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: Apache-2.0 + */ + + &uart0 { + compatible = "nordic,nrf-uarte"; + current-speed = <1000000>; + status = "okay"; + hw-flow-control; +}; + +&radio { + status = "okay"; + /* This is an example number of antennas that may be available + * on antenna matrix board. + */ + dfe-antenna-num = <10>; + /* This is an example switch pattern that will be used to set an + * antenna for Tx PDU (period before start of Tx CTE). + */ + dfe-pdu-antenna = <0x0>; + + /* These are example GPIO pin numbers that are provided to + * Radio peripheral. The pins will be acquired by Radio to + * drive antenna switching when AoD is enabled. + */ + dfegpio0-gpios = <&gpio0 4 0>; + dfegpio1-gpios = <&gpio0 5 0>; + dfegpio2-gpios = <&gpio0 6 0>; + dfegpio3-gpios = <&gpio0 7 0>; +}; diff --git a/samples/bluetooth/hci_uart/sample.yaml b/samples/bluetooth/hci_uart/sample.yaml index 1b5d7187eb..2477c7452c 100644 --- a/samples/bluetooth/hci_uart/sample.yaml +++ b/samples/bluetooth/hci_uart/sample.yaml @@ -19,6 +19,13 @@ tests: extra_configs: - CONFIG_BT_CTLR_DF=y tags: uart bluetooth + sample.bluetooth.hci_uart.nrf5340_netcore.df: + harness: bluetooth + platform_allow: nrf5340dk_nrf5340_cpunet + extra_args: DTC_OVERLAY_FILE=./boards/nrf5340dk_nrf5340_cpunet_df.overlay + extra_configs: + - CONFIG_BT_CTLR_DF=y + tags: uart bluetooth sample.bluetooth.hci_uart.nrf52833.df.iq_report: harness: bluetooth platform_allow: nrf52833dk_nrf52833 @@ -27,3 +34,11 @@ tests: - CONFIG_BT_CTLR_DF=y - CONFIG_BT_CTLR_DTM_HCI_DF_IQ_REPORT=y tags: uart bluetooth + sample.bluetooth.hci_uart.nrf5340_netcore.df.iq_report: + harness: bluetooth + platform_allow: nrf5340dk_nrf5340_cpunet + extra_args: DTC_OVERLAY_FILE=./boards/nrf5340dk_nrf5340_cpunet_df.overlay + extra_configs: + - CONFIG_BT_CTLR_DF=y + - CONFIG_BT_CTLR_DTM_HCI_DF_IQ_REPORT=y + tags: uart bluetooth