Browse Source
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
4 changed files with 78 additions and 0 deletions
@ -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>; |
||||||
|
}; |
@ -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; |
||||||
|
}; |
Loading…
Reference in new issue