Skip to content

Commit a8a573f

Browse files
umapraseedarlubos
authored andcommitted
doc: Doc fixes for the FEM docs
NCSDK-31153 TECHDOC-3263 TECHDOC-3247 Signed-off-by: Uma Praseeda <[email protected]>
1 parent 9fbeaf3 commit a8a573f

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

doc/nrf/app_dev/device_guides/fem/fem_nrf21540_gpio.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ To use nRF21540 in GPIO mode, complete the following steps:
3535
};
3636
};
3737
38+
When you add the above node to the devicetree and build the application, FEM-related Kconfig options are automatically enabled and FEM support is enabled.
39+
Additionally, you can consider setting the following Kconfig options:
40+
41+
* :kconfig:option:`CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB`
42+
* :kconfig:option:`CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTA`
43+
* :kconfig:option:`CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB_POUTB`
44+
* :kconfig:option:`CONFIG_MPSL_FEM_NRF21540_RX_GAIN_DB`
45+
* :kconfig:option:`CONFIG_MPSL_FEM_NRF21540_RUNTIME_PA_GAIN_CONTROL`
46+
3847
#. Optionally replace the node name ``name_of_fem_node``.
3948
#. Replace the pin numbers provided for each of the required properties:
4049

doc/nrf/app_dev/device_guides/fem/fem_nrf21540_gpio_spi.rst

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ To use nRF21540 in GPIO+SPI mode, complete the following steps:
2727
tx-en-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
2828
rx-en-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
2929
pdn-gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
30-
spi-if = <&nrf_radio_fem_spi>
30+
spi-if = <&nrf_radio_fem_spi>;
31+
supply-voltage-mv = <3000>;
3132
};
3233
};
3334
#. Optionally replace the device name ``name_of_fem_node``.
@@ -52,17 +53,17 @@ To use nRF21540 in GPIO+SPI mode, complete the following steps:
5253
&pinctrl {
5354
spi3_default_alt: spi3_default_alt {
5455
group1 {
55-
psels = <NRF_PSEL(SPI_SCK, 1, 15)>,
56-
<NRF_PSEL(SPI_MISO, 1, 14)>,
57-
<NRF_PSEL(SPI_MOSI, 1, 13)>;
56+
psels = <NRF_PSEL(SPIM_SCK, 1, 15)>,
57+
<NRF_PSEL(SPIM_MISO, 1, 14)>,
58+
<NRF_PSEL(SPIM_MOSI, 1, 13)>;
5859
};
5960
};
6061
6162
spi3_sleep_alt: spi3_sleep_alt {
6263
group1 {
63-
psels = <NRF_PSEL(SPI_SCK, 1, 15)>,
64-
<NRF_PSEL(SPI_MISO, 1, 14)>,
65-
<NRF_PSEL(SPI_MOSI, 1, 13)>;
64+
psels = <NRF_PSEL(SPIM_SCK, 1, 15)>,
65+
<NRF_PSEL(SPIM_MISO, 1, 14)>,
66+
<NRF_PSEL(SPIM_MOSI, 1, 13)>;
6667
low-power-enable;
6768
};
6869
};
@@ -85,7 +86,7 @@ To use nRF21540 in GPIO+SPI mode, complete the following steps:
8586
8687
In this example, the nRF21540 is controlled by the ``spi3`` bus.
8788
Replace the SPI bus according to your hardware design, and create alternative entries for SPI3 with different ``pinctrl-N`` and ``pinctrl-names`` properties.
88-
#. On nRF53 devices, the devicetree nodes described above must be added to the network core.
89+
#. On nRF53 devices, the devicetree nodes described above must be added to the network core and ``spi0`` instance of the network core must be used.
8990
For the application core, you must also add a GPIO forwarder node to its devicetree file:
9091

9192
.. code-block:: devicetree
@@ -121,3 +122,4 @@ To use nRF21540 in GPIO+SPI mode, complete the following steps:
121122
.. note::
122123
The nRF21540 GPIO-only mode of operation is selected by default in Kconfig when an nRF21540 node is provided in devicetree, as mentioned in the :ref:`ug_radio_fem_sw_support` section.
123124
To enable the GPIO+SPI mode of operation, you must explicitly set the :kconfig:option:`CONFIG_MPSL_FEM_NRF21540_GPIO_SPI` Kconfig option to ``y``.
125+
On an nRF5340, the :kconfig:option:`CONFIG_MPSL_FEM_NRF21540_GPIO_SPI` Kconfig option must be set to ``y`` for the network core image.

0 commit comments

Comments
 (0)