Skip to content

Commit d8cd8dd

Browse files
cvinayakkartben
authored andcommitted
samples: Bluetooth: bap_broadcast_source nRF5340 audio dk + nRF21540 FEM
Added overlay file to support nRF5340 audio dk + nRF21540 FEM. Build the hci_ipc with corresponding overlay file to use the nRF21540 FEM with the bap_broadcast_source sample on nRF5340 audio kit. Use the below commandline: $ west build -b nrf5340_audio_dk/nrf5340/cpuapp --sysbuild \ samples/bluetooth/bap_broadcast_source \ -DDTC_OVERLAY_FILE= \ boards/nrf5340_audio_dk_nrf5340_cpuapp_nrf21540_ek.overlay \ -Dhci_ipc_DTC_OVERLAY_FILE= \ boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay Related to commit 35ad653 ("samples: Bluetooth: hci_uart/hci_ipc: CI coverage for nRF53+nRF21 FEM"). Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 2933dea commit d8cd8dd

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
#include "../app.overlay"
4+
5+
/ {
6+
gpio_fwd: nrf-gpio-forwarder {
7+
compatible = "nordic,nrf-gpio-forwarder";
8+
status = "okay";
9+
10+
nrf21540-gpio-if {
11+
gpios = <&arduino_header 11 0>, /* tx-en-gpios */
12+
<&arduino_header 9 0>, /* rx-en-gpios */
13+
<&arduino_header 15 0>, /* pdn-gpios */
14+
<&arduino_header 10 0>, /* ant-sel-gpios */
15+
<&arduino_header 8 0>; /* mode-gpios */
16+
};
17+
18+
nrf21540-spi-if {
19+
gpios = <&arduino_header 16 0>, /* cs-gpios */
20+
<&gpio0 8 0>, /* SPIM_SCK */
21+
<&gpio0 10 0>, /* SPIM_MISO */
22+
<&gpio0 9 0>; /* SPIM_MOSI */
23+
};
24+
};
25+
};

samples/bluetooth/bap_broadcast_source/sample.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ tests:
1414
- nrf5340dk/nrf5340/cpuapp
1515
tags: bluetooth
1616
sysbuild: true
17+
sample.bluetooth.bap_broadcast_source.nrf5340_audio_dk_cpuapp.fem:
18+
harness: bluetooth
19+
platform_allow:
20+
- nrf5340_audio_dk/nrf5340/cpuapp
21+
integration_platforms:
22+
- nrf5340_audio_dk/nrf5340/cpuapp
23+
extra_args:
24+
- DTC_OVERLAY_FILE=boards/nrf5340_audio_dk_nrf5340_cpuapp_nrf21540_ek.overlay
25+
- hci_ipc_DTC_OVERLAY_FILE=boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay
26+
tags: bluetooth
27+
sysbuild: true
1728
sample.bluetooth.bap_broadcast_source.bt_ll_sw_split:
1829
harness: bluetooth
1930
platform_allow:

0 commit comments

Comments
 (0)