You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/nrf/app_dev/device_guides/fem/fem_nrf21540_gpio.rst
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,15 @@ To use nRF21540 in GPIO mode, complete the following steps:
35
35
};
36
36
};
37
37
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:
Copy file name to clipboardExpand all lines: doc/nrf/app_dev/device_guides/fem/fem_nrf21540_gpio_spi.rst
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,8 @@ To use nRF21540 in GPIO+SPI mode, complete the following steps:
27
27
tx-en-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
28
28
rx-en-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
29
29
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>;
31
32
};
32
33
};
33
34
#. Optionally replace the device name ``name_of_fem_node``.
@@ -52,17 +53,17 @@ To use nRF21540 in GPIO+SPI mode, complete the following steps:
52
53
&pinctrl {
53
54
spi3_default_alt: spi3_default_alt {
54
55
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)>;
58
59
};
59
60
};
60
61
61
62
spi3_sleep_alt: spi3_sleep_alt {
62
63
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)>;
66
67
low-power-enable;
67
68
};
68
69
};
@@ -85,7 +86,7 @@ To use nRF21540 in GPIO+SPI mode, complete the following steps:
85
86
86
87
In this example, the nRF21540 is controlled by the ``spi3`` bus.
87
88
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.
89
90
For the application core, you must also add a GPIO forwarder node to its devicetree file:
90
91
91
92
.. code-block:: devicetree
@@ -121,3 +122,4 @@ To use nRF21540 in GPIO+SPI mode, complete the following steps:
121
122
.. note::
122
123
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.
123
124
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