Merge tag 'sound-fix-5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / timer / renesas,cmt.txt
1 * Renesas R-Car Compare Match Timer (CMT)
2
3 The CMT is a multi-channel 16/32/48-bit timer/counter with configurable clock
4 inputs and programmable compare match.
5
6 Channels share hardware resources but their counter and compare match value
7 are independent. A particular CMT instance can implement only a subset of the
8 channels supported by the CMT model. Channel indices represent the hardware
9 position of the channel in the CMT and don't match the channel numbers in the
10 datasheets.
11
12 Required Properties:
13
14   - compatible: must contain one or more of the following:
15     - "renesas,r8a73a4-cmt0" for the 32-bit CMT0 device included in r8a73a4.
16     - "renesas,r8a73a4-cmt1" for the 48-bit CMT1 device included in r8a73a4.
17     - "renesas,r8a7740-cmt0" for the 32-bit CMT0 device included in r8a7740.
18     - "renesas,r8a7740-cmt1" for the 48-bit CMT1 device included in r8a7740.
19     - "renesas,r8a7740-cmt2" for the 32-bit CMT2 device included in r8a7740.
20     - "renesas,r8a7740-cmt3" for the 32-bit CMT3 device included in r8a7740.
21     - "renesas,r8a7740-cmt4" for the 32-bit CMT4 device included in r8a7740.
22     - "renesas,r8a7743-cmt0" for the 32-bit CMT0 device included in r8a7743.
23     - "renesas,r8a7743-cmt1" for the 48-bit CMT1 device included in r8a7743.
24     - "renesas,r8a7744-cmt0" for the 32-bit CMT0 device included in r8a7744.
25     - "renesas,r8a7744-cmt1" for the 48-bit CMT1 device included in r8a7744.
26     - "renesas,r8a7745-cmt0" for the 32-bit CMT0 device included in r8a7745.
27     - "renesas,r8a7745-cmt1" for the 48-bit CMT1 device included in r8a7745.
28     - "renesas,r8a77470-cmt0" for the 32-bit CMT0 device included in r8a77470.
29     - "renesas,r8a77470-cmt1" for the 48-bit CMT1 device included in r8a77470.
30     - "renesas,r8a774a1-cmt0" for the 32-bit CMT0 device included in r8a774a1.
31     - "renesas,r8a774a1-cmt1" for the 48-bit CMT devices included in r8a774a1.
32     - "renesas,r8a774b1-cmt0" for the 32-bit CMT0 device included in r8a774b1.
33     - "renesas,r8a774b1-cmt1" for the 48-bit CMT devices included in r8a774b1.
34     - "renesas,r8a774c0-cmt0" for the 32-bit CMT0 device included in r8a774c0.
35     - "renesas,r8a774c0-cmt1" for the 48-bit CMT devices included in r8a774c0.
36     - "renesas,r8a7790-cmt0" for the 32-bit CMT0 device included in r8a7790.
37     - "renesas,r8a7790-cmt1" for the 48-bit CMT1 device included in r8a7790.
38     - "renesas,r8a7791-cmt0" for the 32-bit CMT0 device included in r8a7791.
39     - "renesas,r8a7791-cmt1" for the 48-bit CMT1 device included in r8a7791.
40     - "renesas,r8a7792-cmt0" for the 32-bit CMT0 device included in r8a7792.
41     - "renesas,r8a7792-cmt1" for the 48-bit CMT1 device included in r8a7792.
42     - "renesas,r8a7793-cmt0" for the 32-bit CMT0 device included in r8a7793.
43     - "renesas,r8a7793-cmt1" for the 48-bit CMT1 device included in r8a7793.
44     - "renesas,r8a7794-cmt0" for the 32-bit CMT0 device included in r8a7794.
45     - "renesas,r8a7794-cmt1" for the 48-bit CMT1 device included in r8a7794.
46     - "renesas,r8a7795-cmt0" for the 32-bit CMT0 device included in r8a7795.
47     - "renesas,r8a7795-cmt1" for the 48-bit CMT devices included in r8a7795.
48     - "renesas,r8a7796-cmt0" for the 32-bit CMT0 device included in r8a7796.
49     - "renesas,r8a7796-cmt1" for the 48-bit CMT devices included in r8a7796.
50     - "renesas,r8a77965-cmt0" for the 32-bit CMT0 device included in r8a77965.
51     - "renesas,r8a77965-cmt1" for the 48-bit CMT devices included in r8a77965.
52     - "renesas,r8a77970-cmt0" for the 32-bit CMT0 device included in r8a77970.
53     - "renesas,r8a77970-cmt1" for the 48-bit CMT devices included in r8a77970.
54     - "renesas,r8a77980-cmt0" for the 32-bit CMT0 device included in r8a77980.
55     - "renesas,r8a77980-cmt1" for the 48-bit CMT devices included in r8a77980.
56     - "renesas,r8a77990-cmt0" for the 32-bit CMT0 device included in r8a77990.
57     - "renesas,r8a77990-cmt1" for the 48-bit CMT devices included in r8a77990.
58     - "renesas,r8a77995-cmt0" for the 32-bit CMT0 device included in r8a77995.
59     - "renesas,r8a77995-cmt1" for the 48-bit CMT devices included in r8a77995.
60     - "renesas,sh73a0-cmt0" for the 32-bit CMT0 device included in sh73a0.
61     - "renesas,sh73a0-cmt1" for the 48-bit CMT1 device included in sh73a0.
62     - "renesas,sh73a0-cmt2" for the 32-bit CMT2 device included in sh73a0.
63     - "renesas,sh73a0-cmt3" for the 32-bit CMT3 device included in sh73a0.
64     - "renesas,sh73a0-cmt4" for the 32-bit CMT4 device included in sh73a0.
65
66     - "renesas,rcar-gen2-cmt0" for 32-bit CMT0 devices included in R-Car Gen2
67                 and RZ/G1.
68     - "renesas,rcar-gen2-cmt1" for 48-bit CMT1 devices included in R-Car Gen2
69                 and RZ/G1.
70                 These are fallbacks for r8a73a4, R-Car Gen2 and RZ/G1 entries
71                 listed above.
72     - "renesas,rcar-gen3-cmt0" for 32-bit CMT0 devices included in R-Car Gen3
73                 and RZ/G2.
74     - "renesas,rcar-gen3-cmt1" for 48-bit CMT devices included in R-Car Gen3
75                 and RZ/G2.
76                 These are fallbacks for R-Car Gen3 and RZ/G2 entries listed
77                 above.
78
79   - reg: base address and length of the registers block for the timer module.
80   - interrupts: interrupt-specifier for the timer, one per channel.
81   - clocks: a list of phandle + clock-specifier pairs, one for each entry
82     in clock-names.
83   - clock-names: must contain "fck" for the functional clock.
84
85
86 Example: R8A7790 (R-Car H2) CMT0 and CMT1 nodes
87
88         cmt0: timer@ffca0000 {
89                 compatible = "renesas,r8a7790-cmt0", "renesas,rcar-gen2-cmt0";
90                 reg = <0 0xffca0000 0 0x1004>;
91                 interrupts = <0 142 IRQ_TYPE_LEVEL_HIGH>,
92                              <0 142 IRQ_TYPE_LEVEL_HIGH>;
93                 clocks = <&mstp1_clks R8A7790_CLK_CMT0>;
94                 clock-names = "fck";
95         };
96
97         cmt1: timer@e6130000 {
98                 compatible = "renesas,r8a7790-cmt1", "renesas,rcar-gen2-cmt1";
99                 reg = <0 0xe6130000 0 0x1004>;
100                 interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>,
101                              <0 121 IRQ_TYPE_LEVEL_HIGH>,
102                              <0 122 IRQ_TYPE_LEVEL_HIGH>,
103                              <0 123 IRQ_TYPE_LEVEL_HIGH>,
104                              <0 124 IRQ_TYPE_LEVEL_HIGH>,
105                              <0 125 IRQ_TYPE_LEVEL_HIGH>,
106                              <0 126 IRQ_TYPE_LEVEL_HIGH>,
107                              <0 127 IRQ_TYPE_LEVEL_HIGH>;
108                 clocks = <&mstp3_clks R8A7790_CLK_CMT1>;
109                 clock-names = "fck";
110         };