~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/gpio/renesas,rcar-gpio.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Renesas R-Car General-Purpose Input/Output Ports (GPIO)
  8 
  9 maintainers:
 10   - Geert Uytterhoeven <geert+renesas@glider.be>
 11 
 12 properties:
 13   compatible:
 14     oneOf:
 15       - items:
 16           - enum:
 17               - renesas,gpio-r8a7778      # R-Car M1
 18               - renesas,gpio-r8a7779      # R-Car H1
 19           - const: renesas,rcar-gen1-gpio # R-Car Gen1
 20 
 21       - items:
 22           - enum:
 23               - renesas,gpio-r8a7742      # RZ/G1H
 24               - renesas,gpio-r8a7743      # RZ/G1M
 25               - renesas,gpio-r8a7744      # RZ/G1N
 26               - renesas,gpio-r8a7745      # RZ/G1E
 27               - renesas,gpio-r8a77470     # RZ/G1C
 28               - renesas,gpio-r8a7790      # R-Car H2
 29               - renesas,gpio-r8a7791      # R-Car M2-W
 30               - renesas,gpio-r8a7792      # R-Car V2H
 31               - renesas,gpio-r8a7793      # R-Car M2-N
 32               - renesas,gpio-r8a7794      # R-Car E2
 33           - const: renesas,rcar-gen2-gpio # R-Car Gen2 or RZ/G1
 34 
 35       - items:
 36           - enum:
 37               - renesas,gpio-r8a774a1     # RZ/G2M
 38               - renesas,gpio-r8a774b1     # RZ/G2N
 39               - renesas,gpio-r8a774c0     # RZ/G2E
 40               - renesas,gpio-r8a774e1     # RZ/G2H
 41               - renesas,gpio-r8a7795      # R-Car H3
 42               - renesas,gpio-r8a7796      # R-Car M3-W
 43               - renesas,gpio-r8a77961     # R-Car M3-W+
 44               - renesas,gpio-r8a77965     # R-Car M3-N
 45               - renesas,gpio-r8a77970     # R-Car V3M
 46               - renesas,gpio-r8a77980     # R-Car V3H
 47               - renesas,gpio-r8a77990     # R-Car E3
 48               - renesas,gpio-r8a77995     # R-Car D3
 49           - const: renesas,rcar-gen3-gpio # R-Car Gen3 or RZ/G2
 50 
 51       - items:
 52           - enum:
 53               - renesas,gpio-r8a779a0     # R-Car V3U
 54               - renesas,gpio-r8a779f0     # R-Car S4-8
 55               - renesas,gpio-r8a779g0     # R-Car V4H
 56               - renesas,gpio-r8a779h0     # R-Car V4M
 57           - const: renesas,rcar-gen4-gpio # R-Car Gen4
 58 
 59   reg:
 60     maxItems: 1
 61 
 62   interrupts:
 63     maxItems: 1
 64 
 65   clocks:
 66     maxItems: 1
 67 
 68   power-domains:
 69     maxItems: 1
 70 
 71   resets:
 72     maxItems: 1
 73 
 74   gpio-controller: true
 75 
 76   '#gpio-cells':
 77     const: 2
 78 
 79   interrupt-controller: true
 80 
 81   '#interrupt-cells':
 82     const: 2
 83 
 84   gpio-ranges:
 85     maxItems: 1
 86 
 87   gpio-reserved-ranges:
 88     minItems: 1
 89     maxItems: 8
 90 
 91 patternProperties:
 92   "^.*$":
 93     if:
 94       type: object
 95     then:
 96       properties:
 97         gpio-hog: true
 98         gpios: true
 99         input: true
100         output-high: true
101         output-low: true
102         line-name: true
103 
104       required:
105         - gpio-hog
106         - gpios
107 
108       additionalProperties: false
109 
110 required:
111   - compatible
112   - reg
113   - interrupts
114   - gpio-controller
115   - '#gpio-cells'
116   - gpio-ranges
117   - interrupt-controller
118   - '#interrupt-cells'
119 
120 if:
121   not:
122     properties:
123       compatible:
124         contains:
125           enum:
126             - renesas,rcar-gen1-gpio
127 then:
128   required:
129     - clocks
130     - power-domains
131     - resets
132 
133 additionalProperties: false
134 
135 examples:
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      };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php