154 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/gpio/renesas,rcar-gpio.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Renesas R-Car General-Purpose Input/Output Ports (GPIO)8 9maintainers:10 - Geert Uytterhoeven <geert+renesas@glider.be>11 12properties:13 compatible:14 oneOf:15 - items:16 - enum:17 - renesas,gpio-r8a7778 # R-Car M118 - renesas,gpio-r8a7779 # R-Car H119 - const: renesas,rcar-gen1-gpio # R-Car Gen120 21 - items:22 - enum:23 - renesas,gpio-r8a7742 # RZ/G1H24 - renesas,gpio-r8a7743 # RZ/G1M25 - renesas,gpio-r8a7744 # RZ/G1N26 - renesas,gpio-r8a7745 # RZ/G1E27 - renesas,gpio-r8a77470 # RZ/G1C28 - renesas,gpio-r8a7790 # R-Car H229 - renesas,gpio-r8a7791 # R-Car M2-W30 - renesas,gpio-r8a7792 # R-Car V2H31 - renesas,gpio-r8a7793 # R-Car M2-N32 - renesas,gpio-r8a7794 # R-Car E233 - const: renesas,rcar-gen2-gpio # R-Car Gen2 or RZ/G134 35 - items:36 - enum:37 - renesas,gpio-r8a774a1 # RZ/G2M38 - renesas,gpio-r8a774b1 # RZ/G2N39 - renesas,gpio-r8a774c0 # RZ/G2E40 - renesas,gpio-r8a774e1 # RZ/G2H41 - renesas,gpio-r8a7795 # R-Car H342 - renesas,gpio-r8a7796 # R-Car M3-W43 - renesas,gpio-r8a77961 # R-Car M3-W+44 - renesas,gpio-r8a77965 # R-Car M3-N45 - renesas,gpio-r8a77970 # R-Car V3M46 - renesas,gpio-r8a77980 # R-Car V3H47 - renesas,gpio-r8a77990 # R-Car E348 - renesas,gpio-r8a77995 # R-Car D349 - const: renesas,rcar-gen3-gpio # R-Car Gen3 or RZ/G250 51 - items:52 - enum:53 - renesas,gpio-r8a779a0 # R-Car V3U54 - renesas,gpio-r8a779f0 # R-Car S4-855 - renesas,gpio-r8a779g0 # R-Car V4H56 - renesas,gpio-r8a779h0 # R-Car V4M57 - const: renesas,rcar-gen4-gpio # R-Car Gen458 59 reg:60 maxItems: 161 62 interrupts:63 maxItems: 164 65 clocks:66 maxItems: 167 68 power-domains:69 maxItems: 170 71 resets:72 maxItems: 173 74 gpio-controller: true75 76 '#gpio-cells':77 const: 278 79 interrupt-controller: true80 81 '#interrupt-cells':82 const: 283 84 gpio-ranges:85 maxItems: 186 87 gpio-reserved-ranges:88 minItems: 189 maxItems: 890 91patternProperties:92 "^.*$":93 if:94 type: object95 then:96 properties:97 gpio-hog: true98 gpios: true99 input: true100 output-high: true101 output-low: true102 line-name: true103 104 required:105 - gpio-hog106 - gpios107 108 additionalProperties: false109 110required:111 - compatible112 - reg113 - interrupts114 - gpio-controller115 - '#gpio-cells'116 - gpio-ranges117 - interrupt-controller118 - '#interrupt-cells'119 120if:121 not:122 properties:123 compatible:124 contains:125 enum:126 - renesas,rcar-gen1-gpio127then:128 required:129 - clocks130 - power-domains131 - resets132 133additionalProperties: false134 135examples:136 - |137 #include <dt-bindings/clock/r8a77470-cpg-mssr.h>138 #include <dt-bindings/interrupt-controller/arm-gic.h>139 #include <dt-bindings/power/r8a77470-sysc.h>140 gpio3: gpio@e6053000 {141 compatible = "renesas,gpio-r8a77470", "renesas,rcar-gen2-gpio";142 reg = <0xe6053000 0x50>;143 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;144 clocks = <&cpg CPG_MOD 909>;145 power-domains = <&sysc R8A77470_PD_ALWAYS_ON>;146 resets = <&cpg 909>;147 gpio-controller;148 #gpio-cells = <2>;149 gpio-ranges = <&pfc 0 96 30>;150 gpio-reserved-ranges = <17 10>;151 interrupt-controller;152 #interrupt-cells = <2>;153 };154