Skip to content

Commit 35ad653

Browse files
cvinayaknashif
authored andcommitted
samples: Bluetooth: hci_uart/hci_ipc: CI coverage for nRF53+nRF21 FEM
Add CI coverage for nRF5340 plus nRF21540 FEM usage in hci_uart plus hci_ipc samples. The overlay values are inspired from: https://github.com/nrfconnect/sdk-nrf/tree/ 85307a9ca0fb6ba8c61f4bd05b7f866cde42612f/boards/shields/nrf21540ek Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 07f96b8 commit 35ad653

File tree

4 files changed

+78
-0
lines changed

4 files changed

+78
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/ {
2+
nrf_radio_fem: nrf21540_fem {
3+
compatible = "nordic,nrf21540-fem";
4+
tx-en-gpios = <&arduino_header 11 GPIO_ACTIVE_HIGH>; /* D5 */
5+
rx-en-gpios = <&arduino_header 9 GPIO_ACTIVE_HIGH>; /* D3 */
6+
pdn-gpios = <&arduino_header 15 GPIO_ACTIVE_HIGH>; /* D9 */
7+
ant-sel-gpios = <&arduino_header 10 GPIO_ACTIVE_HIGH>; /* D4 */
8+
mode-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */
9+
spi-if = <&nrf_radio_fem_spi>;
10+
supply-voltage-mv = <3000>;
11+
};
12+
};
13+
14+
&spi0 {
15+
/* status = "okay"; */
16+
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
17+
18+
nrf_radio_fem_spi: nrf21540_fem_spi@0 {
19+
compatible = "nordic,nrf21540-fem-spi";
20+
/* status = "okay"; */
21+
reg = <0>;
22+
spi-max-frequency = <8000000>;
23+
};
24+
};
25+
26+
&radio {
27+
fem = <&nrf_radio_fem>;
28+
};

samples/bluetooth/hci_ipc/sample.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,16 @@ tests:
8282
- nrf5340bsim/nrf5340/cpunet
8383
integration_platforms:
8484
- nrf5340dk/nrf5340/cpunet
85+
sample.bluetooth.hci_ipc.iso.fem.bt_ll_sw_split:
86+
harness: bluetooth
87+
tags: bluetooth
88+
extra_args:
89+
- CONF_FILE="nrf5340_cpunet_iso-bt_ll_sw_split.conf"
90+
- DTC_OVERLAY_FILE="./boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay"
91+
platform_allow:
92+
- nrf5340_audio_dk/nrf5340/cpunet
93+
integration_platforms:
94+
- nrf5340_audio_dk/nrf5340/cpunet
8595
sample.bluetooth.hci_ipc.df.bt_ll_sw_split:
8696
harness: bluetooth
8797
tags: bluetooth
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
/ {
4+
gpio_fwd: nrf-gpio-forwarder {
5+
compatible = "nordic,nrf-gpio-forwarder";
6+
status = "okay";
7+
8+
nrf21540-gpio-if {
9+
gpios = <&arduino_header 11 0>, /* tx-en-gpios */
10+
<&arduino_header 9 0>, /* rx-en-gpios */
11+
<&arduino_header 15 0>, /* pdn-gpios */
12+
<&arduino_header 10 0>, /* ant-sel-gpios */
13+
<&arduino_header 8 0>; /* mode-gpios */
14+
};
15+
16+
nrf21540-spi-if {
17+
gpios = <&arduino_header 16 0>, /* cs-gpios */
18+
<&gpio0 8 0>, /* SPIM_SCK */
19+
<&gpio0 10 0>, /* SPIM_MISO */
20+
<&gpio0 9 0>; /* SPIM_MOSI */
21+
};
22+
};
23+
};
24+
25+
&uart0 {
26+
compatible = "nordic,nrf-uarte";
27+
current-speed = <1000000>;
28+
status = "okay";
29+
hw-flow-control;
30+
};

samples/bluetooth/hci_uart/sample.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ tests:
4747
tags:
4848
- uart
4949
- bluetooth
50+
sample.bluetooth.hci_uart.nrf5340_audio_dk_cpuapp.fem:
51+
harness: bluetooth
52+
platform_allow:
53+
- nrf5340_audio_dk/nrf5340/cpuapp
54+
integration_platforms:
55+
- nrf5340_audio_dk/nrf5340/cpuapp
56+
extra_args: DTC_OVERLAY_FILE=./boards/nrf5340_audio_dk_nrf5340_cpuapp_nrf21540_ek.overlay
57+
tags:
58+
- uart
59+
- bluetooth
5060
sample.bluetooth.hci_uart.nrf52833.all:
5161
harness: bluetooth
5262
platform_allow: nrf52833dk/nrf52833

0 commit comments

Comments
 (0)