Renesas R-Car General-Purpose Input/Output Ports (GPIO)

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

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

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

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,gpio-r8a7778", "renesas,gpio-r8a7779"

Item 2

Exact value (const): "renesas,rcar-gen1-gpio"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,gpio-r8a7742", "renesas,gpio-r8a7743", "renesas,gpio-r8a7744", "renesas,gpio-r8a7745", "renesas,gpio-r8a77470", "renesas,gpio-r8a7790", "renesas,gpio-r8a7791", "renesas,gpio-r8a7792", "renesas,gpio-r8a7793", "renesas,gpio-r8a7794"

Item 2

Exact value (const): "renesas,rcar-gen2-gpio"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "renesas,gpio-r8a774a1", "renesas,gpio-r8a774b1", "renesas,gpio-r8a774c0", "renesas,gpio-r8a774e1", "renesas,gpio-r8a7795", "renesas,gpio-r8a7796", "renesas,gpio-r8a77961", "renesas,gpio-r8a77965", "renesas,gpio-r8a77970", "renesas,gpio-r8a77980", "renesas,gpio-r8a77990", "renesas,gpio-r8a77995"

Item 2

Exact value (const): "renesas,rcar-gen3-gpio"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "renesas,gpio-r8a779a0", "renesas,gpio-r8a779f0", "renesas,gpio-r8a779g0", "renesas,gpio-r8a779h0"

Item 2

Exact value (const): "renesas,rcar-gen4-gpio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as 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

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

gpio-ranges — required here #

Maximum number of items (maxItems): 1

gpio-reserved-ranges — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

Properties matching a name pattern (patternProperties) #

^.*$ — name matches this regular expression #

Condition (if) #

Value type (type): "object"

When the condition matches (then) #

Properties and child nodes (properties)

gpio-hog — required here

true — No constraints added by this property rule.

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

line-name — not listed as required here

true — No constraints added by this property rule.

Required in this object (required): "gpio-hog", "gpios"

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "gpio-controller", "#gpio-cells", "gpio-ranges", "interrupt-controller", "#interrupt-cells"

Condition (if) #

This rule must not match (not) #

Properties and child nodes (properties) #

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,rcar-gen1-gpio"

When the condition matches (then) #

Required in this object (required): "clocks", "power-domains", "resets"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a77470-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a77470-sysc.h>
gpio3: gpio@e6053000 {
    compatible = "renesas,gpio-r8a77470", "renesas,rcar-gen2-gpio";
    reg = <0xe6053000 0x50>;
    interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&cpg CPG_MOD 909>;
    power-domains = <&sysc R8A77470_PD_ALWAYS_ON>;
    resets = <&cpg 909>;
    gpio-controller;
    #gpio-cells = <2>;
    gpio-ranges = <&pfc 0 96 30>;
    gpio-reserved-ranges = <17 10>;
    interrupt-controller;
    #interrupt-cells = <2>;
 };

Source notes #

Annotations retained from the schema source

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

Line 17: R-Car M1

Line 18: R-Car H1

Line 19: R-Car Gen1

Line 23: RZ/G1H

Line 24: RZ/G1M

Line 25: RZ/G1N

Line 26: RZ/G1E

Line 27: RZ/G1C

Line 28: R-Car H2

Line 29: R-Car M2-W

Line 30: R-Car V2H

Line 31: R-Car M2-N

Line 32: R-Car E2

Line 33: R-Car Gen2 or RZ/G1

Line 37: RZ/G2M

Line 38: RZ/G2N

Line 39: RZ/G2E

Line 40: RZ/G2H

Line 41: R-Car H3

Line 42: R-Car M3-W

Line 43: R-Car M3-W+

Line 44: R-Car M3-N

Line 45: R-Car V3M

Line 46: R-Car V3H

Line 47: R-Car E3

Line 48: R-Car D3

Line 49: R-Car Gen3 or RZ/G2

Line 53: R-Car V3U

Line 54: R-Car S4-8

Line 55: R-Car V4H

Line 56: R-Car V4M

Line 57: R-Car Gen4

Edit this page