Lines Matching +full:in +full:- +full:gpios

2 # SPDX-License-Identifier: Apache-2.0
7 In nRF53 family of SoCs, GPIO pins must be explicitly forwarded by
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
17 present in DTS file targeted for the nRF5340 network core, which defines
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
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
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
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.
57 processing devicetree for an application build. However, in order for that
58 to happen, names of the child nodes must be unique in the scope of a single
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
75 from this array, their GPIO flags must be set in the matching
76 node that these GPIOs are forwarded to.