Lines Matching +full:bias +full:- +full:pull +full:- +full:pin +full:- +full:default
3 # Copyright (c) 2021-2022, Gerson Fernando Budke <nandojve@gmail.com>
4 # SPDX-License-Identifier: Apache-2.0
9 The Atmel SAM pin controller is a singleton node responsible for controlling
10 pin function selection and pin properties. For example, you can use this node
11 to route USART0 RX to pin PA10 and enable the pull-up resistor on the pin.
20 All device pin configurations should be placed in child nodes of the 'pinctrl'
23 /** You can put this in places like a <board>-pinctrl.dtsi file in
27 /** include pre-defined combinations for the SoC variant used by the board */
28 #include <dt-bindings/pinctrl/sam4sXc-pinctrl.h>
31 /* configuration for the usart0 "default" state */
42 /* both PA5 and PA7 have pull-up enabled */
43 bias-pull-up;
48 The 'usart0_default' child node encodes the pin configurations for a
49 particular state of a device; in this case, the default (that is, active)
52 As shown, pin configurations are organized in groups within each child node.
53 Each group can specify a list of pin function selections in the 'pinmux'
56 A group can also specify shared pin properties common to all the specified
57 pins, such as the 'bias-pull-up' property in group 2. Here is a list of
58 supported standard pin properties:
60 - bias-pull-up: Enable pull-up resistor.
61 - bias-pull-down: Enable pull-down resistor.
62 - drive-open-drain: Open-drain drive mode.
64 To link pin configurations with a device, use a pinctrl-N property for some
67 #include "board-pinctrl.dtsi"
70 pinctrl-0 = <&usart0_default>;
71 pinctrl-names = "default";
74 compatible: "atmel,sam-pinctrl"
79 "#address-cells":
82 "#size-cells":
86 child-binding:
89 child-binding:
91 The grandchild nodes group pins that share the same pin configuration.
94 - name: pincfg-node.yaml
95 property-allowlist:
96 - bias-pull-up
97 - bias-pull-down
98 - drive-open-drain
106 be defined using pre-defined macros or, alternatively, using the