Skip to content

Commit 4b680ec

Browse files
ppryga-nordicmbolivar-nordic
authored andcommitted
samples: bluetooth: df: rx: Add child img conf for nRF5340 target builds
Add configuration of child image for builds targeted for nRF5340 SOC. The child image is hci_rpmsg. Besides usual Kconfig overlay there is also a DTS overlay required for Radio peripheral configuration. Signed-off-by: Piotr Pryga <[email protected]>
1 parent e091bc6 commit 4b680ec

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#
2+
# Copyright (c) 2021 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# Required to enable BT_BUF_CMD_TX_SIZE for LE Set Extended Advertising Data command
8+
CONFIG_BT_EXT_ADV=y
9+
10+
# Required to enable BT_PER_ADV_SYNC_MAX
11+
CONFIG_BT_PER_ADV_SYNC=y
12+
CONFIG_BT_OBSERVER=y
13+
14+
CONFIG_BT_CTLR=y
15+
CONFIG_BT_LL_SW_SPLIT=y
16+
17+
CONFIG_BT_CTLR_ADV_EXT=y
18+
CONFIG_BT_CTLR_SYNC_PERIODIC=y
19+
20+
# Enable Direction Finding Feature including AoA and AoD
21+
CONFIG_BT_CTLR_DF=y
22+
CONFIG_BT_CTLR_DF_ANT_SWITCH_TX=n
23+
24+
# Disable Direction Finding TX mode
25+
CONFIG_BT_CTLR_DF_ADV_CTE_TX=n
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) 2021 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
&radio {
8+
status = "okay";
9+
/* This is a number of antennas that are available on antenna matrix
10+
* designed by Nordic. For more information see README.rst.
11+
*/
12+
dfe-antenna-num = <12>;
13+
/* This is a setting that enables antenna 12 (in antenna matrix designed
14+
* by Nordic) for Rx PDU. For more information see README.rst.
15+
*/
16+
dfe-pdu-antenna = <0x0>;
17+
18+
/* These are GPIO pin numbers that are provided to
19+
* Radio peripheral. The pins will be acquired by Radio to
20+
* drive antenna switching when AoA is enabled.
21+
* Pin numbers are selected to drive switches on antenna matrix
22+
* desinged by Nordic. For more information see README.rst.
23+
*/
24+
dfegpio0-gpios = <&gpio0 4 0>;
25+
dfegpio1-gpios = <&gpio0 5 0>;
26+
dfegpio2-gpios = <&gpio0 6 0>;
27+
dfegpio3-gpios = <&gpio0 7 0>;
28+
};

0 commit comments

Comments
 (0)