Renesas RZ/N1 Pin Controller

Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/renesas,rzn1-pinctrl.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Fabrizio Castro <fabrizio.castro.jz@renesas.com>", "Geert Uytterhoeven <geert+renesas@glider.be>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "renesas,r9a06g032-pinctrl"

Item 2

Exact value (const): "renesas,rzn1-pinctrl"

reg — required here #

Array item rules (items) #

Item 1

GPIO Multiplexing Level1 Register Block

Item 2

GPIO Multiplexing Level2 Register Block

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "bus"

The bus clock, sometimes described as pclk, for register accesses.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pinctrl.yaml#

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

At least one of these rules must match (anyOf) #

Rule 1 #

Value type (type): "object"

All of these rules must match (allOf)

Rule 1

Shared schema rule ($ref): pincfg-node.yaml#

Rule 2

Shared schema rule ($ref): pinmux-node.yaml#

A pin multiplexing sub-node describes how to configure a set of (or a single) pin in some desired alternate function mode. A single sub-node may define several pin configurations.

Properties and child nodes (properties)

pinmux — required here

Integer array representing pin number and pin multiplexing configuration. When a pin has to be configured in alternate function mode, use this property to identify the pin by its global index, and provide its alternate function configuration number along with it. When multiple pins are required to be configured as part of the same alternate function they shall be specified as members of the same argument list of a single "pinmux" property. Integers values in the "pinmux" argument list are assembled as: (PIN | MUX_FUNC << 8) where PIN directly corresponds to the pl_gpio pin number and MUX_FUNC is one of the alternate function identifiers defined in: <include/dt-bindings/pinctrl/rzn1-pinctrl.h> These identifiers collapse the IO Multiplex Configuration Level 1 and Level 2 numbers that are detailed in the hardware reference manual into a single number. The identifiers for Level 2 are simply offset by 10. Additional identifiers are provided to specify the MDIO source peripheral.

bias-disable — not listed as required here

true — No constraints added by this property rule.

bias-pull-up — not listed as required here

Pull up the pin with 50 kOhm

bias-pull-down — not listed as required here

Pull down the pin with 50 kOhm

bias-high-impedance — not listed as required here

true — No constraints added by this property rule.

drive-strength — not listed as required here

Allowed values (enum): 4, 6, 8, 12

Required in this object (required): "pinmux"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

Shared schema rule ($ref): #/additionalProperties/anyOf/0

Rule 2 #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

Shared schema rule ($ref): #/additionalProperties/anyOf/0

Examples (examples) #

#include <dt-bindings/clock/r9a06g032-sysctrl.h>
#include <dt-bindings/pinctrl/rzn1-pinctrl.h>
pinctrl: pinctrl@40067000 {
        compatible = "renesas,r9a06g032-pinctrl", "renesas,rzn1-pinctrl";
        reg = <0x40067000 0x1000>, <0x51000000 0x480>;
        clocks = <&sysctrl R9A06G032_HCLK_PINCONFIG>;
        clock-names = "bus";

        /*
         * A serial communication interface with a TX output pin and an RX
         * input pin.
         */
        pins_uart0: pins_uart0 {
                pinmux = <
                        RZN1_PINMUX(103, RZN1_FUNC_UART0_I) /* UART0_TXD */
                        RZN1_PINMUX(104, RZN1_FUNC_UART0_I) /* UART0_RXD */
                >;
        };

        /*
         * Set the pull-up on the RXD pin of the UART.
         */
        pins_uart0_alt: pins_uart0_alt {
                pinmux = <RZN1_PINMUX(103, RZN1_FUNC_UART0_I)>;

                pins_uart6_rx {
                        pinmux = <RZN1_PINMUX(104, RZN1_FUNC_UART0_I)>;
                        bias-pull-up;
                };
        };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 16: RZ/N1D

Line 17: Generic RZ/N1

Edit this page