1*9a26fc5aSMarek Vasut /*
2*9a26fc5aSMarek Vasut  * Copyright (C) 2014 Renesas Electronics Corporation
3*9a26fc5aSMarek Vasut  * Copyright 2013 Ideas On Board SPRL
4*9a26fc5aSMarek Vasut  *
5*9a26fc5aSMarek Vasut  * This program is free software; you can redistribute it and/or modify
6*9a26fc5aSMarek Vasut  * it under the terms of the GNU General Public License as published by
7*9a26fc5aSMarek Vasut  * the Free Software Foundation; either version 2 of the License, or
8*9a26fc5aSMarek Vasut  * (at your option) any later version.
9*9a26fc5aSMarek Vasut  */
10*9a26fc5aSMarek Vasut 
11*9a26fc5aSMarek Vasut #ifndef __DT_BINDINGS_CLOCK_R8A7794_H__
12*9a26fc5aSMarek Vasut #define __DT_BINDINGS_CLOCK_R8A7794_H__
13*9a26fc5aSMarek Vasut 
14*9a26fc5aSMarek Vasut /* CPG */
15*9a26fc5aSMarek Vasut #define R8A7794_CLK_MAIN		0
16*9a26fc5aSMarek Vasut #define R8A7794_CLK_PLL0		1
17*9a26fc5aSMarek Vasut #define R8A7794_CLK_PLL1		2
18*9a26fc5aSMarek Vasut #define R8A7794_CLK_PLL3		3
19*9a26fc5aSMarek Vasut #define R8A7794_CLK_LB			4
20*9a26fc5aSMarek Vasut #define R8A7794_CLK_QSPI		5
21*9a26fc5aSMarek Vasut #define R8A7794_CLK_SDH			6
22*9a26fc5aSMarek Vasut #define R8A7794_CLK_SD0			7
23*9a26fc5aSMarek Vasut #define R8A7794_CLK_RCAN		8
24*9a26fc5aSMarek Vasut 
25*9a26fc5aSMarek Vasut /* MSTP0 */
26*9a26fc5aSMarek Vasut #define R8A7794_CLK_MSIOF0		0
27*9a26fc5aSMarek Vasut 
28*9a26fc5aSMarek Vasut /* MSTP1 */
29*9a26fc5aSMarek Vasut #define R8A7794_CLK_VCP0		1
30*9a26fc5aSMarek Vasut #define R8A7794_CLK_VPC0		3
31*9a26fc5aSMarek Vasut #define R8A7794_CLK_TMU1		11
32*9a26fc5aSMarek Vasut #define R8A7794_CLK_3DG			12
33*9a26fc5aSMarek Vasut #define R8A7794_CLK_2DDMAC		15
34*9a26fc5aSMarek Vasut #define R8A7794_CLK_FDP1_0		19
35*9a26fc5aSMarek Vasut #define R8A7794_CLK_TMU3		21
36*9a26fc5aSMarek Vasut #define R8A7794_CLK_TMU2		22
37*9a26fc5aSMarek Vasut #define R8A7794_CLK_CMT0		24
38*9a26fc5aSMarek Vasut #define R8A7794_CLK_TMU0		25
39*9a26fc5aSMarek Vasut #define R8A7794_CLK_VSP1_DU0		28
40*9a26fc5aSMarek Vasut #define R8A7794_CLK_VSP1_S		31
41*9a26fc5aSMarek Vasut 
42*9a26fc5aSMarek Vasut /* MSTP2 */
43*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIFA2		2
44*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIFA1		3
45*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIFA0		4
46*9a26fc5aSMarek Vasut #define R8A7794_CLK_MSIOF2		5
47*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIFB0		6
48*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIFB1		7
49*9a26fc5aSMarek Vasut #define R8A7794_CLK_MSIOF1		8
50*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIFB2		16
51*9a26fc5aSMarek Vasut #define R8A7794_CLK_SYS_DMAC1		18
52*9a26fc5aSMarek Vasut #define R8A7794_CLK_SYS_DMAC0		19
53*9a26fc5aSMarek Vasut 
54*9a26fc5aSMarek Vasut /* MSTP3 */
55*9a26fc5aSMarek Vasut #define R8A7794_CLK_SDHI2		11
56*9a26fc5aSMarek Vasut #define R8A7794_CLK_SDHI1		12
57*9a26fc5aSMarek Vasut #define R8A7794_CLK_SDHI0		14
58*9a26fc5aSMarek Vasut #define R8A7794_CLK_MMCIF0		15
59*9a26fc5aSMarek Vasut #define R8A7794_CLK_IIC0		18
60*9a26fc5aSMarek Vasut #define R8A7794_CLK_IIC1		23
61*9a26fc5aSMarek Vasut #define R8A7794_CLK_CMT1		29
62*9a26fc5aSMarek Vasut #define R8A7794_CLK_USBDMAC0		30
63*9a26fc5aSMarek Vasut #define R8A7794_CLK_USBDMAC1		31
64*9a26fc5aSMarek Vasut 
65*9a26fc5aSMarek Vasut /* MSTP4 */
66*9a26fc5aSMarek Vasut #define R8A7794_CLK_IRQC		7
67*9a26fc5aSMarek Vasut #define R8A7794_CLK_INTC_SYS		8
68*9a26fc5aSMarek Vasut 
69*9a26fc5aSMarek Vasut /* MSTP5 */
70*9a26fc5aSMarek Vasut #define R8A7794_CLK_AUDIO_DMAC0		2
71*9a26fc5aSMarek Vasut #define R8A7794_CLK_PWM			23
72*9a26fc5aSMarek Vasut 
73*9a26fc5aSMarek Vasut /* MSTP7 */
74*9a26fc5aSMarek Vasut #define R8A7794_CLK_EHCI		3
75*9a26fc5aSMarek Vasut #define R8A7794_CLK_HSUSB		4
76*9a26fc5aSMarek Vasut #define R8A7794_CLK_HSCIF2		13
77*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIF5		14
78*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIF4		15
79*9a26fc5aSMarek Vasut #define R8A7794_CLK_HSCIF1		16
80*9a26fc5aSMarek Vasut #define R8A7794_CLK_HSCIF0		17
81*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIF3		18
82*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIF2		19
83*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIF1		20
84*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIF0		21
85*9a26fc5aSMarek Vasut #define R8A7794_CLK_DU1			23
86*9a26fc5aSMarek Vasut #define R8A7794_CLK_DU0			24
87*9a26fc5aSMarek Vasut 
88*9a26fc5aSMarek Vasut /* MSTP8 */
89*9a26fc5aSMarek Vasut #define R8A7794_CLK_VIN1		10
90*9a26fc5aSMarek Vasut #define R8A7794_CLK_VIN0		11
91*9a26fc5aSMarek Vasut #define R8A7794_CLK_ETHERAVB		12
92*9a26fc5aSMarek Vasut #define R8A7794_CLK_ETHER		13
93*9a26fc5aSMarek Vasut 
94*9a26fc5aSMarek Vasut /* MSTP9 */
95*9a26fc5aSMarek Vasut #define R8A7794_CLK_GPIO6		5
96*9a26fc5aSMarek Vasut #define R8A7794_CLK_GPIO5		7
97*9a26fc5aSMarek Vasut #define R8A7794_CLK_GPIO4		8
98*9a26fc5aSMarek Vasut #define R8A7794_CLK_GPIO3		9
99*9a26fc5aSMarek Vasut #define R8A7794_CLK_GPIO2		10
100*9a26fc5aSMarek Vasut #define R8A7794_CLK_GPIO1		11
101*9a26fc5aSMarek Vasut #define R8A7794_CLK_GPIO0		12
102*9a26fc5aSMarek Vasut #define R8A7794_CLK_RCAN1		15
103*9a26fc5aSMarek Vasut #define R8A7794_CLK_RCAN0		16
104*9a26fc5aSMarek Vasut #define R8A7794_CLK_QSPI_MOD		17
105*9a26fc5aSMarek Vasut #define R8A7794_CLK_I2C5		25
106*9a26fc5aSMarek Vasut #define R8A7794_CLK_I2C4		27
107*9a26fc5aSMarek Vasut #define R8A7794_CLK_I2C3		28
108*9a26fc5aSMarek Vasut #define R8A7794_CLK_I2C2		29
109*9a26fc5aSMarek Vasut #define R8A7794_CLK_I2C1		30
110*9a26fc5aSMarek Vasut #define R8A7794_CLK_I2C0		31
111*9a26fc5aSMarek Vasut 
112*9a26fc5aSMarek Vasut /* MSTP10 */
113*9a26fc5aSMarek Vasut #define R8A7794_CLK_SSI_ALL		5
114*9a26fc5aSMarek Vasut #define R8A7794_CLK_SSI9		6
115*9a26fc5aSMarek Vasut #define R8A7794_CLK_SSI8		7
116*9a26fc5aSMarek Vasut #define R8A7794_CLK_SSI7		8
117*9a26fc5aSMarek Vasut #define R8A7794_CLK_SSI6		9
118*9a26fc5aSMarek Vasut #define R8A7794_CLK_SSI5		10
119*9a26fc5aSMarek Vasut #define R8A7794_CLK_SSI4		11
120*9a26fc5aSMarek Vasut #define R8A7794_CLK_SSI3		12
121*9a26fc5aSMarek Vasut #define R8A7794_CLK_SSI2		13
122*9a26fc5aSMarek Vasut #define R8A7794_CLK_SSI1		14
123*9a26fc5aSMarek Vasut #define R8A7794_CLK_SSI0		15
124*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCU_ALL		17
125*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCU_DVC1		18
126*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCU_DVC0		19
127*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCU_CTU1_MIX1	20
128*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCU_CTU0_MIX0	21
129*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCU_SRC6		25
130*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCU_SRC5		26
131*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCU_SRC4		27
132*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCU_SRC3		28
133*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCU_SRC2		29
134*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCU_SRC1		30
135*9a26fc5aSMarek Vasut 
136*9a26fc5aSMarek Vasut /* MSTP11 */
137*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIFA3		6
138*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIFA4		7
139*9a26fc5aSMarek Vasut #define R8A7794_CLK_SCIFA5		8
140*9a26fc5aSMarek Vasut 
141*9a26fc5aSMarek Vasut #endif /* __DT_BINDINGS_CLOCK_R8A7794_H__ */
142