Lines Matching +full:nrf21540 +full:- +full:gpio +full:- +full:if
2 # SPDX-License-Identifier: Apache-2.0
6 This is a representation of the nRF21540 Radio Front-End module.
8 See the "nordic,nrf21540-fem-spi" binding to configure the SPI
11 the FEM and SPI configurations using the spi-if property.
13 Here is an example nRF21540 configuration with a SPI interface
17 compatible = "nordic,nrf-spim";
19 cs-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
22 my_spi_if: nrf21540-spi@0 {
23 compatible = "nordic,nrf21540-fem-spi";
25 spi-max-frequency = <8000000>;
29 nrf_radio_fem: nrf21540 {
30 compatible = "nordic,nrf21540-fem";
31 tx-en-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
32 rx-en-gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
33 spi-if = <&my_spi_if>;
34 pdn-gpios = <...>;
35 ant-sel-gpios = <...>;
36 mode-gpios = <...>;
37 /* ... other nRF21540 properties go here ... */
44 In the above example, the nRF21540 is configured for use with:
46 - TX_EN on P0.2 (from 'tx-en-gpios')
47 - RX_EN on P0.5 (from 'rx-en-gpios')
48 - SPI communication via SPIM0 (the bus, or parent node, of
50 - CSN on P1.3 (from index 0 in the bus node's 'cs-gpios' property)
53 (nRF21540 MISO, MOSI, and SCK pins) within the SPI bus node
58 Configure any other nRF21540 pins as needed using 'pdn-gpios',
59 'ant-sel-gpios', and 'mode-gpios' properties. If unsure about the
60 format, use 'tx-en-gpios' as an example.
63 the nRF21540 via the 'fem' property in the 'radio' node.
65 compatible: "nordic,nrf21540-fem"
70 tx-en-gpios:
71 type: phandle-array
73 GPIO of the SOC controlling TX_EN pin of the nRF21540
74 rx-en-gpios:
75 type: phandle-array
77 GPIO of the SOC controlling RX_EN pin of the nRF21540
78 pdn-gpios:
79 type: phandle-array
81 GPIO of the SOC controlling PDN pin of the nRF21540
82 ant-sel-gpios:
83 type: phandle-array
85 GPIO of the SOC controlling ANT-SEL pin of the nRF21540
86 mode-gpios:
87 type: phandle-array
89 GPIO of the SOC controlling MODE pin of the nRF21540
90 spi-if:
93 Reference to the nordic,nrf21540-fem-spi SPI bus interface.
96 tx-en-settle-time-us:
102 Default value is based on Table 6 of the nRF21540 Product
105 rx-en-settle-time-us:
111 Default value is based on Table 6 of the nRF21540 Product
114 pdn-settle-time-us:
120 Default value is based on Table 6 of the nRF21540 Product
123 trx-hold-time-us:
127 Power-off time in microseconds when changing from RX or TX to PG.
129 Default value is based on Table 6 of the nRF21540 Product
132 supply-voltage-mv:
135 nRF21540 supply voltage in mV.
137 This is used if compensation for nRF21540 supply voltage is supported