Renesas RZ/V2M combined Pin and GPIO controller
Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/renesas,rzv2m-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>"
The Renesas RZ/V2M SoC features a combined Pin and GPIO controller. Pin multiplexing and GPIO configuration is performed on a per-pin basis. Each port features up to 16 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 #
Exact value (const): "renesas,r9a09g011-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 RZV2M_GPIO() helper macro in <dt-bindings/pinctrl/rzv2m-pinctrl.h> and the second cell represents consumer flag as mentioned in ../gpio/gpio.txt E.g. "RZV2M_GPIO(8, 1)" for P8_1.
gpio-ranges — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
INEXINT[0..38] corresponding to individual pin inputs.
Maximum number of items (maxItems): 39
clocks — required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
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)
falseNot 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 hereValues are constructed from GPIO port number, pin number, and alternate function configuration number using the RZV2M_PORT_PINMUX() helper macro in <dt-bindings/pinctrl/rzv2m-pinctrl.h>.
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-microamp— not listed as required hereAllowed values (
enum):1600,1800,2000,3200,3800,4000,6400,7800,8000,9000,9600,11000,12000,13000,18000
slew-rate— not listed as required here0 is slow slew rate, 1 is fast slew rate
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.
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.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#
Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "gpio-ranges", "interrupts", "clocks", "power-domains", "resets"
Examples (examples) #
#include <dt-bindings/pinctrl/rzv2m-pinctrl.h>
#include <dt-bindings/clock/r9a09g011-cpg.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
pinctrl: pinctrl@b6250000 {
compatible = "renesas,r9a09g011-pinctrl";
reg = <0xb6250000 0x800>;
gpio-controller;
#gpio-cells = <2>;
gpio-ranges = <&pinctrl 0 0 352>;
interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 76 IRQ_TYPE_L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_HIGH>;
clocks = <&cpg CPG_MOD R9A09G011_PFC_PCLK>;
resets = <&cpg R9A09G011_PFC_PRESETN>;
power-domains = <&cpg>;
i2c2_pins: i2c2 {
pinmux = <RZV2M_PORT_PINMUX(3, 8, 2)>, /* SDA */
<RZV2M_PORT_PINMUX(3, 9, 2)>; /* SCL */
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 22: RZ/V2M
Line 77: Superset of supported values