blob: c4831a3de93d861bc6eb5992655d9a13b4e7666b [file] [log] [blame]
developer2cdaeb12022-10-04 20:25:05 +08001/*
2 * Copyright (c) 2022 MediaTek Inc.
3 * Author: Author: Xiufeng Li <Xiufeng.Li@mediatek.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15&clkitg {
16 bring-up {
17 compatible = "mediatek,clk-bring-up";
18 clocks =
19 <&apmixedsys CK_APMIXED_NETSYSPLL>,
20 <&apmixedsys CK_APMIXED_MPLL>,
21 <&apmixedsys CK_APMIXED_MMPLL>,
22 <&apmixedsys CK_APMIXED_APLL2>,
23 <&apmixedsys CK_APMIXED_NET1PLL>,
24 <&apmixedsys CK_APMIXED_NET2PLL>,
25 <&apmixedsys CK_APMIXED_WEDMCUPLL>,
26 <&apmixedsys CK_APMIXED_SGMPLL>,
27 <&apmixedsys CK_APMIXED_ARM_B>,
28 <&apmixedsys CK_APMIXED_CCIPLL2_B>,
29 <&apmixedsys CK_APMIXED_USXGMIIPLL>,
30 <&apmixedsys CK_APMIXED_MSDCPLL>,
31 <&topckgen CK_TOP_CB_CKSQ_40M>,
32 <&topckgen CK_TOP_CB_M_416M>,
33 <&topckgen CK_TOP_CB_M_D2>,
34 <&topckgen CK_TOP_M_D3_D2>,
35 <&topckgen CK_TOP_CB_M_D4>,
36 <&topckgen CK_TOP_CB_M_D8>,
37 <&topckgen CK_TOP_M_D8_D2>,
38 <&topckgen CK_TOP_CB_MM_720M>,
39 <&topckgen CK_TOP_CB_MM_D2>,
40 <&topckgen CK_TOP_CB_MM_D3_D5>,
41 <&topckgen CK_TOP_CB_MM_D4>,
42 <&topckgen CK_TOP_MM_D6_D2>,
43 <&topckgen CK_TOP_CB_MM_D8>,
44 <&topckgen CK_TOP_CB_APLL2_196M>,
45 <&topckgen CK_TOP_CB_APLL2_D4>,
46 <&topckgen CK_TOP_CB_NET1_D4>,
47 <&topckgen CK_TOP_CB_NET1_D5>,
48 <&topckgen CK_TOP_NET1_D5_D2>,
49 <&topckgen CK_TOP_NET1_D5_D4>,
50 <&topckgen CK_TOP_CB_NET1_D8>,
51 <&topckgen CK_TOP_NET1_D8_D2>,
52 <&topckgen CK_TOP_NET1_D8_D4>,
53 <&topckgen CK_TOP_NET1_D8_D8>,
54 <&topckgen CK_TOP_NET1_D8_D16>,
55 <&topckgen CK_TOP_CB_NET2_800M>,
56 <&topckgen CK_TOP_CB_NET2_D2>,
57 <&topckgen CK_TOP_CB_NET2_D4>,
58 <&topckgen CK_TOP_NET2_D4_D4>,
59 <&topckgen CK_TOP_NET2_D4_D8>,
60 <&topckgen CK_TOP_CB_NET2_D6>,
61 <&topckgen CK_TOP_CB_NET2_D8>,
62 <&topckgen CK_TOP_CB_WEDMCU_208M>,
63 <&topckgen CK_TOP_CB_SGM_325M>,
64 <&topckgen CK_TOP_CB_NETSYS_850M>,
65 <&topckgen CK_TOP_CB_MSDC_400M>,
66 <&topckgen CK_TOP_CKSQ_40M_D2>,
67 <&topckgen CK_TOP_CB_RTC_32K>,
68 <&topckgen CK_TOP_CB_RTC_32P7K>,
69 <&topckgen CK_TOP_INFRA_F32K>,
70 <&topckgen CK_TOP_CKSQ_SRC>,
71 <&topckgen CK_TOP_NETSYS_2X>,
72 <&topckgen CK_TOP_NETSYS_GSW>,
73 <&topckgen CK_TOP_NETSYS_WED_MCU>,
74 <&topckgen CK_TOP_EIP197>,
75 <&topckgen CK_TOP_EMMC_250M>,
76 <&topckgen CK_TOP_EMMC_400M>,
77 <&topckgen CK_TOP_SPI>,
78 <&topckgen CK_TOP_SPIM_MST>,
79 <&topckgen CK_TOP_NFI1X>,
80 <&topckgen CK_TOP_SPINFI_BCK>,
81 <&topckgen CK_TOP_I2C_BCK>,
82 <&topckgen CK_TOP_USB_SYS>,
83 <&topckgen CK_TOP_USB_SYS_P1>,
84 <&topckgen CK_TOP_USB_XHCI>,
85 <&topckgen CK_TOP_USB_XHCI_P1>,
86 <&topckgen CK_TOP_USB_FRMCNT>,
87 <&topckgen CK_TOP_USB_FRMCNT_P1>,
88 <&topckgen CK_TOP_AUD>,
89 <&topckgen CK_TOP_A1SYS>,
90 <&topckgen CK_TOP_AUD_L>,
91 <&topckgen CK_TOP_A_TUNER>,
92 <&topckgen CK_TOP_SYSAXI>,
93 <&topckgen CK_TOP_INFRA_F26M>,
94 <&topckgen CK_TOP_USB_REF>,
95 <&topckgen CK_TOP_USB_CK_P1>,
96 <&topckgen CK_TOP_AUD_I2S_M>,
97 <&topckgen CK_TOP_NETSYS_SEL>,
98 <&topckgen CK_TOP_NETSYS_500M_SEL>,
99 <&topckgen CK_TOP_NETSYS_2X_SEL>,
100 <&topckgen CK_TOP_NETSYS_GSW_SEL>,
101 <&topckgen CK_TOP_ETH_GMII_SEL>,
102 <&topckgen CK_TOP_NETSYS_MCU_SEL>,
103 <&topckgen CK_TOP_NETSYS_PAO_2X_SEL>,
104 <&topckgen CK_TOP_EIP197_SEL>,
105 <&topckgen CK_TOP_AXI_INFRA_SEL>,
106 <&topckgen CK_TOP_UART_SEL>,
107 <&topckgen CK_TOP_EMMC_250M_SEL>,
108 <&topckgen CK_TOP_EMMC_400M_SEL>,
109 <&topckgen CK_TOP_SPI_SEL>,
110 <&topckgen CK_TOP_SPIM_MST_SEL>,
111 <&topckgen CK_TOP_NFI1X_SEL>,
112 <&topckgen CK_TOP_SPINFI_SEL>,
developerfd52ca72022-11-02 11:38:26 +0800113 <&system_clk>,
developer2cdaeb12022-10-04 20:25:05 +0800114 <&topckgen CK_TOP_I2C_SEL>,
115 <&topckgen CK_TOP_PCIE_MBIST_250M_SEL>,
116 <&system_clk>,
117 <&system_clk>,
118 <&system_clk>,
119 <&system_clk>,
120 <&topckgen CK_TOP_USB_SYS_SEL>,
121 <&topckgen CK_TOP_USB_SYS_P1_SEL>,
122 <&topckgen CK_TOP_USB_XHCI_SEL>,
123 <&topckgen CK_TOP_USB_XHCI_P1_SEL>,
124 <&topckgen CK_TOP_USB_FRMCNT_SEL>,
125 <&topckgen CK_TOP_USB_FRMCNT_P1_SEL>,
126 <&topckgen CK_TOP_AUD_SEL>,
127 <&topckgen CK_TOP_A1SYS_SEL>,
128 <&topckgen CK_TOP_AUD_L_SEL>,
129 <&topckgen CK_TOP_A_TUNER_SEL>,
130 <&topckgen CK_TOP_SSPXTP_SEL>,
131 <&topckgen CK_TOP_USB_PHY_SEL>,
132 <&topckgen CK_TOP_USXGMII_SBUS_0_SEL>,
133 <&topckgen CK_TOP_USXGMII_SBUS_1_SEL>,
134 <&topckgen CK_TOP_SGM_0_SEL>,
135 <&topckgen CK_TOP_SGM_SBUS_0_SEL>,
136 <&topckgen CK_TOP_SGM_1_SEL>,
137 <&topckgen CK_TOP_SGM_SBUS_1_SEL>,
138 <&topckgen CK_TOP_XFI_PHY_0_XTAL_SEL>,
139 <&topckgen CK_TOP_XFI_PHY_1_XTAL_SEL>,
140 <&topckgen CK_TOP_SYSAXI_SEL>,
141 <&topckgen CK_TOP_SYSAPB_SEL>,
142 <&topckgen CK_TOP_ETH_REFCK_50M_SEL>,
143 <&topckgen CK_TOP_ETH_SYS_200M_SEL>,
144 <&topckgen CK_TOP_ETH_SYS_SEL>,
145 <&topckgen CK_TOP_ETH_XGMII_SEL>,
146 <&topckgen CK_TOP_BUS_TOPS_SEL>,
147 <&topckgen CK_TOP_NPU_TOPS_SEL>,
148 <&topckgen CK_TOP_DRAMC_SEL>,
149 <&topckgen CK_TOP_DRAMC_MD32_SEL>,
150 <&topckgen CK_TOP_INFRA_F26M_SEL>,
151 <&system_clk>,
152 <&system_clk>,
153 <&system_clk>,
154 <&system_clk>,
155 <&topckgen CK_TOP_DA_XTP_GLB_P0_SEL>,
156 <&topckgen CK_TOP_DA_XTP_GLB_P1_SEL>,
157 <&topckgen CK_TOP_DA_XTP_GLB_P2_SEL>,
158 <&topckgen CK_TOP_DA_XTP_GLB_P3_SEL>,
159 <&topckgen CK_TOP_CKM_SEL>,
160 <&topckgen CK_TOP_DA_SELM_XTAL_SEL>,
161 <&topckgen CK_TOP_PEXTP_SEL>,
162 <&topckgen CK_TOP_TOPS_P2_26M_SEL>,
163 <&topckgen CK_TOP_MCUSYS_BACKUP_625M_SEL>,
164 <&topckgen CK_TOP_NETSYS_SYNC_250M_SEL>,
165 <&topckgen CK_TOP_MACSEC_SEL>,
166 <&topckgen CK_TOP_NETSYS_TOPS_400M_SEL>,
167 <&topckgen CK_TOP_NETSYS_PPEFB_250M_SEL>,
168 <&topckgen CK_TOP_NETSYS_WARP_SEL>,
169 <&topckgen CK_TOP_ETH_MII_SEL>,
170 <&topckgen CK_TOP_CK_NPU_SEL_CM_TOPS_SEL>,
171 <&infracfg CK_INFRA_CK_F26M>,
developer2cdaeb12022-10-04 20:25:05 +0800172 <&system_clk>,
173 <&system_clk>,
174 <&system_clk>,
175 <&system_clk>,
developerfd52ca72022-11-02 11:38:26 +0800176 <&system_clk>,
developer2cdaeb12022-10-04 20:25:05 +0800177 <&infracfg CK_INFRA_133M_HCK>,
178 <&infracfg CK_INFRA_133M_PHCK>,
179 <&infracfg CK_INFRA_66M_PHCK>,
180 <&infracfg CK_INFRA_FAUD_L_O>,
181 <&infracfg CK_INFRA_FAUD_AUD_O>,
182 <&infracfg CK_INFRA_FAUD_EG2_O>,
183 <&infracfg CK_INFRA_I2C_O>,
184 <&infracfg CK_INFRA_UART_O0>,
185 <&infracfg CK_INFRA_UART_O1>,
186 <&infracfg CK_INFRA_UART_O2>,
187 <&infracfg CK_INFRA_NFI_O>,
188 <&infracfg CK_INFRA_SPINFI_O>,
189 <&infracfg CK_INFRA_SPI0_O>,
190 <&infracfg CK_INFRA_SPI1_O>,
191 <&infracfg CK_INFRA_LB_MUX_FRTC>,
192 <&infracfg CK_INFRA_FRTC>,
193 <&infracfg CK_INFRA_FMSDC400_O>,
194 <&infracfg CK_INFRA_FMSDC2_HCK_OCC>,
195 <&infracfg CK_INFRA_PERI_133M>,
196 <&infracfg CK_INFRA_USB_O>,
197 <&infracfg CK_INFRA_USB_O_P1>,
198 <&infracfg CK_INFRA_USB_FRMCNT_O>,
199 <&infracfg CK_INFRA_USB_FRMCNT_O_P1>,
200 <&infracfg CK_INFRA_USB_XHCI_O>,
201 <&infracfg CK_INFRA_USB_XHCI_O_P1>,
202 <&infracfg CK_INFRA_USB_PIPE_O>,
203 <&infracfg CK_INFRA_USB_PIPE_O_P1>,
204 <&infracfg CK_INFRA_USB_UTMI_O>,
205 <&infracfg CK_INFRA_USB_UTMI_O_P1>,
206 <&system_clk>,
207 <&system_clk>,
208 <&system_clk>,
209 <&system_clk>,
210 <&infracfg CK_INFRA_F26M_O0>,
211 <&infracfg CK_INFRA_F26M_O1>,
212 <&infracfg CK_INFRA_133M_MCK>,
213 <&infracfg CK_INFRA_66M_MCK>,
214 <&infracfg CK_INFRA_PERI_66M_O>,
215 <&infracfg CK_INFRA_USB_SYS_O>,
216 <&infracfg CK_INFRA_USB_SYS_O_P1>,
217 <&infracfg_ao CK_INFRA_66M_GPT_BCK>,
developerfd52ca72022-11-02 11:38:26 +0800218 <&system_clk>,
219 <&system_clk>,
220 <&system_clk>,
221 <&system_clk>,
222 <&system_clk>,
223 <&system_clk>,
224 <&system_clk>,
225 <&system_clk>,
226 <&system_clk>,
227 <&system_clk>,
developer2cdaeb12022-10-04 20:25:05 +0800228 <&infracfg_ao CK_INFRA_133M_CQDMA_BCK>,
229 <&infracfg_ao CK_INFRA_66M_AUD_SLV_BCK>,
230 <&infracfg_ao CK_INFRA_AUD_26M>,
231 <&infracfg_ao CK_INFRA_AUD_L>,
232 <&infracfg_ao CK_INFRA_AUD_AUD>,
233 <&infracfg_ao CK_INFRA_AUD_EG2>,
234 <&infracfg_ao CK_INFRA_DRAMC_F26M>,
235 <&infracfg_ao CK_INFRA_133M_DBG_ACKM>,
236 <&infracfg_ao CK_INFRA_66M_AP_DMA_BCK>,
237 <&infracfg_ao CK_INFRA_66M_SEJ_BCK>,
238 <&infracfg_ao CK_INFRA_PRE_CK_SEJ_F13M>,
239 <&infracfg_ao CK_INFRA_66M_TRNG>,
240 <&infracfg_ao CK_INFRA_26M_THERM_SYSTEM>,
241 <&infracfg_ao CK_INFRA_I2C_BCK>,
242 <&infracfg_ao CK_INFRA_66M_UART0_PCK>,
243 <&infracfg_ao CK_INFRA_66M_UART1_PCK>,
244 <&infracfg_ao CK_INFRA_66M_UART2_PCK>,
245 <&infracfg_ao CK_INFRA_52M_UART0_CK>,
246 <&infracfg_ao CK_INFRA_52M_UART1_CK>,
247 <&infracfg_ao CK_INFRA_52M_UART2_CK>,
248 <&infracfg_ao CK_INFRA_NFI>,
249 <&infracfg_ao CK_INFRA_SPINFI>,
250 <&infracfg_ao CK_INFRA_66M_NFI_HCK>,
251 <&infracfg_ao CK_INFRA_104M_SPI0>,
252 <&infracfg_ao CK_INFRA_104M_SPI1>,
253 <&infracfg_ao CK_INFRA_104M_SPI2_BCK>,
254 <&infracfg_ao CK_INFRA_66M_SPI0_HCK>,
255 <&infracfg_ao CK_INFRA_66M_SPI1_HCK>,
256 <&infracfg_ao CK_INFRA_66M_SPI2_HCK>,
257 <&infracfg_ao CK_INFRA_66M_FLASHIF_AXI>,
258 <&infracfg_ao CK_INFRA_RTC>,
259 <&infracfg_ao CK_INFRA_26M_ADC_BCK>,
260 <&infracfg_ao CK_INFRA_RC_ADC>,
261 <&infracfg_ao CK_INFRA_MSDC400>,
262 <&infracfg_ao CK_INFRA_MSDC2_HCK>,
263 <&infracfg_ao CK_INFRA_133M_MSDC_0_HCK>,
264 <&infracfg_ao CK_INFRA_66M_MSDC_0_HCK>,
265 <&infracfg_ao CK_INFRA_133M_CPUM_BCK>,
266 <&infracfg_ao CK_INFRA_BIST2FPC>,
267 <&infracfg_ao CK_INFRA_I2C_X16W_MCK_CK_P1>,
268 <&infracfg_ao CK_INFRA_I2C_X16W_PCK_CK_P1>,
269 <&infracfg_ao CK_INFRA_133M_USB_HCK>,
270 <&infracfg_ao CK_INFRA_133M_USB_HCK_CK_P1>,
271 <&infracfg_ao CK_INFRA_66M_USB_HCK>,
272 <&infracfg_ao CK_INFRA_66M_USB_HCK_CK_P1>,
273 <&infracfg_ao CK_INFRA_USB_SYS>,
274 <&infracfg_ao CK_INFRA_USB_SYS_CK_P1>,
275 <&infracfg_ao CK_INFRA_USB_REF>,
276 <&infracfg_ao CK_INFRA_USB_CK_P1>,
277 <&infracfg_ao CK_INFRA_USB_FRMCNT>,
278 <&infracfg_ao CK_INFRA_USB_FRMCNT_CK_P1>,
279 <&infracfg_ao CK_INFRA_USB_PIPE>,
280 <&infracfg_ao CK_INFRA_USB_PIPE_CK_P1>,
281 <&infracfg_ao CK_INFRA_USB_UTMI>,
282 <&infracfg_ao CK_INFRA_USB_UTMI_CK_P1>,
283 <&infracfg_ao CK_INFRA_USB_XHCI>,
284 <&infracfg_ao CK_INFRA_USB_XHCI_CK_P1>,
285 <&system_clk>,
286 <&system_clk>,
287 <&system_clk>,
288 <&system_clk>,
289 <&system_clk>,
290 <&system_clk>,
291 <&system_clk>,
292 <&system_clk>,
293 <&system_clk>,
294 <&system_clk>,
295 <&system_clk>,
296 <&system_clk>,
297 <&system_clk>,
298 <&system_clk>,
299 <&system_clk>,
300 <&system_clk>,
301 <&infracfg_ao CK_INFRA_MUX_UART0_SEL>,
302 <&infracfg_ao CK_INFRA_MUX_UART1_SEL>,
303 <&infracfg_ao CK_INFRA_MUX_UART2_SEL>,
304 <&infracfg_ao CK_INFRA_MUX_SPI0_SEL>,
305 <&infracfg_ao CK_INFRA_MUX_SPI1_SEL>,
306 <&infracfg_ao CK_INFRA_MUX_SPI2_SEL>,
developerfd52ca72022-11-02 11:38:26 +0800307 <&system_clk>,
308 <&system_clk>,
309 <&system_clk>,
310 <&system_clk>,
311 <&system_clk>,
312 <&system_clk>,
313 <&system_clk>,
314 <&system_clk>,
315 <&system_clk>,
developer2cdaeb12022-10-04 20:25:05 +0800316 <&system_clk>,
317 <&system_clk>,
318 <&system_clk>,
319 <&system_clk>,
320 <&ethsys CK_ETHDMA_XGP1_EN>,
321 <&ethsys CK_ETHDMA_XGP2_EN>,
322 <&ethsys CK_ETHDMA_XGP3_EN>,
323 <&ethsys CK_ETHDMA_FE_EN>,
324 <&ethsys CK_ETHDMA_GP2_EN>,
325 <&ethsys CK_ETHDMA_GP1_EN>,
326 <&ethsys CK_ETHDMA_GP3_EN>,
327 <&ethsys CK_ETHDMA_ESW_EN>,
328 <&ethsys CK_ETHDMA_CRYPT0_EN>,
329 <&ethwarp CK_ETHWARP_WOCPU2_EN>,
330 <&ethwarp CK_ETHWARP_WOCPU1_EN>,
331 <&ethwarp CK_ETHWARP_WOCPU0_EN>,
332 <&sgmiisys0 CK_SGM0_TX_EN>,
333 <&sgmiisys0 CK_SGM0_RX_EN>,
334 <&sgmiisys1 CK_SGM1_TX_EN>,
335 <&sgmiisys1 CK_SGM1_RX_EN>,
336 <&mcusys CK_MCU_BUS_DIV_SEL>,
337 <&mcusys CK_MCU_ARM_DIV_SEL>;
338
339 clock-names = "0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
340 "10", "11", "12", "13", "14", "15", "16", "17",
341 "18", "19", "20", "21", "22", "23", "24", "25",
342 "26", "27", "28", "29", "30", "31", "32", "33",
343 "34", "35", "36", "37", "38", "39", "40", "41",
344 "42", "43", "44", "45", "46", "47", "48", "49",
345 "50", "51", "52", "53", "54", "55", "56", "57",
346 "58", "59", "60", "61", "62", "63", "64", "65",
347 "66", "67", "68", "69", "70", "71", "72", "73",
348 "74", "75", "76", "77", "78", "79", "80", "81",
349 "82", "83", "84", "85", "86", "87", "88", "89",
350 "90", "91", "92", "93", "94", "95", "96", "97",
351 "98", "99", "100", "101", "102", "103", "104",
352 "105", "106", "107", "108", "109", "110", "111",
353 "112", "113", "114", "115", "116", "117", "118",
354 "119", "120", "121", "122", "123", "124", "125",
355 "126", "127", "128", "129", "130", "131", "132",
356 "133", "134", "135", "136", "137", "138", "139",
357 "140", "141", "142", "143", "144", "145", "146",
358 "147", "148", "149", "150", "151", "152", "153",
359 "154", "155", "156", "157", "158", "159", "160",
360 "161", "162", "163", "164", "165", "166", "167",
361 "168", "169", "170", "171", "172", "173", "174",
362 "175", "176", "177", "178", "179", "180", "181",
363 "182", "183", "184", "185", "186", "187", "188",
364 "189", "190", "191", "192", "193", "194", "195",
365 "196", "197", "198", "199", "200", "201", "202",
366 "203", "204", "205", "206", "207", "208", "209",
367 "210", "211", "212", "213", "214", "215", "216",
368 "217", "218", "219", "220", "221", "222", "223",
369 "224", "225", "226", "227", "228", "229", "230",
370 "231", "232", "233", "234", "235", "236", "237",
371 "238", "239", "240", "241", "242", "243", "244",
372 "245", "246", "247", "248", "249", "250", "251",
373 "252", "253", "254", "255", "256", "257", "258",
374 "259", "260", "261", "262", "263", "264", "265",
375 "266", "267", "268", "269", "270", "271", "272",
376 "273", "274", "275", "276", "277", "278", "279",
377 "280", "281", "282", "283", "284", "285", "286",
378 "287", "288", "289", "290", "291", "292", "293",
379 "294", "295", "296", "297", "298", "299", "300",
380 "301", "302", "303", "304", "305", "306", "307",
381 "308", "309", "310", "311", "312", "313", "314",
382 "315", "316", "317", "318", "319", "320", "321",
383 "322", "323";
384 };
385};
386