Skip to content

Commit

Permalink
samples: Bluetooth: hci_uart/hci_ipc: CI coverage for nRF53+nRF21 FEM
Browse files Browse the repository at this point in the history
Add CI coverage for nRF5340 plus nRF21540 FEM usage in
hci_uart plus hci_ipc samples.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
  • Loading branch information
cvinayak committed Sep 17, 2024
1 parent 665e69d commit eb48726
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/ {
nrf_radio_fem: nrf21540_fem {
compatible = "nordic,nrf21540-fem";

Check warning on line 3 in samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay:3 please, no spaces at the start of a line
tx-en-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;

Check warning on line 4 in samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay:4 please, no spaces at the start of a line
rx-en-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;

Check warning on line 5 in samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay:5 please, no spaces at the start of a line
mode-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;

Check warning on line 6 in samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay:6 please, no spaces at the start of a line
pdn-gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;

Check warning on line 7 in samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay:7 please, no spaces at the start of a line
spi-if = <&nrf_radio_fem_spi>;

Check warning on line 8 in samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay:8 please, no spaces at the start of a line
supply-voltage-mv = <1800>;

Check warning on line 9 in samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay:9 please, no spaces at the start of a line
};

Check warning on line 10 in samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

samples/bluetooth/hci_ipc/boards/nrf5340_audio_dk_nrf5340_cpunet_nrf21540_ek.overlay:10 please, no spaces at the start of a line
};

&spi0 {
cs-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;

nrf_radio_fem_spi: nrf21540_fem_spi@0 {
compatible = "nordic,nrf21540-fem-spi";
reg = <0>;
spi-max-frequency = <8000000>;
};
};

&radio {
fem = <&nrf_radio_fem>;
};
11 changes: 11 additions & 0 deletions samples/bluetooth/hci_ipc/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,20 @@ tests:
extra_args: CONF_FILE="nrf5340_cpunet_iso-bt_ll_sw_split.conf"
platform_allow:
- nrf5340dk/nrf5340/cpunet
- nrf5340_audio_dk/nrf5340/cpunet
- 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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
gpio_fwd: nrf-gpio-forwarder {
compatible = "nordic,nrf-gpio-forwarder";
status = "okay";
nrf21540-gpio-if {
gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>, // tx-en-gpios

Check warning on line 8 in samples/bluetooth/hci_uart/boards/nrf5340_audio_dk_nrf5340_cpuapp_nrf21540_ek.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

SPACE_BEFORE_TAB

samples/bluetooth/hci_uart/boards/nrf5340_audio_dk_nrf5340_cpuapp_nrf21540_ek.overlay:8 please, no space before tabs
<&gpio1 6 GPIO_ACTIVE_HIGH>, // rx-en-gpios

Check warning on line 9 in samples/bluetooth/hci_uart/boards/nrf5340_audio_dk_nrf5340_cpuapp_nrf21540_ek.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

SPACE_BEFORE_TAB

samples/bluetooth/hci_uart/boards/nrf5340_audio_dk_nrf5340_cpuapp_nrf21540_ek.overlay:9 please, no space before tabs
<&gpio1 8 GPIO_ACTIVE_HIGH>, // mode-gpios
<&gpio0 29 GPIO_ACTIVE_HIGH>, // pdn-gpios
<&gpio0 21 GPIO_ACTIVE_LOW>; // cs-gpios
};
};
};

&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <1000000>;
status = "okay";
hw-flow-control;
};
19 changes: 19 additions & 0 deletions samples/bluetooth/hci_uart/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,25 @@ tests:
tags:
- uart
- bluetooth
sample.bluetooth.hci_uart.nrf5340dk_cpuapp:
harness: bluetooth
platform_allow:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
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
Expand Down

0 comments on commit eb48726

Please sign in to comment.