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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/timer/renesas,cmt.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/timer/renesas,cmt.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Renesas Compare Match Timer (CMT)
  8 
  9 maintainers:
 10   - Geert Uytterhoeven <geert+renesas@glider.be>
 11   - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
 12 
 13 description:
 14   The CMT is a multi-channel 16/32/48-bit timer/counter with configurable clock
 15   inputs and programmable compare match.
 16 
 17   Channels share hardware resources but their counter and compare match values
 18   are independent. A particular CMT instance can implement only a subset of the
 19   channels supported by the CMT model. Channel indices represent the hardware
 20   position of the channel in the CMT and don't match the channel numbers in the
 21   datasheets.
 22 
 23 properties:
 24   compatible:
 25     oneOf:
 26       - items:
 27           - enum:
 28               - renesas,r8a7740-cmt0      # 32-bit CMT0 on R-Mobile A1
 29               - renesas,r8a7740-cmt1      # 48-bit CMT1 on R-Mobile A1
 30               - renesas,r8a7740-cmt2      # 32-bit CMT2 on R-Mobile A1
 31               - renesas,r8a7740-cmt3      # 32-bit CMT3 on R-Mobile A1
 32               - renesas,r8a7740-cmt4      # 32-bit CMT4 on R-Mobile A1
 33               - renesas,sh73a0-cmt0       # 32-bit CMT0 on SH-Mobile AG5
 34               - renesas,sh73a0-cmt1       # 48-bit CMT1 on SH-Mobile AG5
 35               - renesas,sh73a0-cmt2       # 32-bit CMT2 on SH-Mobile AG5
 36               - renesas,sh73a0-cmt3       # 32-bit CMT3 on SH-Mobile AG5
 37               - renesas,sh73a0-cmt4       # 32-bit CMT4 on SH-Mobile AG5
 38 
 39       - items:
 40           - enum:
 41               - renesas,r8a73a4-cmt0      # 32-bit CMT0 on R-Mobile APE6
 42               - renesas,r8a7742-cmt0      # 32-bit CMT0 on RZ/G1H
 43               - renesas,r8a7743-cmt0      # 32-bit CMT0 on RZ/G1M
 44               - renesas,r8a7744-cmt0      # 32-bit CMT0 on RZ/G1N
 45               - renesas,r8a7745-cmt0      # 32-bit CMT0 on RZ/G1E
 46               - renesas,r8a77470-cmt0     # 32-bit CMT0 on RZ/G1C
 47               - renesas,r8a7790-cmt0      # 32-bit CMT0 on R-Car H2
 48               - renesas,r8a7791-cmt0      # 32-bit CMT0 on R-Car M2-W
 49               - renesas,r8a7792-cmt0      # 32-bit CMT0 on R-Car V2H
 50               - renesas,r8a7793-cmt0      # 32-bit CMT0 on R-Car M2-N
 51               - renesas,r8a7794-cmt0      # 32-bit CMT0 on R-Car E2
 52           - const: renesas,rcar-gen2-cmt0 # 32-bit CMT0 on R-Mobile APE6, R-Car Gen2 and RZ/G1
 53 
 54       - items:
 55           - enum:
 56               - renesas,r8a73a4-cmt1      # 48-bit CMT1 on R-Mobile APE6
 57               - renesas,r8a7742-cmt1      # 48-bit CMT1 on RZ/G1H
 58               - renesas,r8a7743-cmt1      # 48-bit CMT1 on RZ/G1M
 59               - renesas,r8a7744-cmt1      # 48-bit CMT1 on RZ/G1N
 60               - renesas,r8a7745-cmt1      # 48-bit CMT1 on RZ/G1E
 61               - renesas,r8a77470-cmt1     # 48-bit CMT1 on RZ/G1C
 62               - renesas,r8a7790-cmt1      # 48-bit CMT1 on R-Car H2
 63               - renesas,r8a7791-cmt1      # 48-bit CMT1 on R-Car M2-W
 64               - renesas,r8a7792-cmt1      # 48-bit CMT1 on R-Car V2H
 65               - renesas,r8a7793-cmt1      # 48-bit CMT1 on R-Car M2-N
 66               - renesas,r8a7794-cmt1      # 48-bit CMT1 on R-Car E2
 67           - const: renesas,rcar-gen2-cmt1 # 48-bit CMT1 on R-Mobile APE6, R-Car Gen2 and RZ/G1
 68 
 69       - items:
 70           - enum:
 71               - renesas,r8a774a1-cmt0     # 32-bit CMT0 on RZ/G2M
 72               - renesas,r8a774b1-cmt0     # 32-bit CMT0 on RZ/G2N
 73               - renesas,r8a774c0-cmt0     # 32-bit CMT0 on RZ/G2E
 74               - renesas,r8a774e1-cmt0     # 32-bit CMT0 on RZ/G2H
 75               - renesas,r8a7795-cmt0      # 32-bit CMT0 on R-Car H3
 76               - renesas,r8a7796-cmt0      # 32-bit CMT0 on R-Car M3-W
 77               - renesas,r8a77961-cmt0     # 32-bit CMT0 on R-Car M3-W+
 78               - renesas,r8a77965-cmt0     # 32-bit CMT0 on R-Car M3-N
 79               - renesas,r8a77970-cmt0     # 32-bit CMT0 on R-Car V3M
 80               - renesas,r8a77980-cmt0     # 32-bit CMT0 on R-Car V3H
 81               - renesas,r8a77990-cmt0     # 32-bit CMT0 on R-Car E3
 82               - renesas,r8a77995-cmt0     # 32-bit CMT0 on R-Car D3
 83           - const: renesas,rcar-gen3-cmt0 # 32-bit CMT0 on R-Car Gen3 and RZ/G2
 84 
 85       - items:
 86           - enum:
 87               - renesas,r8a774a1-cmt1     # 48-bit CMT on RZ/G2M
 88               - renesas,r8a774b1-cmt1     # 48-bit CMT on RZ/G2N
 89               - renesas,r8a774c0-cmt1     # 48-bit CMT on RZ/G2E
 90               - renesas,r8a774e1-cmt1     # 48-bit CMT on RZ/G2H
 91               - renesas,r8a7795-cmt1      # 48-bit CMT on R-Car H3
 92               - renesas,r8a7796-cmt1      # 48-bit CMT on R-Car M3-W
 93               - renesas,r8a77961-cmt1     # 48-bit CMT on R-Car M3-W+
 94               - renesas,r8a77965-cmt1     # 48-bit CMT on R-Car M3-N
 95               - renesas,r8a77970-cmt1     # 48-bit CMT on R-Car V3M
 96               - renesas,r8a77980-cmt1     # 48-bit CMT on R-Car V3H
 97               - renesas,r8a77990-cmt1     # 48-bit CMT on R-Car E3
 98               - renesas,r8a77995-cmt1     # 48-bit CMT on R-Car D3
 99           - const: renesas,rcar-gen3-cmt1 # 48-bit CMT on R-Car Gen3 and RZ/G2
