Renesas RZ/{G2L,V2L} combined Pin and GPIO controller

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

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

Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>", "Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>"

The Renesas SoCs of the RZ/{G2L,V2L} alike series feature a combined Pin and GPIO controller. Pin multiplexing and GPIO configuration is performed on a per-pin basis. Each port features up to 8 pins, each of them configurable for GPIO function (port mode) or in alternate function mode. Up to 8 different alternate function modes exist for each single pin.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r9a07g043-pinctrl", "renesas,r9a07g044-pinctrl", "renesas,r9a08g045-pinctrl", "renesas,r9a09g047-pinctrl", "renesas,r9a09g056-pinctrl", "renesas,r9a09g057-pinctrl"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r9a07g054-pinctrl"

Item 2

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

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

The first cell contains the global GPIO port index, constructed using the RZG2L_GPIO() helper macro in <dt-bindings/pinctrl/rzg2l-pinctrl.h> and the second cell represents consumer flag as mentioned in ../gpio/gpio.txt E.g. "RZG2L_GPIO(39, 1)" for P39_1.

gpio-ranges — required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

The first cell contains the global GPIO port index, constructed using the RZG2L_GPIO() helper macro in <dt-bindings/pinctrl/rzg2l-pinctrl.h> and the second cell is used to specify the flag. E.g. "interrupts = <RZG2L_GPIO(43, 0) IRQ_TYPE_EDGE_FALLING>;" if P43_0 is being used as an interrupt.

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

GPIO_RSTN signal

Item 2

GPIO_PORT_RESETN signal

Item 3

GPIO_SPARE_RESETN signal

Rule 2

Array item rules (items)

Item 1

PFC main reset

Item 2

Reset for the control register related to WDTUDFCA and WDTUDFFCM pins

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"

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

false

Not allowed by this rule.

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#

Pin controller client devices use pin configuration subnodes (children and grandchildren) for desired pin configuration. Client device subnodes use below standard properties.

Properties and child nodes (properties)

pinmux — not listed as required here

Values are constructed from GPIO port number, pin number, and alternate function configuration number using the RZG2L_PORT_PINMUX() helper macro in <dt-bindings/pinctrl/rzg2l-pinctrl.h>.

pins — not listed as required here

true — No constraints added by this property rule.

drive-strength — not listed as required here

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

drive-strength-microamp — not listed as required here

Allowed values (enum): 1900, 2200, 4000, 4400, 4500, 4700, 5200, 5300, 5700, 5800, 6000, 6050, 6100, 6550, 6800, 7000, 8000, 9000, 10000

output-impedance-ohms — not listed as required here

Allowed values (enum): 33, 50, 66, 100

power-source — not listed as required here

I/O voltage in millivolt.

Allowed values (enum): 1800, 2500, 3300

slew-rate — not listed as required here

true — No constraints added by this property rule.

gpio-hog — not listed as required here

true — No constraints added by this property rule.

gpios — not listed as required here

true — No constraints added by this property rule.

input — not listed as required here

true — No constraints added by this property rule.

input-enable — not listed as required here

true — No constraints added by this property rule.

output-enable — not listed as required here

true — No constraints added by this property rule.

output-high — not listed as required here

true — No constraints added by this property rule.

output-low — not listed as required here

true — No constraints added by this property rule.

line-name — not listed as required here

true — No constraints added by this property rule.

bias-disable — not listed as required here

true — No constraints added by this property rule.

bias-pull-down — not listed as required here

true — No constraints added by this property rule.

bias-pull-up — not listed as required here

true — No constraints added by this property rule.

input-schmitt-enable — not listed as required here

true — No constraints added by this property rule.

input-schmitt-disable — not listed as required here

true — No constraints added by this property rule.

drive-open-drain — not listed as required here

true — No constraints added by this property rule.

drive-push-pull — not listed as required here

true — No constraints added by this property rule.

renesas,output-impedance — not listed as required here

Output impedance for pins on the RZ/{G3E,V2H(P)} SoC. The value provided by this property corresponds to register bit values that can be set in the PFC_IOLH_mn register, which adjusts the drive strength value and is pin-dependent.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3

Rule 2 #

Value type (type): "object"

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

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

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,r9a09g047-pinctrl", "renesas,r9a09g056-pinctrl", "renesas,r9a09g057-pinctrl"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

Maximum number of items (maxItems): 2

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

Minimum number of items (minItems): 3

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "gpio-ranges", "interrupt-controller", "#interrupt-cells", "clocks", "power-domains", "resets"

Examples (examples) #

#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
#include <dt-bindings/clock/r9a07g044-cpg.h>

pinctrl: pinctrl@11030000 {
        compatible = "renesas,r9a07g044-pinctrl";
        reg = <0x11030000 0x10000>;

        gpio-controller;
        #gpio-cells = <2>;
        gpio-ranges = <&pinctrl 0 0 392>;
        interrupt-controller;
        #interrupt-cells = <2>;
        clocks = <&cpg CPG_MOD R9A07G044_GPIO_HCLK>;
        resets = <&cpg R9A07G044_GPIO_RSTN>,
                 <&cpg R9A07G044_GPIO_PORT_RESETN>,
                 <&cpg R9A07G044_GPIO_SPARE_RESETN>;
        power-domains = <&cpg>;

        scif0_pins: serial0 {
                pinmux = <RZG2L_PORT_PINMUX(38, 0, 1)>, /* Tx */
                         <RZG2L_PORT_PINMUX(38, 1, 1)>; /* Rx */
        };

        i2c1_pins: i2c1 {
                pins = "RIIC1_SDA", "RIIC1_SCL";
                input-enable;
        };

        sd1-pwr-en-hog {
                gpio-hog;
                gpios = <RZG2L_GPIO(39, 2) 0>;
                output-high;
                line-name = "sd1_pwr_en";
        };

        sdhi1_pins: sd1 {
                sd1_mux {
                        pinmux = <RZG2L_PORT_PINMUX(19, 0, 1)>, /* CD */
                                 <RZG2L_PORT_PINMUX(19, 1, 1)>; /* WP */
                        power-source = <3300>;
                };

                sd1_data {
                        pins = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3";
                        power-source = <3300>;
                };

                sd1_ctrl {
                        pins = "SD1_CLK", "SD1_CMD";
                        power-source = <3300>;
                };
        };
};

Source notes #

Annotations retained from the schema source

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

Line 26: RZ/G2UL{Type-1,Type-2} and RZ/Five

Line 27: RZ/G2{L,LC}

Line 28: RZ/G3S

Line 29: RZ/G3E

Line 30: RZ/V2N

Line 31: RZ/V2H(P)

Line 35: RZ/V2L

Line 36: RZ/G2{L,LC} fallback for RZ/V2L

Edit this page