Skip to content

Commit 5ed949c

Browse files
Kamil Gaworcarlescufi
authored andcommitted
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 <[email protected]>
1 parent 2f4843f commit 5ed949c

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright (c) 2022 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&uart0 {
8+
compatible = "nordic,nrf-uarte";
9+
current-speed = <1000000>;
10+
status = "okay";
11+
hw-flow-control;
12+
};
13+
14+
&radio {
15+
status = "okay";
16+
/* This is an example number of antennas that may be available
17+
* on antenna matrix board.
18+
*/
19+
dfe-antenna-num = <10>;
20+
/* This is an example switch pattern that will be used to set an
21+
* antenna for Tx PDU (period before start of Tx CTE).
22+
*/
23+
dfe-pdu-antenna = <0x0>;
24+
25+
/* These are example GPIO pin numbers that are provided to
26+
* Radio peripheral. The pins will be acquired by Radio to
27+
* drive antenna switching when AoD is enabled.
28+
*/
29+
dfegpio0-gpios = <&gpio0 4 0>;
30+
dfegpio1-gpios = <&gpio0 5 0>;
31+
dfegpio2-gpios = <&gpio0 6 0>;
32+
dfegpio3-gpios = <&gpio0 7 0>;
33+
};

samples/bluetooth/hci_uart/sample.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ tests:
1919
extra_configs:
2020
- CONFIG_BT_CTLR_DF=y
2121
tags: uart bluetooth
22+
sample.bluetooth.hci_uart.nrf5340_netcore.df:
23+
harness: bluetooth
24+
platform_allow: nrf5340dk_nrf5340_cpunet
25+
extra_args: DTC_OVERLAY_FILE=./boards/nrf5340dk_nrf5340_cpunet_df.overlay
26+
extra_configs:
27+
- CONFIG_BT_CTLR_DF=y
28+
tags: uart bluetooth
2229
sample.bluetooth.hci_uart.nrf52833.df.iq_report:
2330
harness: bluetooth
2431
platform_allow: nrf52833dk_nrf52833
@@ -27,3 +34,11 @@ tests:
2734
- CONFIG_BT_CTLR_DF=y
2835
- CONFIG_BT_CTLR_DTM_HCI_DF_IQ_REPORT=y
2936
tags: uart bluetooth
37+
sample.bluetooth.hci_uart.nrf5340_netcore.df.iq_report:
38+
harness: bluetooth
39+
platform_allow: nrf5340dk_nrf5340_cpunet
40+
extra_args: DTC_OVERLAY_FILE=./boards/nrf5340dk_nrf5340_cpunet_df.overlay
41+
extra_configs:
42+
- CONFIG_BT_CTLR_DF=y
43+
- CONFIG_BT_CTLR_DTM_HCI_DF_IQ_REPORT=y
44+
tags: uart bluetooth

0 commit comments

Comments
 (0)