100 
101       - items:
102           - enum:
103               - renesas,r8a779a0-cmt0     # 32-bit CMT0 on R-Car V3U
104               - renesas,r8a779f0-cmt0     # 32-bit CMT0 on R-Car S4-8
105               - renesas,r8a779g0-cmt0     # 32-bit CMT0 on R-Car V4H
106               - renesas,r8a779h0-cmt0     # 32-bit CMT0 on R-Car V4M
107           - const: renesas,rcar-gen4-cmt0 # 32-bit CMT0 on R-Car Gen4
108 
109       - items:
110           - enum:
111               - renesas,r8a779a0-cmt1     # 48-bit CMT on R-Car V3U
112               - renesas,r8a779f0-cmt1     # 48-bit CMT on R-Car S4-8
113               - renesas,r8a779g0-cmt1     # 48-bit CMT on R-Car V4H
114               - renesas,r8a779h0-cmt1     # 48-bit CMT on R-Car V4M
115           - const: renesas,rcar-gen4-cmt1 # 48-bit CMT on R-Car Gen4
116 
117   reg:
118     maxItems: 1
119 
120   interrupts:
121     minItems: 1
122     maxItems: 8
123 
124   clocks:
125     maxItems: 1
126 
127   clock-names:
128     const: fck
129 
130   power-domains:
131     maxItems: 1
132 
133   resets:
134     maxItems: 1
135 
136 required:
137   - compatible
138   - reg
139   - interrupts
140   - clocks
141   - clock-names
142   - power-domains
143 
144 allOf:
145   - if:
146       properties:
147         compatible:
148           contains:
149             enum:
150               - renesas,rcar-gen2-cmt0
151               - renesas,rcar-gen3-cmt0
152               - renesas,rcar-gen4-cmt0
153     then:
154       properties:
155         interrupts:
156           minItems: 2
157           maxItems: 2
158 
159   - if:
160       properties:
161         compatible:
162           contains:
163             enum:
164               - renesas,rcar-gen2-cmt1
165               - renesas,rcar-gen3-cmt1
166               - renesas,rcar-gen4-cmt1
167     then:
168       properties:
169         interrupts:
170           minItems: 8
171           maxItems: 8
172 
173 additionalProperties: false
174 
175 examples:
176   - |
177     #include <dt-bindings/clock/r8a7790-cpg-mssr.h>
178     #include <dt-bindings/interrupt-controller/arm-gic.h>
179     #include <dt-bindings/power/r8a7790-sysc.h>
180     cmt0: timer@ffca0000 {
181             compatible = "renesas,r8a7790-cmt0", "renesas,rcar-gen2-cmt0";
182             reg = <0xffca0000 0x1004>;
183             interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
184                          <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
185             clocks = <&cpg CPG_MOD 124>;
186             clock-names = "fck";
187             power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
188             resets = <&cpg 124>;
189     };
190 
191     cmt1: timer@e6130000 {
192             compatible = "renesas,r8a7790-cmt1", "renesas,rcar-gen2-cmt1";
193             reg = <0xe6130000 0x1004>;
194             interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
195                          <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
196                          <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
197                          <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
198                          <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
199                          <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
200                          <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>,
201                          <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
202             clocks = <&cpg CPG_MOD 329>;
203             clock-names = "fck";
204             power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
205             resets = <&cpg 329>;
206     };

~ [ 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