xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/starfive,jh7110-crg.h (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1fac71e4eSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 OR MIT */
2fac71e4eSEmmanuel Vadot /*
3fac71e4eSEmmanuel Vadot  * Copyright 2022 Emil Renner Berthing <kernel@esmil.dk>
4*aa1a8ff2SEmmanuel Vadot  * Copyright 2022 StarFive Technology Co., Ltd.
5fac71e4eSEmmanuel Vadot  */
6fac71e4eSEmmanuel Vadot 
7fac71e4eSEmmanuel Vadot #ifndef __DT_BINDINGS_CLOCK_STARFIVE_JH7110_CRG_H__
8fac71e4eSEmmanuel Vadot #define __DT_BINDINGS_CLOCK_STARFIVE_JH7110_CRG_H__
9fac71e4eSEmmanuel Vadot 
10*aa1a8ff2SEmmanuel Vadot /* PLL clocks */
11*aa1a8ff2SEmmanuel Vadot #define JH7110_PLLCLK_PLL0_OUT			0
12*aa1a8ff2SEmmanuel Vadot #define JH7110_PLLCLK_PLL1_OUT			1
13*aa1a8ff2SEmmanuel Vadot #define JH7110_PLLCLK_PLL2_OUT			2
14*aa1a8ff2SEmmanuel Vadot #define JH7110_PLLCLK_END			3
15*aa1a8ff2SEmmanuel Vadot 
16fac71e4eSEmmanuel Vadot /* SYSCRG clocks */
17fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CPU_ROOT			0
18fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CPU_CORE			1
19fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CPU_BUS			2
20fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GPU_ROOT			3
21fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_PERH_ROOT			4
22fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_BUS_ROOT			5
23fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_NOCSTG_BUS		6
24fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_AXI_CFG0			7
25fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_STG_AXIAHB		8
26fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_AHB0			9
27fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_AHB1			10
28fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_APB_BUS			11
29fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_APB0			12
30fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_PLL0_DIV2			13
31fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_PLL1_DIV2			14
32fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_PLL2_DIV2			15
33fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_AUDIO_ROOT		16
34fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_MCLK_INNER		17
35fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_MCLK			18
36fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_MCLK_OUT			19
37fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_ISP_2X			20
38fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_ISP_AXI			21
39fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GCLK0			22
40fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GCLK1			23
41fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GCLK2			24
42fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CORE			25
43fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CORE1			26
44fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CORE2			27
45fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CORE3			28
46fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CORE4			29
47fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_DEBUG			30
48fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_RTC_TOGGLE		31
49fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TRACE0			32
50fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TRACE1			33
51fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TRACE2			34
52fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TRACE3			35
53fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TRACE4			36
54fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TRACE_COM			37
55fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_NOC_BUS_CPU_AXI		38
56fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_NOC_BUS_AXICFG0_AXI	39
57fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_OSC_DIV2			40
58fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_PLL1_DIV4			41
59fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_PLL1_DIV8			42
60fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_DDR_BUS			43
61fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_DDR_AXI			44
62fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GPU_CORE			45
63fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GPU_CORE_CLK		46
64fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GPU_SYS_CLK		47
65fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GPU_APB			48
66fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GPU_RTC_TOGGLE		49
67fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_NOC_BUS_GPU_AXI		50
68fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_ISP_TOP_CORE		51
69fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_ISP_TOP_AXI		52
70fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_NOC_BUS_ISP_AXI		53
71fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_HIFI4_CORE		54
72fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_HIFI4_AXI			55
73fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_AXI_CFG1_MAIN		56
74fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_AXI_CFG1_AHB		57
75fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_VOUT_SRC			58
76fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_VOUT_AXI			59
77fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_NOC_BUS_DISP_AXI		60
78fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_VOUT_TOP_AHB		61
79fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_VOUT_TOP_AXI		62
80fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_VOUT_TOP_HDMITX0_MCLK	63
81fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_VOUT_TOP_MIPIPHY_REF	64
82fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_JPEGC_AXI			65
83fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CODAJ12_AXI		66
84fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CODAJ12_CORE		67
85fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CODAJ12_APB		68
86fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_VDEC_AXI			69
87fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_WAVE511_AXI		70
88fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_WAVE511_BPU		71
89fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_WAVE511_VCE		72
90fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_WAVE511_APB		73
91fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_VDEC_JPG			74
92fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_VDEC_MAIN			75
93fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_NOC_BUS_VDEC_AXI		76
94fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_VENC_AXI			77
95fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_WAVE420L_AXI		78
96fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_WAVE420L_BPU		79
97fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_WAVE420L_VCE		80
98fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_WAVE420L_APB		81
99fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_NOC_BUS_VENC_AXI		82
100fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_AXI_CFG0_MAIN_DIV		83
101fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_AXI_CFG0_MAIN		84
102fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_AXI_CFG0_HIFI4		85
103fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_AXIMEM2_AXI		86
104fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_QSPI_AHB			87
105fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_QSPI_APB			88
106fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_QSPI_REF_SRC		89
107fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_QSPI_REF			90
108fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_SDIO0_AHB			91
109fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_SDIO1_AHB			92
110fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_SDIO0_SDCARD		93
111fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_SDIO1_SDCARD		94
112fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_USB_125M			95
113fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_NOC_BUS_STG_AXI		96
114fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC1_AHB			97
115fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC1_AXI			98
116fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC_SRC			99
117fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC1_GTXCLK		100
118fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC1_RMII_RTX		101
119fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC1_PTP			102
120fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC1_RX			103
121fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC1_RX_INV		104
122fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC1_TX			105
123fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC1_TX_INV		106
124fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC1_GTXC		107
125fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC0_GTXCLK		108
126fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC0_PTP			109
127fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC_PHY			110
128fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_GMAC0_GTXC		111
129fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_IOMUX_APB			112
130fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_MAILBOX_APB		113
131fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_INT_CTRL_APB		114
132fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CAN0_APB			115
133fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CAN0_TIMER		116
134fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CAN0_CAN			117
135fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CAN1_APB			118
136fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CAN1_TIMER		119
137fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_CAN1_CAN			120
138fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_PWM_APB			121
139fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_WDT_APB			122
140fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_WDT_CORE			123
141fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TIMER_APB			124
142fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TIMER0			125
143fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TIMER1			126
144fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TIMER2			127
145fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TIMER3			128
146fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TEMP_APB			129
147fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TEMP_CORE			130
148fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_SPI0_APB			131
149fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_SPI1_APB			132
150fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_SPI2_APB			133
151fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_SPI3_APB			134
152fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_SPI4_APB			135
153fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_SPI5_APB			136
154fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_SPI6_APB			137
155fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2C0_APB			138
156fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2C1_APB			139
157fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2C2_APB			140
158fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2C3_APB			141
159fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2C4_APB			142
160fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2C5_APB			143
161fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2C6_APB			144
162fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_UART0_APB			145
163fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_UART0_CORE		146
164fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_UART1_APB			147
165fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_UART1_CORE		148
166fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_UART2_APB			149
167fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_UART2_CORE		150
168fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_UART3_APB			151
169fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_UART3_CORE		152
170fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_UART4_APB			153
171fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_UART4_CORE		154
172fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_UART5_APB			155
173fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_UART5_CORE		156
174fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_PWMDAC_APB		157
175fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_PWMDAC_CORE		158
176fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_SPDIF_APB			159
177fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_SPDIF_CORE		160
178fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2STX0_APB		161
179fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2STX0_BCLK_MST		162
180fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2STX0_BCLK_MST_INV	163
181fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2STX0_LRCK_MST		164
182fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2STX0_BCLK		165
183fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2STX0_BCLK_INV		166
184fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2STX0_LRCK		167
185fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2STX1_APB		168
186fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2STX1_BCLK_MST		169
187fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2STX1_BCLK_MST_INV	170
188fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2STX1_LRCK_MST		171
189fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2STX1_BCLK		172
190fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2STX1_BCLK_INV		173
191fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2STX1_LRCK		174
192fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2SRX_APB			175
193fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2SRX_BCLK_MST		176
194fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2SRX_BCLK_MST_INV	177
195fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2SRX_LRCK_MST		178
196fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2SRX_BCLK		179
197fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2SRX_BCLK_INV		180
198fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_I2SRX_LRCK		181
199fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_PDM_DMIC			182
200fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_PDM_APB			183
201fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TDM_AHB			184
202fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TDM_APB			185
203fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TDM_INTERNAL		186
204fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TDM_TDM			187
205fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_TDM_TDM_INV		188
206fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_JTAG_CERTIFICATION_TRNG	189
207fac71e4eSEmmanuel Vadot 
208fac71e4eSEmmanuel Vadot #define JH7110_SYSCLK_END			190
209fac71e4eSEmmanuel Vadot 
210fac71e4eSEmmanuel Vadot /* AONCRG clocks */
211fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_OSC_DIV4			0
212fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_APB_FUNC			1
213fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_GMAC0_AHB			2
214fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_GMAC0_AXI			3
215fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_GMAC0_RMII_RTX		4
216fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_GMAC0_TX			5
217fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_GMAC0_TX_INV		6
218fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_GMAC0_RX			7
219fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_GMAC0_RX_INV		8
220fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_OTPC_APB			9
221fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_RTC_APB			10
222fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_RTC_INTERNAL		11
223fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_RTC_32K			12
224fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_RTC_CAL			13
225fac71e4eSEmmanuel Vadot 
226fac71e4eSEmmanuel Vadot #define JH7110_AONCLK_END			14
227fac71e4eSEmmanuel Vadot 
228*aa1a8ff2SEmmanuel Vadot /* STGCRG clocks */
229*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_HIFI4_CLK_CORE		0
230*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_USB0_APB			1
231*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_USB0_UTMI_APB		2
232*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_USB0_AXI			3
233*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_USB0_LPM			4
234*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_USB0_STB			5
235*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_USB0_APP_125		6
236*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_USB0_REFCLK		7
237*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_PCIE0_AXI_MST0		8
238*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_PCIE0_APB			9
239*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_PCIE0_TL			10
240*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_PCIE1_AXI_MST0		11
241*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_PCIE1_APB			12
242*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_PCIE1_TL			13
243*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_PCIE_SLV_MAIN		14
244*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_SEC_AHB			15
245*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_SEC_MISC_AHB		16
246*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_GRP0_MAIN			17
247*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_GRP0_BUS			18
248*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_GRP0_STG			19
249*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_GRP1_MAIN			20
250*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_GRP1_BUS			21
251*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_GRP1_STG			22
252*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_GRP1_HIFI			23
253*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_E2_RTC			24
254*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_E2_CORE			25
255*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_E2_DBG			26
256*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_DMA1P_AXI			27
257*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_DMA1P_AHB			28
258*aa1a8ff2SEmmanuel Vadot 
259*aa1a8ff2SEmmanuel Vadot #define JH7110_STGCLK_END			29
260*aa1a8ff2SEmmanuel Vadot 
261*aa1a8ff2SEmmanuel Vadot /* ISPCRG clocks */
262*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_DOM4_APB_FUNC		0
263*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_MIPI_RX0_PXL		1
264*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_DVP_INV			2
265*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_M31DPHY_CFG_IN		3
266*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_M31DPHY_REF_IN		4
267*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_M31DPHY_TX_ESC_LAN0	5
268*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_VIN_APB			6
269*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_VIN_SYS			7
270*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_VIN_PIXEL_IF0		8
271*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_VIN_PIXEL_IF1		9
272*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_VIN_PIXEL_IF2		10
273*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_VIN_PIXEL_IF3		11
274*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_VIN_P_AXI_WR		12
275*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_ISPV2_TOP_WRAPPER_C	13
276*aa1a8ff2SEmmanuel Vadot 
277*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPCLK_END			14
278*aa1a8ff2SEmmanuel Vadot 
279*aa1a8ff2SEmmanuel Vadot /* VOUTCRG clocks */
280*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_APB			0
281*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_DC8200_PIX		1
282*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_DSI_SYS			2
283*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_TX_ESC			3
284*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_DC8200_AXI		4
285*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_DC8200_CORE		5
286*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_DC8200_AHB		6
287*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_DC8200_PIX0		7
288*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_DC8200_PIX1		8
289*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_DOM_VOUT_TOP_LCD		9
290*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_DSITX_APB		10
291*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_DSITX_SYS		11
292*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_DSITX_DPI		12
293*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_DSITX_TXESC		13
294*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_MIPITX_DPHY_TXESC	14
295*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_HDMI_TX_MCLK		15
296*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_HDMI_TX_BCLK		16
297*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_HDMI_TX_SYS		17
298*aa1a8ff2SEmmanuel Vadot 
299*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTCLK_END			18
300*aa1a8ff2SEmmanuel Vadot 
301fac71e4eSEmmanuel Vadot #endif /* __DT_BINDINGS_CLOCK_STARFIVE_JH7110_CRG_H__ */
302