Lines Matching +full:4 +full:- +full:pin
2 # SPDX-License-Identifier: Apache-2.0
5 The nRF pin controller is a singleton node responsible for controlling
6 pin function selection and pin properties. For example, you can use this
7 node to route UART0 RX to pin P0.1 and enable the pull-up resistor on the
8 pin.
17 All device pin configurations should be placed in child nodes of the
20 /* You can put this in places like a board-pinctrl.dtsi file in
33 /* configure P0.3 as UART_RX and P0.4 as UART_CTS */
34 psels = <NRF_PSEL(UART_RX, 0, 3)>, <NRF_PSEL(UART_CTS, 0, 4)>;
35 /* both P0.3 and P0.4 are configured with pull-up */
36 bias-pull-up;
41 The 'uart0_default' child node encodes the pin configurations for a
43 state. You would specify the low-power configuration for the same device
46 As shown, pin configurations are organized in groups within each child node.
47 Each group can specify a list of pin function selections in the 'psels'
48 property. The NRF_PSEL macro is used to specify a pin function selection.
49 If a pin needs to be explicitly disconnected, there is also the
51 Available pin functions can be found in the
52 include/zephyr/dt-bindings/pinctrl/nrf-pinctrl.h header file.
54 A group can also specify shared pin properties common to all the specified
55 pins, such as the 'bias-pull-up' property in group 2. Here is a list of
56 supported standard pin properties:
58 - bias-disable: Disable pull-up/down (default behavior, not required).
59 - bias-pull-up: Enable pull-up resistor.
60 - bias-pull-down: Enable pull-down resistor.
61 - low-power-enable: Configure pin as an input with input buffer
66 To link this pin configuration with a device, use a pinctrl-N property
70 #include "board-pinctrl.dtsi"
73 pinctrl-0 = <&uart0_default>;
74 pinctrl-names = "default";
77 compatible: "nordic,nrf-pinctrl"
81 child-binding:
83 nRF pin controller pin configuration state nodes.
84 child-binding:
86 nRF pin controller pin configuration group.
89 - name: pincfg-node.yaml
90 property-allowlist:
91 - bias-disable
92 - bias-pull-down
93 - bias-pull-up
94 - low-power-enable
103 pin and function. NRF_PSEL_DISCONNECTED is also available to explicitly
104 disconnect a pin.
106 nordic,drive-mode:
110 Pin output drive mode. Available drive modes are pre-defined in
111 nrf-pinctrl.h. Note that extra modes may not be available on certain
113 SoC default, except for the "nordic,nrf-twi" and "nordic,nrf-twim"
120 Invert pin polarity (set the active state to low).