Skip to content

Commit 20f055c

Browse files
ankunsnordicjm
authored andcommitted
shields: nrf21540ek: no more explicit pin-forwarder shield
The nrf21540ek_fwd is no more necessary and deprecated. Build system picks appropriate overlay (being either a pin-forwarder or the main fem overlay) based on content of `boards` directory. User does not need to pass different values for `-DSHIELD` for every core on the SoC. It is handled on the shield level and passing just `-DSHIELD=nrf21540ek` for all cores is enough. Signed-off-by: Andrzej Kuros <[email protected]>
1 parent bc82e29 commit 20f055c

File tree

19 files changed

+106
-57
lines changed

19 files changed

+106
-57
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
/boards/shields/coverage_support/ @nrfconnect/ncs-low-level-test
5858
/boards/shields/nrf2220ek/ @nrfconnect/ncs-radio-sw
5959
/boards/shields/nrf2240ek/ @nrfconnect/ncs-radio-sw
60+
/boards/shields/nrf21540ek/ @nrfconnect/ncs-radio-sw
6061
/boards/shields/pca63566/doc/*.rst @nrfconnect/ncs-doc-leads
6162

6263
# SUIT configuration files

applications/nrf5340_audio/doc/configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ Adding FEM support happens when :ref:`nrf53_audio_app_building`.
8888
You can use one of the following options, depending on how you decide to build the application:
8989

9090
* If you opt for :ref:`nrf53_audio_app_building_script`, add the ``--nrf21540`` to the script's building command.
91-
* If you opt for :ref:`nrf53_audio_app_building_standard`, add the ``-Dnrf5340_audio_SHIELD=nrf21540ek_fwd -Dipc_radio_SHIELD=nrf21540ek`` to the ``west build`` command.
91+
* If you opt for :ref:`nrf53_audio_app_building_standard`, add the ``-Dnrf5340_audio_SHIELD=nrf21540ek -Dipc_radio_SHIELD=nrf21540ek`` to the ``west build`` command.
9292
For example:
9393

9494
.. code-block:: console
9595
96-
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DCONFIG_AUDIO_DEV=1 -Dnrf5340_audio_SHIELD=nrf21540ek_fwd -Dipc_radio_SHIELD=nrf21540ek
96+
west build -b nrf5340_audio_dk/nrf5340/cpuapp --pristine -- -DCONFIG_AUDIO_DEV=1 -Dnrf5340_audio_SHIELD=nrf21540ek -Dipc_radio_SHIELD=nrf21540ek
9797
9898
To set the TX power output, use the ``CONFIG_BT_CTLR_TX_PWR_ANTENNA`` and ``CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB`` Kconfig options in :file:`applications/nrf5340_audio/sysbuild/ipc_radio/prj.conf`.
9999

applications/nrf5340_audio/src/bluetooth/bt_management/controller_config/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ menu "Controller config"
1010
menu "nRF21540"
1111

1212
config NRF_21540_ACTIVE
13-
def_bool $(shields_list_contains,nrf21540ek_fwd)
13+
def_bool $(shields_list_contains,nrf21540ek)
1414
select EXPERIMENTAL
1515
help
1616
The front end module can help boost the TX power as high as 20 dBm.

applications/nrf5340_audio/tools/buildprog/buildprog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __build_cmd_get(core: Core, device: AudioDevice, build: BuildType,
112112
device_flag += " -DCONFIG_NCS_INCLUDE_RPMSG_CHILD_IMAGE=n"
113113

114114
if options.nrf21540:
115-
device_flag += " -Dnrf5340_audio_SHIELD=nrf21540ek_fwd"
115+
device_flag += " -Dnrf5340_audio_SHIELD=nrf21540ek"
116116
device_flag += " -Dipc_radio_SHIELD=nrf21540ek"
117117

118118
if options.custom_bt_name is not None and options.user_bt_name:

applications/nrf_desktop/nRF21540ek_support.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ The command for ``nrf5340dk/nrf5340/cpuapp`` with ``nrf21540ek`` shield would lo
3535

3636
.. code-block:: console
3737
38-
west build -b nrf5340dk/nrf5340/cpuapp -- -DSHIELD=nrf21540ek_fwd -Dipc_radio_SHIELD=nrf21540ek -DCONFIG_CAF_BLE_USE_LLPM=n
38+
west build -b nrf5340dk/nrf5340/cpuapp -- -DSHIELD=nrf21540ek -Dipc_radio_SHIELD=nrf21540ek -DCONFIG_CAF_BLE_USE_LLPM=n
3939
4040
For detailed information about building an application using the nRF21540 EK, see the :ref:`ug_radio_fem_nrf21540ek_programming` section in the Working with RF Front-end modules documentation.

applications/nrf_desktop/sample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ tests:
137137
platform_allow: nrf5340dk/nrf5340/cpuapp
138138
integration_platforms:
139139
- nrf5340dk/nrf5340/cpuapp
140-
extra_args: SHIELD=nrf21540ek_fwd
140+
extra_args: SHIELD=nrf21540ek
141141
ipc_radio_SHIELD=nrf21540ek
142142
extra_configs:
143143
- CONFIG_CAF_BLE_USE_LLPM=n
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* Copyright (c) 2024 Nordic Semiconductor ASA
2+
*
3+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
4+
*/
5+
6+
#include "../common/arduino_compatible.overlay"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* Copyright (c) 2024 Nordic Semiconductor ASA
2+
*
3+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
4+
*/
5+
6+
#include "../common/arduino_compatible.overlay"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* Copyright (c) 2024 Nordic Semiconductor ASA
2+
*
3+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
4+
*/
5+
6+
#include "../common/arduino_compatible_fwd.overlay"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* Copyright (c) 2024 Nordic Semiconductor ASA
2+
*
3+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
4+
*/
5+
6+
#include "../common/arduino_compatible.overlay"

0 commit comments

Comments
 (0)