Lines Matching +full:bias +full:- +full:pull +full:- +full:pin +full:- +full:default

2 # SPDX-License-Identifier: Apache-2.0
5 The Telink B91 pin controller is a singleton node responsible for
6 controlling pin function selection and pin properties. For example, you can
7 use this node to route UART0 TX to pin PB2 and enable the pull-up resistor
8 on the 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
24 /* include pre-defined pins and functions for the SoC used by the board */
25 #include <dt-bindings/pinctrl/b91-pinctrl.h>
28 /* configuration for UART0 TX default state */
33 /* configuration for UART0 RX default state */
40 The 'uart0_tx_pb2_default' child node encodes the pin configurations
41 for a particular state of a device; in this case, the default
42 (that is, active) state. You would specify the low-power configuration for
45 A pin configuration can also specify pin properties such as the
46 'bias-pull-up' property. Here is a list of supported standard pin
49 - bias-disable
50 - bias-pull-down
51 - bias-pull-up
53 To link pin configurations with a device, use a pinctrl-N property for some
56 #include "board-pinctrl.dtsi"
59 pinctrl-0 = <&uart0_tx_pb2_default &uart0_rx_pb3_default>;
60 pinctrl-1 = <&uart0_tx_pb2_sleep &uart0_rx_pb3_sleep>;
61 pinctrl-names = "default", "sleep";
64 compatible: "telink,b91-pinctrl"
72 pad-mul-sel:
76 PinMux pad_mul_sel register value. Pin functions depend on it.
79 Function C of PB2 configs the pin to UART0_TX if pad_mul_sel is set to <1>.
80 But, the same function configs the same pin to DAC_I_DAT2_I if pad_mul_sel is set to <0>.
84 child-binding:
89 - name: pincfg-node.yaml
90 property-allowlist:
91 - bias-disable
92 - bias-pull-down
93 - bias-pull-up
100 Telink B91 pin's configuration (port, pin and function).