1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/pinctrl/renesas,rzn1-pinctrl.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Renesas RZ/N1 Pin Controller
10 - Gareth Williams <gareth.williams.jx@renesas.com>
11 - Geert Uytterhoeven <geert+renesas@glider.be>
17 - renesas,r9a06g032-pinctrl # RZ/N1D
18 - renesas,r9a06g033-pinctrl # RZ/N1S
19 - const: renesas,rzn1-pinctrl # Generic RZ/N1
23 - description: GPIO Multiplexing Level1 Register Block
24 - description: GPIO Multiplexing Level2 Register Block
32 The bus clock, sometimes described as pclk, for register accesses.
44 - $ref: pincfg-node.yaml#
45 - $ref: pinmux-node.yaml#
48 A pin multiplexing sub-node describes how to configure a set of (or a
49 single) pin in some desired alternate function mode.
50 A single sub-node may define several pin configurations.
55 Integer array representing pin number and pin multiplexing
57 When a pin has to be configured in alternate function mode, use
58 this property to identify the pin by its global index, and provide
59 its alternate function configuration number along with it.
60 When multiple pins are required to be configured as part of the
61 same alternate function they shall be specified as members of the
62 same argument list of a single "pinmux" property.
63 Integers values in the "pinmux" argument list are assembled as:
65 where PIN directly corresponds to the pl_gpio pin number and
66 MUX_FUNC is one of the alternate function identifiers defined in:
67 <include/dt-bindings/pinctrl/rzn1-pinctrl.h>
68 These identifiers collapse the IO Multiplex Configuration Level 1
69 and Level 2 numbers that are detailed in the hardware reference
70 manual into a single number. The identifiers for Level 2 are simply
71 offset by 10. Additional identifiers are provided to specify the
72 MDIO source peripheral.
77 description: Pull up the pin with 50 kOhm
79 description: Pull down the pin with 50 kOhm
80 bias-high-impedance: true
88 $ref: "#/additionalProperties/anyOf/0"
95 $ref: "#/additionalProperties/anyOf/0"
99 #include <dt-bindings/clock/r9a06g032-sysctrl.h>
100 #include <dt-bindings/pinctrl/rzn1-pinctrl.h>
101 pinctrl: pinctrl@40067000 {
102 compatible = "renesas,r9a06g032-pinctrl", "renesas,rzn1-pinctrl";
103 reg = <0x40067000 0x1000>, <0x51000000 0x480>;
104 clocks = <&sysctrl R9A06G032_HCLK_PINCONFIG>;
108 * A serial communication interface with a TX output pin and an RX
111 pins_uart0: pins_uart0 {
113 RZN1_PINMUX(103, RZN1_FUNC_UART0_I) /* UART0_TXD */
114 RZN1_PINMUX(104, RZN1_FUNC_UART0_I) /* UART0_RXD */
119 * Set the pull-up on the RXD pin of the UART.
121 pins_uart0_alt: pins_uart0_alt {
122 pinmux = <RZN1_PINMUX(103, RZN1_FUNC_UART0_I)>;
125 pinmux = <RZN1_PINMUX(104, RZN1_FUNC_UART0_I)>;