File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed
boards/shields/nrf21540_ek Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff line change 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+ };
You can’t perform that action at this time.
0 commit comments