xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/r9a08g045-cpg.h (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1*84943d6fSEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*84943d6fSEmmanuel Vadot  *
3*84943d6fSEmmanuel Vadot  * Copyright (C) 2023 Renesas Electronics Corp.
4*84943d6fSEmmanuel Vadot  */
5*84943d6fSEmmanuel Vadot #ifndef __DT_BINDINGS_CLOCK_R9A08G045_CPG_H__
6*84943d6fSEmmanuel Vadot #define __DT_BINDINGS_CLOCK_R9A08G045_CPG_H__
7*84943d6fSEmmanuel Vadot 
8*84943d6fSEmmanuel Vadot #include <dt-bindings/clock/renesas-cpg-mssr.h>
9*84943d6fSEmmanuel Vadot 
10*84943d6fSEmmanuel Vadot /* R9A08G045 CPG Core Clocks */
11*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_I			0
12*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_I2		1
13*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_I3		2
14*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_S0		3
15*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_SPI0		4
16*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_SPI1		5
17*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_SD0		6
18*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_SD1		7
19*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_SD2		8
20*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_M0		9
21*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_HP		10
22*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_TSU		11
23*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_ZT		12
24*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_P0		13
25*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_P1		14
26*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_P2		15
27*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_P3		16
28*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_P4		17
29*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_P5		18
30*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_AT		19
31*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_OC0		20
32*84943d6fSEmmanuel Vadot #define R9A08G045_CLK_OC1		21
33*84943d6fSEmmanuel Vadot #define R9A08G045_OSCCLK		22
34*84943d6fSEmmanuel Vadot #define R9A08G045_OSCCLK2		23
35*84943d6fSEmmanuel Vadot #define R9A08G045_SWD			24
36*84943d6fSEmmanuel Vadot 
37*84943d6fSEmmanuel Vadot /* R9A08G045 Module Clocks */
38*84943d6fSEmmanuel Vadot #define R9A08G045_OCTA_ACLK		0
39*84943d6fSEmmanuel Vadot #define R9A08G045_OCTA_MCLK		1
40*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_SCLK		2
41*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_PCLK		3
42*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_ATCLK		4
43*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_GICCLK		5
44*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_PERICLK		6
45*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_ACLK		7
46*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_TSCLK		8
47*84943d6fSEmmanuel Vadot #define R9A08G045_SRAM_ACPU_ACLK0	9
48*84943d6fSEmmanuel Vadot #define R9A08G045_SRAM_ACPU_ACLK1	10
49*84943d6fSEmmanuel Vadot #define R9A08G045_SRAM_ACPU_ACLK2	11
50*84943d6fSEmmanuel Vadot #define R9A08G045_GIC600_GICCLK		12
51*84943d6fSEmmanuel Vadot #define R9A08G045_IA55_CLK		13
52*84943d6fSEmmanuel Vadot #define R9A08G045_IA55_PCLK		14
53*84943d6fSEmmanuel Vadot #define R9A08G045_MHU_PCLK		15
54*84943d6fSEmmanuel Vadot #define R9A08G045_SYC_CNT_CLK		16
55*84943d6fSEmmanuel Vadot #define R9A08G045_DMAC_ACLK		17
56*84943d6fSEmmanuel Vadot #define R9A08G045_DMAC_PCLK		18
57*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM0_PCLK		19
58*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM1_PCLK		20
59*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM2_PCLK		21
60*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM3_PCLK		22
61*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM4_PCLK		23
62*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM5_PCLK		24
63*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM6_PCLK		25
64*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM7_PCLK		26
65*84943d6fSEmmanuel Vadot #define R9A08G045_MTU_X_MCK_MTU3	27
66*84943d6fSEmmanuel Vadot #define R9A08G045_POE3_CLKM_POE		28
67*84943d6fSEmmanuel Vadot #define R9A08G045_GPT_PCLK		29
68*84943d6fSEmmanuel Vadot #define R9A08G045_POEG_A_CLKP		30
69*84943d6fSEmmanuel Vadot #define R9A08G045_POEG_B_CLKP		31
70*84943d6fSEmmanuel Vadot #define R9A08G045_POEG_C_CLKP		32
71*84943d6fSEmmanuel Vadot #define R9A08G045_POEG_D_CLKP		33
72*84943d6fSEmmanuel Vadot #define R9A08G045_WDT0_PCLK		34
73*84943d6fSEmmanuel Vadot #define R9A08G045_WDT0_CLK		35
74*84943d6fSEmmanuel Vadot #define R9A08G045_WDT1_PCLK		36
75*84943d6fSEmmanuel Vadot #define R9A08G045_WDT1_CLK		37
76*84943d6fSEmmanuel Vadot #define R9A08G045_WDT2_PCLK		38
77*84943d6fSEmmanuel Vadot #define R9A08G045_WDT2_CLK		39
78*84943d6fSEmmanuel Vadot #define R9A08G045_SPI_HCLK		40
79*84943d6fSEmmanuel Vadot #define R9A08G045_SPI_ACLK		41
80*84943d6fSEmmanuel Vadot #define R9A08G045_SPI_CLK		42
81*84943d6fSEmmanuel Vadot #define R9A08G045_SPI_CLKX2		43
82*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI0_IMCLK		44
83*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI0_IMCLK2		45
84*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI0_CLK_HS		46
85*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI0_ACLK		47
86*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI1_IMCLK		48
87*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI1_IMCLK2		49
88*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI1_CLK_HS		50
89*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI1_ACLK		51
90*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI2_IMCLK		52
91*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI2_IMCLK2		53
92*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI2_CLK_HS		54
93*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI2_ACLK		55
94*84943d6fSEmmanuel Vadot #define R9A08G045_SSI0_PCLK2		56
95*84943d6fSEmmanuel Vadot #define R9A08G045_SSI0_PCLK_SFR		57
96*84943d6fSEmmanuel Vadot #define R9A08G045_SSI1_PCLK2		58
97*84943d6fSEmmanuel Vadot #define R9A08G045_SSI1_PCLK_SFR		59
98*84943d6fSEmmanuel Vadot #define R9A08G045_SSI2_PCLK2		60
99*84943d6fSEmmanuel Vadot #define R9A08G045_SSI2_PCLK_SFR		61
100*84943d6fSEmmanuel Vadot #define R9A08G045_SSI3_PCLK2		62
101*84943d6fSEmmanuel Vadot #define R9A08G045_SSI3_PCLK_SFR		63
102*84943d6fSEmmanuel Vadot #define R9A08G045_SRC_CLKP		64
103*84943d6fSEmmanuel Vadot #define R9A08G045_USB_U2H0_HCLK		65
104*84943d6fSEmmanuel Vadot #define R9A08G045_USB_U2H1_HCLK		66
105*84943d6fSEmmanuel Vadot #define R9A08G045_USB_U2P_EXR_CPUCLK	67
106*84943d6fSEmmanuel Vadot #define R9A08G045_USB_PCLK		68
107*84943d6fSEmmanuel Vadot #define R9A08G045_ETH0_CLK_AXI		69
108*84943d6fSEmmanuel Vadot #define R9A08G045_ETH0_CLK_CHI		70
109*84943d6fSEmmanuel Vadot #define R9A08G045_ETH0_REFCLK		71
110*84943d6fSEmmanuel Vadot #define R9A08G045_ETH1_CLK_AXI		72
111*84943d6fSEmmanuel Vadot #define R9A08G045_ETH1_CLK_CHI		73
112*84943d6fSEmmanuel Vadot #define R9A08G045_ETH1_REFCLK		74
113*84943d6fSEmmanuel Vadot #define R9A08G045_I2C0_PCLK		75
114*84943d6fSEmmanuel Vadot #define R9A08G045_I2C1_PCLK		76
115*84943d6fSEmmanuel Vadot #define R9A08G045_I2C2_PCLK		77
116*84943d6fSEmmanuel Vadot #define R9A08G045_I2C3_PCLK		78
117*84943d6fSEmmanuel Vadot #define R9A08G045_SCIF0_CLK_PCK		79
118*84943d6fSEmmanuel Vadot #define R9A08G045_SCIF1_CLK_PCK		80
119*84943d6fSEmmanuel Vadot #define R9A08G045_SCIF2_CLK_PCK		81
120*84943d6fSEmmanuel Vadot #define R9A08G045_SCIF3_CLK_PCK		82
121*84943d6fSEmmanuel Vadot #define R9A08G045_SCIF4_CLK_PCK		83
122*84943d6fSEmmanuel Vadot #define R9A08G045_SCIF5_CLK_PCK		84
123*84943d6fSEmmanuel Vadot #define R9A08G045_SCI0_CLKP		85
124*84943d6fSEmmanuel Vadot #define R9A08G045_SCI1_CLKP		86
125*84943d6fSEmmanuel Vadot #define R9A08G045_IRDA_CLKP		87
126*84943d6fSEmmanuel Vadot #define R9A08G045_RSPI0_CLKB		88
127*84943d6fSEmmanuel Vadot #define R9A08G045_RSPI1_CLKB		89
128*84943d6fSEmmanuel Vadot #define R9A08G045_RSPI2_CLKB		90
129*84943d6fSEmmanuel Vadot #define R9A08G045_RSPI3_CLKB		91
130*84943d6fSEmmanuel Vadot #define R9A08G045_RSPI4_CLKB		92
131*84943d6fSEmmanuel Vadot #define R9A08G045_CANFD_PCLK		93
132*84943d6fSEmmanuel Vadot #define R9A08G045_CANFD_CLK_RAM		94
133*84943d6fSEmmanuel Vadot #define R9A08G045_GPIO_HCLK		95
134*84943d6fSEmmanuel Vadot #define R9A08G045_ADC_ADCLK		96
135*84943d6fSEmmanuel Vadot #define R9A08G045_ADC_PCLK		97
136*84943d6fSEmmanuel Vadot #define R9A08G045_TSU_PCLK		98
137*84943d6fSEmmanuel Vadot #define R9A08G045_PDM_PCLK		99
138*84943d6fSEmmanuel Vadot #define R9A08G045_PDM_CCLK		100
139*84943d6fSEmmanuel Vadot #define R9A08G045_PCI_ACLK		101
140*84943d6fSEmmanuel Vadot #define R9A08G045_PCI_CLKL1PM		102
141*84943d6fSEmmanuel Vadot #define R9A08G045_SPDIF_PCLK		103
142*84943d6fSEmmanuel Vadot #define R9A08G045_I3C_PCLK		104
143*84943d6fSEmmanuel Vadot #define R9A08G045_I3C_TCLK		105
144*84943d6fSEmmanuel Vadot #define R9A08G045_VBAT_BCLK		106
145*84943d6fSEmmanuel Vadot 
146*84943d6fSEmmanuel Vadot /* R9A08G045 Resets */
147*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_RST_1_0		0
148*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_RST_3_0		1
149*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_RST_4		2
150*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_RST_5		3
151*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_RST_6		4
152*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_RST_7		5
153*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_RST_8		6
154*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_RST_9		7
155*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_RST_10		8
156*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_RST_11		9
157*84943d6fSEmmanuel Vadot #define R9A08G045_CA55_RST_12		10
158*84943d6fSEmmanuel Vadot #define R9A08G045_SRAM_ACPU_ARESETN0	11
159*84943d6fSEmmanuel Vadot #define R9A08G045_SRAM_ACPU_ARESETN1	12
160*84943d6fSEmmanuel Vadot #define R9A08G045_SRAM_ACPU_ARESETN2	13
161*84943d6fSEmmanuel Vadot #define R9A08G045_GIC600_GICRESET_N	14
162*84943d6fSEmmanuel Vadot #define R9A08G045_GIC600_DBG_GICRESET_N	15
163*84943d6fSEmmanuel Vadot #define R9A08G045_IA55_RESETN		16
164*84943d6fSEmmanuel Vadot #define R9A08G045_MHU_RESETN		17
165*84943d6fSEmmanuel Vadot #define R9A08G045_DMAC_ARESETN		18
166*84943d6fSEmmanuel Vadot #define R9A08G045_DMAC_RST_ASYNC	19
167*84943d6fSEmmanuel Vadot #define R9A08G045_SYC_RESETN		20
168*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM0_PRESETZ		21
169*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM1_PRESETZ		22
170*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM2_PRESETZ		23
171*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM3_PRESETZ		24
172*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM4_PRESETZ		25
173*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM5_PRESETZ		26
174*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM6_PRESETZ		27
175*84943d6fSEmmanuel Vadot #define R9A08G045_OSTM7_PRESETZ		28
176*84943d6fSEmmanuel Vadot #define R9A08G045_MTU_X_PRESET_MTU3	29
177*84943d6fSEmmanuel Vadot #define R9A08G045_POE3_RST_M_REG	30
178*84943d6fSEmmanuel Vadot #define R9A08G045_GPT_RST_C		31
179*84943d6fSEmmanuel Vadot #define R9A08G045_POEG_A_RST		32
180*84943d6fSEmmanuel Vadot #define R9A08G045_POEG_B_RST		33
181*84943d6fSEmmanuel Vadot #define R9A08G045_POEG_C_RST		34
182*84943d6fSEmmanuel Vadot #define R9A08G045_POEG_D_RST		35
183*84943d6fSEmmanuel Vadot #define R9A08G045_WDT0_PRESETN		36
184*84943d6fSEmmanuel Vadot #define R9A08G045_WDT1_PRESETN		37
185*84943d6fSEmmanuel Vadot #define R9A08G045_WDT2_PRESETN		38
186*84943d6fSEmmanuel Vadot #define R9A08G045_SPI_HRESETN		39
187*84943d6fSEmmanuel Vadot #define R9A08G045_SPI_ARESETN		40
188*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI0_IXRST		41
189*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI1_IXRST		42
190*84943d6fSEmmanuel Vadot #define R9A08G045_SDHI2_IXRST		43
191*84943d6fSEmmanuel Vadot #define R9A08G045_SSI0_RST_M2_REG	44
192*84943d6fSEmmanuel Vadot #define R9A08G045_SSI1_RST_M2_REG	45
193*84943d6fSEmmanuel Vadot #define R9A08G045_SSI2_RST_M2_REG	46
194*84943d6fSEmmanuel Vadot #define R9A08G045_SSI3_RST_M2_REG	47
195*84943d6fSEmmanuel Vadot #define R9A08G045_SRC_RST		48
196*84943d6fSEmmanuel Vadot #define R9A08G045_USB_U2H0_HRESETN	49
197*84943d6fSEmmanuel Vadot #define R9A08G045_USB_U2H1_HRESETN	50
198*84943d6fSEmmanuel Vadot #define R9A08G045_USB_U2P_EXL_SYSRST	51
199*84943d6fSEmmanuel Vadot #define R9A08G045_USB_PRESETN		52
200*84943d6fSEmmanuel Vadot #define R9A08G045_ETH0_RST_HW_N		53
201*84943d6fSEmmanuel Vadot #define R9A08G045_ETH1_RST_HW_N		54
202*84943d6fSEmmanuel Vadot #define R9A08G045_I2C0_MRST		55
203*84943d6fSEmmanuel Vadot #define R9A08G045_I2C1_MRST		56
204*84943d6fSEmmanuel Vadot #define R9A08G045_I2C2_MRST		57
205*84943d6fSEmmanuel Vadot #define R9A08G045_I2C3_MRST		58
206*84943d6fSEmmanuel Vadot #define R9A08G045_SCIF0_RST_SYSTEM_N	59
207*84943d6fSEmmanuel Vadot #define R9A08G045_SCIF1_RST_SYSTEM_N	60
208*84943d6fSEmmanuel Vadot #define R9A08G045_SCIF2_RST_SYSTEM_N	61
209*84943d6fSEmmanuel Vadot #define R9A08G045_SCIF3_RST_SYSTEM_N	62
210*84943d6fSEmmanuel Vadot #define R9A08G045_SCIF4_RST_SYSTEM_N	63
211*84943d6fSEmmanuel Vadot #define R9A08G045_SCIF5_RST_SYSTEM_N	64
212*84943d6fSEmmanuel Vadot #define R9A08G045_SCI0_RST		65
213*84943d6fSEmmanuel Vadot #define R9A08G045_SCI1_RST		66
214*84943d6fSEmmanuel Vadot #define R9A08G045_IRDA_RST		67
215*84943d6fSEmmanuel Vadot #define R9A08G045_RSPI0_RST		68
216*84943d6fSEmmanuel Vadot #define R9A08G045_RSPI1_RST		69
217*84943d6fSEmmanuel Vadot #define R9A08G045_RSPI2_RST		70
218*84943d6fSEmmanuel Vadot #define R9A08G045_RSPI3_RST		71
219*84943d6fSEmmanuel Vadot #define R9A08G045_RSPI4_RST		72
220*84943d6fSEmmanuel Vadot #define R9A08G045_CANFD_RSTP_N		73
221*84943d6fSEmmanuel Vadot #define R9A08G045_CANFD_RSTC_N		74
222*84943d6fSEmmanuel Vadot #define R9A08G045_GPIO_RSTN		75
223*84943d6fSEmmanuel Vadot #define R9A08G045_GPIO_PORT_RESETN	76
224*84943d6fSEmmanuel Vadot #define R9A08G045_GPIO_SPARE_RESETN	77
225*84943d6fSEmmanuel Vadot #define R9A08G045_ADC_PRESETN		78
226*84943d6fSEmmanuel Vadot #define R9A08G045_ADC_ADRST_N		79
227*84943d6fSEmmanuel Vadot #define R9A08G045_TSU_PRESETN		80
228*84943d6fSEmmanuel Vadot #define R9A08G045_OCTA_ARESETN		81
229*84943d6fSEmmanuel Vadot #define R9A08G045_PDM0_PRESETNT		82
230*84943d6fSEmmanuel Vadot #define R9A08G045_PCI_ARESETN		83
231*84943d6fSEmmanuel Vadot #define R9A08G045_PCI_RST_B		84
232*84943d6fSEmmanuel Vadot #define R9A08G045_PCI_RST_GP_B		85
233*84943d6fSEmmanuel Vadot #define R9A08G045_PCI_RST_PS_B		86
234*84943d6fSEmmanuel Vadot #define R9A08G045_PCI_RST_RSM_B		87
235*84943d6fSEmmanuel Vadot #define R9A08G045_PCI_RST_CFG_B		88
236*84943d6fSEmmanuel Vadot #define R9A08G045_PCI_RST_LOAD_B	89
237*84943d6fSEmmanuel Vadot #define R9A08G045_SPDIF_RST		90
238*84943d6fSEmmanuel Vadot #define R9A08G045_I3C_TRESETN		91
239*84943d6fSEmmanuel Vadot #define R9A08G045_I3C_PRESETN		92
240*84943d6fSEmmanuel Vadot #define R9A08G045_VBAT_BRESETN		93
241*84943d6fSEmmanuel Vadot 
242*84943d6fSEmmanuel Vadot #endif /* __DT_BINDINGS_CLOCK_R9A08G045_CPG_H__ */
243