Lines Matching +full:pin +full:- +full:offset
2 # SPDX-License-Identifier: Apache-2.0
5 The Nuvoton pin controller is a singleton node responsible for controlling
6 pin function selection and pin properties. For example, you can use these
7 nodes to select peripheral pin functions.
9 Here is a list of supported standard pin properties:
10 - bias-pull-down: Enable pull-down resistor.
11 - bias-pull-up: Enable pull-up resistor.
12 - drive-open-drain: Output driver is open-drain.
14 Custom pin properties for npcx series are available also:
15 - pinmux-locked: Lock pinmux configuration for peripheral device
16 - pinmux-gpio: Inverse pinmux back to gpio
17 - psl-in-mode: Select the assertion detection mode of PSL input
18 - psl-in-pol: Select the assertion detection polarity of PSL input
23 #include <nuvoton/npcx/npcx7/npcx7-pinctrl.dtsi>
26 internal 3.3V pull-up if its i2c frequency won't exceed 400kHz.
28 To change a pin's pinctrl default properties, add a reference to the
29 pin in the board's DTS file and set the properties as below:
32 bias-pull-up; /* Enable internal pull-up for i2c0_0 */
33 pinmux-locked; /* Lock pinmuxing */
37 pinctrl-0 = <&i2c0_0_sda_scl_gpb4_b5>;
38 pinctrl-names = "default";
41 compatible: "nuvoton,npcx-pinctrl"
45 child-binding:
47 NPCX pin controller pin configuration nodes
50 - name: pincfg-node.yaml
51 property-allowlist:
52 - bias-pull-down
53 - bias-pull-up
54 - drive-open-drain
60 dev-ctl:
62 description: Configurations of device control such as tri-state, io type and so on.
63 periph-pupd:
66 A map to PUPD_ENn register/bit that enable pull-up/down of NPCX peripheral devices.
67 Please don't overwrite this property in the board-level DT driver.
68 psl-offset:
71 Offset to PSL_CTS register that is used for PSL input's status and detection mode.
72 Please don't overwrite this property in the board-level DT driver.
73 psl-polarity:
77 Please don't overwrite this property in the board-level DT driver.
78 pinmux-locked:
81 pinmux-gpio:
84 psl-in-mode:
88 - "level": Select the detection mode to level detection
89 - "edge": Select the detection mode to edge detection
91 - "level"
92 - "edge"
93 psl-in-pol:
97 - "low-falling": Select the detection polarity to low/falling
98 - "high-rising": Select the detection polarity to high/rising
100 - "low-falling"
101 - "high-rising"