Renesas Pin Function Controller (GPIO and Pin Mux/Config)

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

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

Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>"

The Pin Function Controller (PFC) is a Pin Mux/Config controller. On SH/R-Mobile SoCs it also acts as a GPIO controller.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "renesas,pfc-emev2", "renesas,pfc-r8a73a4", "renesas,pfc-r8a7740", "renesas,pfc-r8a7742", "renesas,pfc-r8a7743", "renesas,pfc-r8a7744", "renesas,pfc-r8a7745", "renesas,pfc-r8a77470", "renesas,pfc-r8a774a1", "renesas,pfc-r8a774a3", "renesas,pfc-r8a774b1", "renesas,pfc-r8a774c0", "renesas,pfc-r8a774e1", "renesas,pfc-r8a7778", "renesas,pfc-r8a7779", "renesas,pfc-r8a7790", "renesas,pfc-r8a7791", "renesas,pfc-r8a7792", "renesas,pfc-r8a7793", "renesas,pfc-r8a7794", "renesas,pfc-r8a7795", "renesas,pfc-r8a7796", "renesas,pfc-r8a77961", "renesas,pfc-r8a77965", "renesas,pfc-r8a77970", "renesas,pfc-r8a77980", "renesas,pfc-r8a77990", "renesas,pfc-r8a77995", "renesas,pfc-r8a779a0", "renesas,pfc-r8a779f0", "renesas,pfc-r8a779g0", "renesas,pfc-r8a779h0", "renesas,pfc-sh73a0"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 10

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — not listed as required here #

Exact value (const): 2

gpio-ranges — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

interrupts-extended — not listed as required here #

Minimum number of items (minItems): 32

Maximum number of items (maxItems): 64

Specify the interrupts associated with external IRQ pins on SoCs where the PFC acts as a GPIO controller. It must contain one interrupt per external IRQ, sorted by external IRQ number.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

All of these rules must match (allOf) #

Rule 1 #

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

Required in this object (required): "compatible", "reg"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "renesas,pfc-r8a73a4", "renesas,pfc-r8a7740", "renesas,pfc-sh73a0"

When the condition matches (then) #

Required in this object (required): "interrupts-extended", "gpio-controller", "#gpio-cells", "gpio-ranges", "power-domains"

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#

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)

function — not listed as required here

true — No constraints added by this property rule.

groups — not listed as required here

true — No constraints added by this property rule.

pins — 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.

drive-strength — not listed as required here

Allowed values (enum): 3, 6, 9, 12, 15, 18, 21, 24

power-source — not listed as required here

Allowed values (enum): 1800, 3300

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.

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.

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

false

Not allowed by this rule.

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) #

pfc: pinctrl@e6050000 {
        compatible = "renesas,pfc-r8a7740";
        reg = <0xe6050000 0x8000>,
              <0xe605800c 0x20>;
        gpio-controller;
        #gpio-cells = <2>;
        gpio-ranges = <&pfc 0 0 212>;
        interrupts-extended =
            <&irqpin0 0 0>, <&irqpin0 1 0>, <&irqpin0 2 0>, <&irqpin0 3 0>,
            <&irqpin0 4 0>, <&irqpin0 5 0>, <&irqpin0 6 0>, <&irqpin0 7 0>,
            <&irqpin1 0 0>, <&irqpin1 1 0>, <&irqpin1 2 0>, <&irqpin1 3 0>,
            <&irqpin1 4 0>, <&irqpin1 5 0>, <&irqpin1 6 0>, <&irqpin1 7 0>,
            <&irqpin2 0 0>, <&irqpin2 1 0>, <&irqpin2 2 0>, <&irqpin2 3 0>,
            <&irqpin2 4 0>, <&irqpin2 5 0>, <&irqpin2 6 0>, <&irqpin2 7 0>,
            <&irqpin3 0 0>, <&irqpin3 1 0>, <&irqpin3 2 0>, <&irqpin3 3 0>,
            <&irqpin3 4 0>, <&irqpin3 5 0>, <&irqpin3 6 0>, <&irqpin3 7 0>;
        power-domains = <&pd_c5>;

        lcd0-mux-hog {
                /* DBGMD/LCDC0/FSIA MUX */
                gpio-hog;
                gpios = <176 0>;
                output-high;
        };
};
pinctrl@e6060000 {
        compatible = "renesas,pfc-r8a7795";
        reg = <0xe6060000 0x50c>;

        avb_pins: avb {
                mux {
                        groups = "avb_link", "avb_mdio", "avb_mii";
                        function = "avb";
                };

                pins_mdio {
                        groups = "avb_mdio";
                        drive-strength = <24>;
                };

                pins_mii_tx {
                        pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC",
                               "PIN_AVB_TD0", "PIN_AVB_TD1", "PIN_AVB_TD2",
                               "PIN_AVB_TD3";
                        drive-strength = <12>;
                };
        };

        keys_pins: keys {
                pins = "GP_5_17", "GP_5_20", "GP_5_22", "GP_2_1";
                bias-pull-up;
        };

        sdhi0_pins: sd0 {
                groups = "sdhi0_data4", "sdhi0_ctrl";
                function = "sdhi0";
                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 19: EMMA Mobile EV2

Line 20: R-Mobile APE6

Line 21: R-Mobile A1

Line 22: RZ/G1H

Line 23: RZ/G1M

Line 24: RZ/G1N

Line 25: RZ/G1E

Line 26: RZ/G1C

Line 27: RZ/G2M

Line 28: RZ/G2M v3.0

Line 29: RZ/G2N

Line 30: RZ/G2E

Line 31: RZ/G2H

Line 32: R-Car M1

Line 33: R-Car H1

Line 34: R-Car H2

Line 35: R-Car M2-W

Line 36: R-Car V2H

Line 37: R-Car M2-N

Line 38: R-Car E2

Line 39: R-Car H3

Line 40: R-Car M3-W

Line 41: R-Car M3-W+

Line 42: R-Car M3-N

Line 43: R-Car V3M

Line 44: R-Car V3H

Line 45: R-Car E3

Line 46: R-Car D3

Line 47: R-Car V3U

Line 48: R-Car S4-8

Line 49: R-Car V4H

Line 50: R-Car V4M

Line 51: SH-Mobile AG5

Line 119: Superset of supported values

Edit this page