Lines Matching +full:control +full:- +full:gpios
2 # SPDX-License-Identifier: Apache-2.0
12 Once the control over selected GPIO pins is forwarded to it, the network
15 Here is an example of how a nrf-gpio-forwarder can be used with a nRF5340
16 combined with a nRF21540 Front-End module. Consider the following node
18 the details of the nRF21540 Front-End module's interface:
21 compatible = "nordic,nrf21540-fem";
22 tx-en-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
23 rx-en-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
24 pdn-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
25 mode-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
28 Since the nRF21540 Front-End module should be controlled by the nRF5340
29 network core, all the GPIO pins used to control it must be forwarded by
31 nrf-gpio-forwarder node defined in DTS file targeted for the nRF5340
34 gpio_fwd: nrf-gpio-forwarder {
35 compatible = "nordic,nrf-gpio-forwarder";
36 nrf21540-gpio-if {
37 gpios = <&gpio0 30 0>, <&gpio1 11 0>, <&gpio1 10 0>, <&gpio1 12 0>;
41 In the above example, the nrf-gpio-forwarder node is configured to forward
42 control over the following GPIO pins to the network core:
44 - P0.30 (matching `tx-en-gpios`)
45 - P1.11 (matching `rx-en-gpios`)
46 - P1.10 (matching `pdn-gpios`)
47 - P1.12 (matching `mode-gpios`)
50 are ignored. In order to configure the GPIOs passed to the forwarder, their
51 GPIO flags must be set in the matching node that these GPIOs are forwarded
53 They are set to 0 in the nrf-gpio-forwarder node as they are ignored anyway.
59 nrf-gpio-forwarder instance.
61 compatible: "nordic,nrf-gpio-forwarder"
65 child-binding:
66 description: Arrays of GPIOs to be forwarded.
69 gpios:
70 type: phandle-array
73 Array of GPIOs to be forwarded. Note that GPIO flags provided for
74 elements of this array are ignored. In order to configure the GPIOs
76 node that these GPIOs are forwarded to.