Lines Matching +full:gpio +full:- +full:controlled
2 # SPDX-License-Identifier: Apache-2.0
7 In nRF53 family of SoCs, GPIO pins must be explicitly forwarded by
9 The purpose of this abstract device is to represent all GPIO pins that the
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 {
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`)
49 Please note that the GPIO flags provided for child nodes of the forwarder
51 GPIO flags must be set in the matching node that these GPIOs are forwarded
52 to. In the above example, the GPIO flags must be set in the nrf21540 node.
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:
70 type: phandle-array
73 Array of GPIOs to be forwarded. Note that GPIO flags provided for
75 from this array, their GPIO flags must be set in the matching