Skip to content

Commit 6a5ae6b

Browse files
Kamil Gawormbolivar-nordic
authored andcommitted
boards: shields: Add nrf21540_ek shield
This commit provides the nRF21540 evaluation kit shield. Signed-off-by: Kamil Gawor <[email protected]>
1 parent a8e579f commit 6a5ae6b

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
# Copyright (c) 2021 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
config SHIELD_NRF21540_EK
8+
def_bool $(shields_list_contains,nrf21540_ek)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* Copyright (c) 2021 Nordic Semiconductor ASA
2+
*
3+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
4+
*/
5+
6+
/ {
7+
nrf_radio_fem: nrf21540_fem {
8+
compatible = "nordic,nrf21540-fem";
9+
tx-en-gpios = <&arduino_header 11 GPIO_ACTIVE_HIGH>; /* D5 */
10+
rx-en-gpios = <&arduino_header 9 GPIO_ACTIVE_HIGH>; /* D3 */
11+
pdn-gpios = <&arduino_header 15 GPIO_ACTIVE_HIGH>; /* D9 */
12+
ant-sel-gpios = <&arduino_header 10 GPIO_ACTIVE_HIGH>; /* D4 */
13+
mode-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */
14+
spi-if = <&nrf_radio_fem_spi>;
15+
};
16+
};
17+
18+
fem_spi: &arduino_spi {
19+
status = "okay";
20+
cs-gpios = <&arduino_header 16 0>; /* D10 */
21+
22+
nrf_radio_fem_spi: nrf21540_fem_spi@0 {
23+
compatible = "nordic,nrf21540-fem-spi";
24+
status = "okay";
25+
reg = <0>;
26+
label = "FEM_SPI_IF";
27+
spi-max-frequency = <8000000>;
28+
};
29+
};

0 commit comments

Comments
 (0)