xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/r8a7791-clock.h (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-or-later */
2*c66ec88fSEmmanuel Vadot /*
3*c66ec88fSEmmanuel Vadot  * Copyright 2013 Ideas On Board SPRL
4*c66ec88fSEmmanuel Vadot  */
5*c66ec88fSEmmanuel Vadot 
6*c66ec88fSEmmanuel Vadot #ifndef __DT_BINDINGS_CLOCK_R8A7791_H__
7*c66ec88fSEmmanuel Vadot #define __DT_BINDINGS_CLOCK_R8A7791_H__
8*c66ec88fSEmmanuel Vadot 
9*c66ec88fSEmmanuel Vadot /* CPG */
10*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_MAIN		0
11*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_PLL0		1
12*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_PLL1		2
13*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_PLL3		3
14*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_LB			4
15*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_QSPI		5
16*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SDH			6
17*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SD0			7
18*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_Z			8
19*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_RCAN		9
20*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_ADSP		10
21*c66ec88fSEmmanuel Vadot 
22*c66ec88fSEmmanuel Vadot /* MSTP0 */
23*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_MSIOF0		0
24*c66ec88fSEmmanuel Vadot 
25*c66ec88fSEmmanuel Vadot /* MSTP1 */
26*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_VCP0		1
27*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_VPC0		3
28*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_JPU			6
29*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SSP1		9
30*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_TMU1		11
31*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_3DG			12
32*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_2DDMAC		15
33*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_FDP1_1		18
34*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_FDP1_0		19
35*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_TMU3		21
36*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_TMU2		22
37*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_CMT0		24
38*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_TMU0		25
39*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_VSP1_DU1		27
40*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_VSP1_DU0		28
41*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_VSP1_S		31
42*c66ec88fSEmmanuel Vadot 
43*c66ec88fSEmmanuel Vadot /* MSTP2 */
44*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIFA2		2
45*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIFA1		3
46*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIFA0		4
47*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_MSIOF2		5
48*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIFB0		6
49*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIFB1		7
50*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_MSIOF1		8
51*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIFB2		16
52*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SYS_DMAC1		18
53*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SYS_DMAC0		19
54*c66ec88fSEmmanuel Vadot 
55*c66ec88fSEmmanuel Vadot /* MSTP3 */
56*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_TPU0		4
57*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SDHI2		11
58*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SDHI1		12
59*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SDHI0		14
60*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_MMCIF0		15
61*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_IIC0		18
62*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_PCIEC		19
63*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_IIC1		23
64*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SSUSB		28
65*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_CMT1		29
66*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_USBDMAC0		30
67*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_USBDMAC1		31
68*c66ec88fSEmmanuel Vadot 
69*c66ec88fSEmmanuel Vadot /* MSTP4 */
70*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_IRQC		7
71*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_INTC_SYS		8
72*c66ec88fSEmmanuel Vadot 
73*c66ec88fSEmmanuel Vadot /* MSTP5 */
74*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_AUDIO_DMAC1		1
75*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_AUDIO_DMAC0		2
76*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_ADSP_MOD		6
77*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_THERMAL		22
78*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_PWM			23
79*c66ec88fSEmmanuel Vadot 
80*c66ec88fSEmmanuel Vadot /* MSTP7 */
81*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_EHCI		3
82*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_HSUSB		4
83*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_HSCIF2		13
84*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIF5		14
85*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIF4		15
86*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_HSCIF1		16
87*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_HSCIF0		17
88*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIF3		18
89*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIF2		19
90*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIF1		20
91*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIF0		21
92*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_DU1			23
93*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_DU0			24
94*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_LVDS0		26
95*c66ec88fSEmmanuel Vadot 
96*c66ec88fSEmmanuel Vadot /* MSTP8 */
97*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_IPMMU_SGX		0
98*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_MLB			2
99*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_VIN2		9
100*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_VIN1		10
101*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_VIN0		11
102*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_ETHERAVB		12
103*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_ETHER		13
104*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SATA1		14
105*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SATA0		15
106*c66ec88fSEmmanuel Vadot 
107*c66ec88fSEmmanuel Vadot /* MSTP9 */
108*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_GYROADC		1
109*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_GPIO7		4
110*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_GPIO6		5
111*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_GPIO5		7
112*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_GPIO4		8
113*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_GPIO3		9
114*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_GPIO2		10
115*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_GPIO1		11
116*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_GPIO0		12
117*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_RCAN1		15
118*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_RCAN0		16
119*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_QSPI_MOD		17
120*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_I2C5		25
121*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_IICDVFS		26
122*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_I2C4		27
123*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_I2C3		28
124*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_I2C2		29
125*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_I2C1		30
126*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_I2C0		31
127*c66ec88fSEmmanuel Vadot 
128*c66ec88fSEmmanuel Vadot /* MSTP10 */
129*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SSI_ALL		5
130*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SSI9		6
131*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SSI8		7
132*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SSI7		8
133*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SSI6		9
134*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SSI5		10
135*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SSI4		11
136*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SSI3		12
137*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SSI2		13
138*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SSI1		14
139*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SSI0		15
140*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_ALL		17
141*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_DVC1		18
142*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_DVC0		19
143*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_CTU1_MIX1	20
144*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_CTU0_MIX0	21
145*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_SRC9		22
146*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_SRC8		23
147*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_SRC7		24
148*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_SRC6		25
149*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_SRC5		26
150*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_SRC4		27
151*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_SRC3		28
152*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_SRC2		29
153*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_SRC1		30
154*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCU_SRC0		31
155*c66ec88fSEmmanuel Vadot 
156*c66ec88fSEmmanuel Vadot /* MSTP11 */
157*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIFA3		6
158*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIFA4		7
159*c66ec88fSEmmanuel Vadot #define R8A7791_CLK_SCIFA5		8
160*c66ec88fSEmmanuel Vadot 
161*c66ec88fSEmmanuel Vadot #endif /* __DT_BINDINGS_CLOCK_R8A7791_H__ */
162