Browse Source

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 <vich@nordicsemi.no>
pull/77721/head
Vinayak Kariappa Chettimada 10 months ago committed by Anas Nashif
parent
commit
35ad653038
  1. 28
      samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay
  2. 10
      samples/bluetooth/hci_ipc/sample.yaml
  3. 30
      samples/bluetooth/hci_uart/boards/nrf5340_audio_dk_nrf5340_cpuapp_nrf21540_ek.overlay
  4. 10
      samples/bluetooth/hci_uart/sample.yaml

28
samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay

@ -0,0 +1,28 @@ @@ -0,0 +1,28 @@
/ {
nrf_radio_fem: nrf21540_fem {
compatible = "nordic,nrf21540-fem";
tx-en-gpios = <&arduino_header 11 GPIO_ACTIVE_HIGH>; /* D5 */
rx-en-gpios = <&arduino_header 9 GPIO_ACTIVE_HIGH>; /* D3 */
pdn-gpios = <&arduino_header 15 GPIO_ACTIVE_HIGH>; /* D9 */
ant-sel-gpios = <&arduino_header 10 GPIO_ACTIVE_HIGH>; /* D4 */
mode-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */
spi-if = <&nrf_radio_fem_spi>;
supply-voltage-mv = <3000>;
};
};
&spi0 {
/* status = "okay"; */
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
nrf_radio_fem_spi: nrf21540_fem_spi@0 {
compatible = "nordic,nrf21540-fem-spi";
/* status = "okay"; */
reg = <0>;
spi-max-frequency = <8000000>;
};
};
&radio {
fem = <&nrf_radio_fem>;
};

10
samples/bluetooth/hci_ipc/sample.yaml

@ -82,6 +82,16 @@ tests: @@ -82,6 +82,16 @@ tests:
- nrf5340bsim/nrf5340/cpunet
integration_platforms:
- nrf5340dk/nrf5340/cpunet
sample.bluetooth.hci_ipc.iso.fem.bt_ll_sw_split:
harness: bluetooth
tags: bluetooth
extra_args:
- CONF_FILE="nrf5340_cpunet_iso-bt_ll_sw_split.conf"
- DTC_OVERLAY_FILE="./boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay"
platform_allow:
- nrf5340_audio_dk/nrf5340/cpunet
integration_platforms:
- nrf5340_audio_dk/nrf5340/cpunet
sample.bluetooth.hci_ipc.df.bt_ll_sw_split:
harness: bluetooth
tags: bluetooth

30
samples/bluetooth/hci_uart/boards/nrf5340_audio_dk_nrf5340_cpuapp_nrf21540_ek.overlay

@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
/* SPDX-License-Identifier: Apache-2.0 */
/ {
gpio_fwd: nrf-gpio-forwarder {
compatible = "nordic,nrf-gpio-forwarder";
status = "okay";
nrf21540-gpio-if {
gpios = <&arduino_header 11 0>, /* tx-en-gpios */
<&arduino_header 9 0>, /* rx-en-gpios */
<&arduino_header 15 0>, /* pdn-gpios */
<&arduino_header 10 0>, /* ant-sel-gpios */
<&arduino_header 8 0>; /* mode-gpios */
};
nrf21540-spi-if {
gpios = <&arduino_header 16 0>, /* cs-gpios */
<&gpio0 8 0>, /* SPIM_SCK */
<&gpio0 10 0>, /* SPIM_MISO */
<&gpio0 9 0>; /* SPIM_MOSI */
};
};
};
&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <1000000>;
status = "okay";
hw-flow-control;
};

10
samples/bluetooth/hci_uart/sample.yaml

@ -47,6 +47,16 @@ tests: @@ -47,6 +47,16 @@ tests:
tags:
- uart
- bluetooth
sample.bluetooth.hci_uart.nrf5340_audio_dk_cpuapp.fem:
harness: bluetooth
platform_allow:
- nrf5340_audio_dk/nrf5340/cpuapp
integration_platforms:
- nrf5340_audio_dk/nrf5340/cpuapp
extra_args: DTC_OVERLAY_FILE=./boards/nrf5340_audio_dk_nrf5340_cpuapp_nrf21540_ek.overlay
tags:
- uart
- bluetooth
sample.bluetooth.hci_uart.nrf52833.all:
harness: bluetooth
platform_allow: nrf52833dk/nrf52833

Loading…
Cancel
Save